Search in sources :

Example 1 with AbstractObjectMainPanel

use of com.evolveum.midpoint.web.component.objectdetails.AbstractObjectMainPanel in project midpoint by Evolveum.

the class AssignmentTablePanel method reloadMainFormButtons.

protected void reloadMainFormButtons(AjaxRequestTarget target) {
    isModelChanged = true;
    AbstractObjectMainPanel panel = AssignmentTablePanel.this.findParent(AbstractObjectMainPanel.class);
    if (panel != null) {
        panel.reloadSavePreviewButtons(target);
    }
}
Also used : AbstractObjectMainPanel(com.evolveum.midpoint.web.component.objectdetails.AbstractObjectMainPanel)

Example 2 with AbstractObjectMainPanel

use of com.evolveum.midpoint.web.component.objectdetails.AbstractObjectMainPanel in project midpoint by Evolveum.

the class PageSystemConfiguration method createMainPanel.

@Override
protected AbstractObjectMainPanel<SystemConfigurationType> createMainPanel(String id) {
    return new AbstractObjectMainPanel<SystemConfigurationType>(id, getObjectModel(), this) {

        private static final long serialVersionUID = 1L;

        @Override
        protected List<ITab> createTabs(PageAdminObjectDetails<SystemConfigurationType> parentPage) {
            return getTabs();
        }

        @Override
        protected boolean getOptionsPanelVisibility() {
            return false;
        }

        @Override
        protected boolean isPreviewButtonVisible() {
            return false;
        }

        @Override
        protected void initLayoutTabs(PageAdminObjectDetails<SystemConfigurationType> parentPage) {
            List<ITab> tabs = createTabs(parentPage);
            TabbedPanel<ITab> tabPanel = new TabbedPanel<ITab>(ID_TAB_PANEL, tabs) {

                private static final long serialVersionUID = 1L;

                @Override
                protected void onTabChange(int index) {
                    PageParameters params = getPageParameters();
                    params.set(SELECTED_TAB_INDEX, index);
                    parentPage.updateBreadcrumbParameters(SELECTED_TAB_INDEX, index);
                }
            };
            getMainForm().add(tabPanel);
        }
    };
}
Also used : AbstractObjectMainPanel(com.evolveum.midpoint.web.component.objectdetails.AbstractObjectMainPanel) TabbedPanel(com.evolveum.midpoint.web.component.TabbedPanel) PageParameters(org.apache.wicket.request.mapper.parameter.PageParameters) PageAdminObjectDetails(com.evolveum.midpoint.web.page.admin.PageAdminObjectDetails) ITab(org.apache.wicket.extensions.markup.html.tabs.ITab)

Aggregations

AbstractObjectMainPanel (com.evolveum.midpoint.web.component.objectdetails.AbstractObjectMainPanel)2 TabbedPanel (com.evolveum.midpoint.web.component.TabbedPanel)1 PageAdminObjectDetails (com.evolveum.midpoint.web.page.admin.PageAdminObjectDetails)1 ITab (org.apache.wicket.extensions.markup.html.tabs.ITab)1 PageParameters (org.apache.wicket.request.mapper.parameter.PageParameters)1