use of org.apache.wicket.request.mapper.parameter.PageParameters in project wicket-dashboard by decebals.
the class DetachWidgetAction method getLink.
@Override
public AbstractLink getLink(String id) {
PageParameters parameters = new PageParameters();
parameters.add("id", widget.getId());
BookmarkablePageLink<Void> link = new BookmarkablePageLink<Void>(id, WidgetPage.class, parameters);
PopupSettings popupSettings = new PopupSettings(widget.getTitle()).setHeight(320).setWidth(550);
link.setPopupSettings(popupSettings);
return link;
}
use of org.apache.wicket.request.mapper.parameter.PageParameters in project midpoint by Evolveum.
the class PageCertCampaigns method campaignDetailsPerformed.
private void campaignDetailsPerformed(AjaxRequestTarget target, String oid) {
PageParameters parameters = new PageParameters();
parameters.add(OnePageParameterEncoder.PARAMETER, oid);
navigateToNext(PageCertCampaign.class, parameters);
}
use of org.apache.wicket.request.mapper.parameter.PageParameters in project midpoint by Evolveum.
the class PageCertDefinitions method showCampaignsPerformed.
private void showCampaignsPerformed(AjaxRequestTarget target, AccessCertificationDefinitionType definition) {
PageParameters parameters = new PageParameters();
parameters.add(OnePageParameterEncoder.PARAMETER, definition.getOid());
navigateToNext(PageCertCampaigns.class, parameters);
}
use of org.apache.wicket.request.mapper.parameter.PageParameters in project midpoint by Evolveum.
the class PageTasks method createTaskNameColumn.
// used in SubtasksPanel as well
public static IColumn createTaskNameColumn(final Component component, String label) {
LinkColumn<TaskDto> column = new LinkColumn<TaskDto>(createStringResourceStatic(component, label), TaskDto.F_NAME, TaskDto.F_NAME) {
@Override
public void onClick(AjaxRequestTarget target, IModel<TaskDto> rowModel) {
TaskDto task = rowModel.getObject();
taskDetailsPerformed(target, task.getOid());
}
private void taskDetailsPerformed(AjaxRequestTarget target, String oid) {
PageParameters parameters = new PageParameters();
parameters.add(OnePageParameterEncoder.PARAMETER, oid);
PageBase page = (PageBase) component.getPage();
page.navigateToNext(PageTaskEdit.class, parameters);
}
@Override
public boolean isEnabled(IModel<TaskDto> rowModel) {
return super.isEnabled(rowModel) && rowModel.getObject().getOid() != null;
}
};
return column;
}
use of org.apache.wicket.request.mapper.parameter.PageParameters in project midpoint by Evolveum.
the class ResourceContentPanel method shadowDetailsPerformed.
private void shadowDetailsPerformed(AjaxRequestTarget target, String accountName, String accountOid) {
if (StringUtils.isEmpty(accountOid)) {
error(pageBase.getString("pageContentAccounts.message.cantShowAccountDetails", accountName, accountOid));
target.add(pageBase.getFeedbackPanel());
return;
}
PageParameters parameters = new PageParameters();
parameters.add(OnePageParameterEncoder.PARAMETER, accountOid);
getPageBase().navigateToNext(PageAccount.class, parameters);
}
Aggregations