use of com.evolveum.midpoint.gui.impl.component.menu.DetailsNavigationPanel in project midpoint by Evolveum.
the class AbstractPageObjectDetails method createNavigationPanel.
private DetailsNavigationPanel<O> createNavigationPanel(IModel<List<ContainerPanelConfigurationType>> panels) {
DetailsNavigationPanel panel = new DetailsNavigationPanel<>(AbstractPageObjectDetails.ID_NAVIGATION, objectDetailsModels, panels) {
@Override
protected void onClickPerformed(ContainerPanelConfigurationType config, AjaxRequestTarget target) {
replacePanel(config, target);
}
};
panel.add(new VisibleBehaviour(() -> panels.getObject() != null && panels.getObject().size() > 1));
return panel;
}
Aggregations