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);
}
}
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);
}
};
}
Aggregations