本文整理汇总了Java中org.apache.wicket.PageParameters.add方法的典型用法代码示例。如果您正苦于以下问题:Java PageParameters.add方法的具体用法?Java PageParameters.add怎么用?Java PageParameters.add使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.apache.wicket.PageParameters
的用法示例。
在下文中一共展示了PageParameters.add方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getParameters
import org.apache.wicket.PageParameters; //导入方法依赖的package包/类
public static PageParameters getParameters(AtmPvcIfDto pvc) {
if (pvc == null) {
throw new IllegalArgumentException("pvc is null.");
} else if (pvc.getPhysicalPort() == null) {
throw new IllegalArgumentException("pvc is not initialized. parent is null.");
} else if (pvc.getVpi() == null) {
throw new IllegalArgumentException("pvc is not initialized. vpi is null.");
} else if (pvc.getVci() == null) {
throw new IllegalArgumentException("pvc is not initialized. vci is null.");
}
PageParameters param = new PageParameters();
param.add(NodeUtil.KEY_NODE, pvc.getNode().getName());
param.add(KEY_ATM_PORT, pvc.getPhysicalPort().getName());
param.add(KEY_ATM_PVC_VPI, pvc.getVpi().toString());
param.add(KEY_ATM_PVC_VCI, pvc.getVci().toString());
return param;
}
示例2: EnterTopicPage
import org.apache.wicket.PageParameters; //导入方法依赖的package包/类
public EnterTopicPage(PageParameters parameters) {
super(parameters);
Topic topic = new TopicModel<Topic>(parameters.getString("topicMapId"), parameters.getString("topicId")).getTopic();
Class<? extends Page> pageClass;
if (topic.isTopicType())
pageClass = InstancesPage.class;
// else if (topic.isAssociationType())
// pageClass = InstancePage.class;
// else if (topic.isOccurrenceType())
// pageClass = InstancePage.class;
// else if (topic.isNameType())
// pageClass = InstancePage.class;
// else if (topic.isRoleType())
// pageClass = InstancePage.class;
else
pageClass = InstancePage.class;
// redirect page
PageParameters params = new PageParameters();
params.add("topicMapId", topic.getTopicMap().getId());
params.add("topicId", topic.getId());
setResponsePage(pageClass, params);
setRedirect(true);
}
示例3: initEditar
import org.apache.wicket.PageParameters; //导入方法依赖的package包/类
private void initEditar() {
PageParameters pp = new PageParameters();
ArtigoDisplay elemento = (ArtigoDisplay) getDefaultModelObject();
pp.add("0", Long.toString(elemento.getId()));
editar = new BookmarkablePageLink<Void>("editar", EdicaoArtigoPage.class, pp) {
private static final long serialVersionUID = 1L;
@Override
protected void onConfigure() {
super.onConfigure();
setVisible(UIUtils.possuiPermissoes(ActionKeys.CONFIGURATION));
}
};
add(editar);
}
示例4: onSubmit
import org.apache.wicket.PageParameters; //导入方法依赖的package包/类
@Override
protected void onSubmit() {
ElementCrit tc = (ElementCrit) getDefaultModelObject();
for (TermQueryCriteria tqc : criteria) {
if (tqc.getElementName().equals(tc.getElem().getElementName())) {
return;
}
}
criteria.add(new TermQueryCriteria(tc.getElem().getElementName(), tc
.getValue()));
((FMBrowserSession) getSession()).setCriteria(criteria);
refreshProductPage();
computeStartEndIdx();
PageParameters parameters = new PageParameters();
parameters.add("name", type.getName());
parameters.add("pageNum", String.valueOf(pageNum));
setResponsePage(getPage().getClass(), parameters);
}
示例5: WorkbenchPage
import org.apache.wicket.PageParameters; //导入方法依赖的package包/类
public WorkbenchPage() {
super();
CurationSession session = (CurationSession)getSession();
if (!session.isLoggedIn()) {
PageParameters params = new PageParameters();
params.add("action", "login");
setResponsePage(LoginPage.class, params);
}
add(new Workbench(
"curator_workbench"));
replace(new Label("crumb_name", "Workbench"));
}
示例6: getParameters
import org.apache.wicket.PageParameters; //导入方法依赖的package包/类
public static PageParameters getParameters(VlanIdPoolDto pool, VlanDto vlan) {
if (pool == null) {
throw new IllegalArgumentException("pool is null.");
} else if (vlan == null) {
throw new IllegalArgumentException("vlan is null.");
}
PageParameters param = new PageParameters();
param.add(KEY_POOL_ID, Util.encodeUTF8(pool.getName()));
param.add(KEY_VLAN_ID, vlan.getVlanId().toString());
return param;
}
示例7: getRsvpLspPathPoolParam
import org.apache.wicket.PageParameters; //导入方法依赖的package包/类
public static PageParameters getRsvpLspPathPoolParam(RsvpLspHopSeriesIdPoolDto pool) {
if (pool == null) {
throw new IllegalArgumentException("pool is null.");
}
PageParameters param = new PageParameters();
param.add(PARAM_POOL_NAME, Util.encodeUTF8(pool.getName()));
return param;
}
示例8: getPseudoWirePoolParam
import org.apache.wicket.PageParameters; //导入方法依赖的package包/类
public static PageParameters getPseudoWirePoolParam(PseudowireLongIdPoolDto pool) {
if (pool == null) {
throw new IllegalArgumentException("pool is null.");
}
PageParameters param = new PageParameters();
param.add(PARAM_POOL_NAME, Util.encodeUTF8(pool.getName()));
return param;
}
示例9: getParameters
import org.apache.wicket.PageParameters; //导入方法依赖的package包/类
public static PageParameters getParameters(NodeDto node) {
PageParameters param = new PageParameters();
if (node != null) {
param.add(KEY_NODE, Util.encodeUTF8(node.getName()));
}
return param;
}
示例10: getNodeParameters
import org.apache.wicket.PageParameters; //导入方法依赖的package包/类
public static PageParameters getNodeParameters(NodeElementDto port) {
PageParameters param = new PageParameters();
if (port != null) {
param.add(KEY_NODE, Util.encodeUTF8(port.getNode().getName()));
}
return param;
}
示例11: getMainMenuItems
import org.apache.wicket.PageParameters; //导入方法依赖的package包/类
private static List<MenuItem> getMainMenuItems(TopicMapModel topicMapModel) {
PageParameters parameters = new PageParameters();
parameters.add("topicMapId", topicMapModel.getTopicMap().getId());
List<MenuItem> mainMenuItems = Arrays.asList(new MenuItem[] {
new MenuItem(new Label("caption", new ResourceModel("description")),
DescriptionPage.class, parameters),
new MenuItem(new Label("caption", new ResourceModel("administration")),
AdminPage.class, parameters),
new MenuItem(new Label("caption", new ResourceModel("ontology")),
TopicTypesPage.class, parameters),
new MenuItem(new Label("caption", new ResourceModel("instances")),
InstanceTypesPage.class, parameters) });
return mainMenuItems;
}
示例12: getSubMenuItems
import org.apache.wicket.PageParameters; //导入方法依赖的package包/类
public static List<MenuItem> getSubMenuItems(TopicMapModel topicMapModel) {
PageParameters parameters = new PageParameters();
parameters.add("topicMapId", topicMapModel.getTopicMapId());
List<MenuItem> subMenuItems = Arrays.asList(new MenuItem[] {
new MenuItem(new Label("caption", new ResourceModel("topic.types")), TopicTypesPage.class, parameters),
new MenuItem(new Label("caption",new ResourceModel("occurrence.types")), OccurrenceTypesPage.class, parameters),
new MenuItem(new Label("caption",new ResourceModel("association.types")), AssociationTypesPage.class, parameters),
new MenuItem(new Label("caption",new ResourceModel("role.types")), RoleTypesPage.class, parameters),
new MenuItem(new Label("caption",new ResourceModel("name.types")), NameTypesPage.class, parameters) });
return subMenuItems;
}
示例13: initMostrarContribuicoes
import org.apache.wicket.PageParameters; //导入方法依赖的package包/类
private void initMostrarContribuicoes() {
PageParameters pp = new PageParameters();
ArtigoDisplay elemento = (ArtigoDisplay) getDefaultModelObject();
pp.add("artigo", Long.toString(elemento.getId()));
mostrarContribuicoes = new BookmarkablePageLink<ContribuicaoPage>("mostrarContribuicoes", ContribuicaoPage.class, pp);
containerIconeSugestoes.add(mostrarContribuicoes);
}
示例14: EventToWorkflowViewer
import org.apache.wicket.PageParameters; //导入方法依赖的package包/类
public EventToWorkflowViewer(String id, String workflowUrlStr, final Class<? extends WebPage> viewerPage) {
super(id);
this.wm = new WorkflowMgrConn(workflowUrlStr);
WebMarkupContainer wTable = new WebMarkupContainer("wtable");
wTable.setVisible(false);
PropertyModel<List<Workflow>> workflowsModel = new PropertyModel<List<Workflow>>(this, "workflows");
ListView<Workflow> workflowView = new ListView<Workflow>("workflow_list", workflowsModel) {
private static final long serialVersionUID = 5894604290395257941L;
@Override
protected void populateItem(ListItem<Workflow> item) {
Link<String> wLink = new Link<String>("workflow_link", new Model(item.getModelObject().getId())){
/* (non-Javadoc)
* @see org.apache.wicket.markup.html.link.Link#onClick()
*/
@Override
public void onClick() {
PageParameters params = new PageParameters();
params.add("id", getModelObject());
setResponsePage(viewerPage, params);
}
};
wLink.add(new Label("workflow_name", item.getModelObject().getName()));
item.add(wLink);
}
};
EventWorkflowForm form =
new EventWorkflowForm("event_workflow_frm", workflowsModel, wTable);
wTable.add(workflowView);
add(wTable);
add(form);
}
示例15: toPageParameters
import org.apache.wicket.PageParameters; //导入方法依赖的package包/类
public static PageParameters toPageParameters(SimpleParams simpleParams) {
PageParameters pageParameters = new PageParameters();
for (String paramName : simpleParams.keySet()) {
List<String> paramValues = simpleParams.getList(paramName);
for (String paramValue : paramValues) {
pageParameters.add(paramName, paramValue);
}
}
return pageParameters;
}