use of com.evolveum.midpoint.gui.api.component.MainObjectListPanel in project midpoint by Evolveum.
the class PageUsers method initLayout.
protected void initLayout() {
Form mainForm = new MidpointForm(ID_MAIN_FORM);
add(mainForm);
MainObjectListPanel<UserType> table = new MainObjectListPanel<>(ID_TABLE, UserType.class) {
// @Override
// protected void objectDetailsPerformed(AjaxRequestTarget target, UserType user) {
// WebComponentUtil.dispatchToObjectDetailsPage(UserType.class, user.getOid(), this, false);
// PageParameters parameters = new PageParameters();
// parameters.add(OnePageParameterEncoder.PARAMETER, user.getOid());
// navigateToNext(PageUser.class, parameters);
// }
@Override
protected UserProfileStorage.TableId getTableId() {
return TableId.TABLE_USERS;
}
@Override
protected List<InlineMenuItem> createInlineMenu() {
return createRowActions();
}
@Override
protected List<ItemPath> getFixedSearchItems() {
List<ItemPath> fixedSearchItems = new ArrayList<>();
fixedSearchItems.add(UserType.F_NAME);
fixedSearchItems.add(UserType.F_GIVEN_NAME);
fixedSearchItems.add(UserType.F_FAMILY_NAME);
return fixedSearchItems;
}
@Override
protected String getNothingSelectedMessage() {
return getString("pageUsers.message.nothingSelected");
}
@Override
protected String getConfirmMessageKeyForSingleObject() {
return "pageUsers.message.confirmationMessageForMultipleObject";
}
@Override
protected String getConfirmMessageKeyForMultiObject() {
return "pageUsers.message.confirmationMessageForSingleObject";
}
};
table.setOutputMarkupId(true);
mainForm.add(table);
}
Aggregations