Search in sources :

Example 1 with DetailsNavigationPanel

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;
}
Also used : AjaxRequestTarget(org.apache.wicket.ajax.AjaxRequestTarget) VisibleBehaviour(com.evolveum.midpoint.web.component.util.VisibleBehaviour) DetailsNavigationPanel(com.evolveum.midpoint.gui.impl.component.menu.DetailsNavigationPanel)

Aggregations

DetailsNavigationPanel (com.evolveum.midpoint.gui.impl.component.menu.DetailsNavigationPanel)1 VisibleBehaviour (com.evolveum.midpoint.web.component.util.VisibleBehaviour)1 AjaxRequestTarget (org.apache.wicket.ajax.AjaxRequestTarget)1