use of org.apache.wicket.extensions.markup.html.tabs.AbstractTab in project midpoint by Evolveum.
the class SchemaStep method createSchemaEditor.
private ITab createSchemaEditor() {
return new AbstractTab(createStringModel("SchemaStep.xml")) {
@Override
public WebMarkupContainer getPanel(String panelId) {
XmlEditorPanel xmlEditorPanel = new XmlEditorPanel(panelId, createXmlEditorModel());
// quick fix: now changes from XmlEditorPanel are not saved anyhow
//(e.g. by clicking Finish button in wizard). For now,
//panel is made disabled for editing
AceEditor aceEditor = (AceEditor) xmlEditorPanel.get(ID_ACE_EDITOR);
aceEditor.setReadonly(true);
return xmlEditorPanel;
}
};
}
use of org.apache.wicket.extensions.markup.html.tabs.AbstractTab in project midpoint by Evolveum.
the class PageAbstractSelfCredentials method initLayout.
private void initLayout() {
Form<?> mainForm = new Form<>(ID_MAIN_FORM);
List<ITab> tabs = new ArrayList<>();
tabs.add(new AbstractTab(createStringResource("PageSelfCredentials.tabs.password")) {
private static final long serialVersionUID = 1L;
@Override
public WebMarkupContainer getPanel(String panelId) {
return new ChangePasswordPanel(panelId, isCheckOldPassword(), model, model.getObject());
}
});
TabbedPanel<ITab> credentialsTabPanel = WebComponentUtil.createTabPanel(ID_TAB_PANEL, this, tabs, null);
credentialsTabPanel.setOutputMarkupId(true);
mainForm.add(credentialsTabPanel);
initButtons(mainForm);
add(mainForm);
}
use of org.apache.wicket.extensions.markup.html.tabs.AbstractTab in project syncope by apache.
the class CamelRoutes method buildTabList.
private List<ITab> buildTabList() {
List<ITab> tabs = new ArrayList<>(3);
tabs.add(new AbstractTab(new Model<>(AnyTypeKind.USER.name())) {
private static final long serialVersionUID = -6815067322125799251L;
@Override
public Panel getPanel(final String panelId) {
CamelRoutesDirectoryPanel panel = new CamelRoutesDirectoryPanel(panelId, getPageReference(), AnyTypeKind.USER);
panel.setEnabled(restClient.isCamelEnabledFor(AnyTypeKind.USER));
return panel;
}
});
tabs.add(new AbstractTab(new Model<>(AnyTypeKind.GROUP.name())) {
private static final long serialVersionUID = -6815067322125799251L;
@Override
public Panel getPanel(final String panelId) {
CamelRoutesDirectoryPanel panel = new CamelRoutesDirectoryPanel(panelId, getPageReference(), AnyTypeKind.GROUP);
panel.setEnabled(restClient.isCamelEnabledFor(AnyTypeKind.GROUP));
return panel;
}
});
tabs.add(new AbstractTab(new Model<>(AnyTypeKind.ANY_OBJECT.name())) {
private static final long serialVersionUID = -6815067322125799251L;
@Override
public Panel getPanel(final String panelId) {
CamelRoutesDirectoryPanel panel = new CamelRoutesDirectoryPanel(panelId, getPageReference(), AnyTypeKind.ANY_OBJECT);
panel.setEnabled(restClient.isCamelEnabledFor(AnyTypeKind.ANY_OBJECT));
return panel;
}
});
return tabs;
}
use of org.apache.wicket.extensions.markup.html.tabs.AbstractTab in project syncope by apache.
the class Policies method buildTabList.
private List<ITab> buildTabList() {
final List<ITab> tabs = new ArrayList<>();
tabs.add(new AbstractTab(new ResourceModel("policy.account")) {
private static final long serialVersionUID = -6815067322125799251L;
@Override
public Panel getPanel(final String panelId) {
return new AccountPolicyDirectoryPanel(panelId, getPageReference());
}
});
tabs.add(new AbstractTab(new ResourceModel("policy.password")) {
private static final long serialVersionUID = -6815067322125799251L;
@Override
public Panel getPanel(final String panelId) {
return new PasswordPolicyDirectoryPanel(panelId, getPageReference());
}
});
tabs.add(new AbstractTab(new ResourceModel("policy.pull")) {
private static final long serialVersionUID = -6815067322125799251L;
@Override
public Panel getPanel(final String panelId) {
return new PullPolicyDirectoryPanel(panelId, getPageReference());
}
});
return tabs;
}
use of org.apache.wicket.extensions.markup.html.tabs.AbstractTab in project syncope by apache.
the class Security method buildTabList.
private List<ITab> buildTabList() {
final List<ITab> tabs = new ArrayList<>();
tabs.add(new AbstractTab(new ResourceModel("roles")) {
private static final long serialVersionUID = -6815067322125799251L;
@Override
public Panel getPanel(final String panelId) {
return new RoleDirectoryPanel.Builder(getPageReference()) {
private static final long serialVersionUID = -5960765294082359003L;
}.addNewItemPanelBuilder(new RoleWizardBuilder(new RoleTO(), getPageReference()), true).build(panelId);
}
});
tabs.add(new AbstractTab(new ResourceModel("dynRealms")) {
private static final long serialVersionUID = -6815067322125799251L;
@Override
public Panel getPanel(final String panelId) {
return new DynRealmDirectoryPanel.Builder(getPageReference()) {
private static final long serialVersionUID = -5960765294082359003L;
}.build(panelId);
}
});
tabs.add(new AbstractTab(new ResourceModel("applications")) {
private static final long serialVersionUID = -6815067322125799251L;
@Override
public Panel getPanel(final String panelId) {
return new ApplicationDirectoryPanel.Builder(getPageReference()) {
private static final long serialVersionUID = -5960765294082359003L;
}.build(panelId);
}
});
tabs.add(new AbstractTab(new ResourceModel("securityQuestions")) {
private static final long serialVersionUID = -6815067322125799251L;
@Override
public Panel getPanel(final String panelId) {
return new SecurityQuestionsPanel(panelId, getPageReference());
}
});
return tabs;
}
Aggregations