use of org.apache.wicket.extensions.markup.html.tabs.AbstractTab in project webanno by webanno.
the class ProjectPage method makeTabs.
private List<ITab> makeTabs() {
List<ITab> tabs = new ArrayList<>();
tabs.add(new AbstractTab(Model.of("Details")) {
private static final long serialVersionUID = 6703144434578403272L;
@Override
public Panel getPanel(String panelId) {
return new ProjectDetailPanel(panelId, selectedProject);
}
@Override
public boolean isVisible() {
return selectedProject.getObject() != null;
}
});
// Add the project settings panels from the registry
for (ProjectSettingsPanelDecl psp : projectSettingsPanelRegistryService.getPanels()) {
AbstractTab tab = new AbstractTab(Model.of(psp.label)) {
private static final long serialVersionUID = -1503555976570640065L;
@Override
public Panel getPanel(String aPanelId) {
try {
return ConstructorUtils.invokeConstructor(psp.panel, aPanelId, selectedProject);
} catch (Exception e) {
throw new RuntimeException(e);
}
}
@Override
public boolean isVisible() {
return selectedProject.getObject() != null && selectedProject.getObject().getId() != null && psp.condition.applies(selectedProject.getObject());
}
};
tabs.add(tab);
}
return tabs;
}
use of org.apache.wicket.extensions.markup.html.tabs.AbstractTab in project syncope by apache.
the class SAML2SP method buildTabList.
private List<ITab> buildTabList() {
final List<ITab> tabs = new ArrayList<>(2);
tabs.add(new AbstractTab(new ResourceModel("idps")) {
private static final long serialVersionUID = -6815067322125799251L;
@Override
public Panel getPanel(final String panelId) {
return new SAML2IdPsDirectoryPanel(panelId, getPageReference());
}
});
tabs.add(new AbstractTab(new ResourceModel("sp")) {
private static final long serialVersionUID = -6815067322125799251L;
@Override
public Panel getPanel(final String panelId) {
return new SAML2SPPanel(panelId);
}
});
return tabs;
}
use of org.apache.wicket.extensions.markup.html.tabs.AbstractTab in project syncope by apache.
the class Notifications method buildTabList.
private List<ITab> buildTabList() {
final List<ITab> tabs = new ArrayList<>();
tabs.add(new AbstractTab(new ResourceModel("notifications")) {
private static final long serialVersionUID = -6815067322125799251L;
@Override
public Panel getPanel(final String panelId) {
return new NotificationDirectoryPanel(panelId, getPageReference());
}
});
tabs.add(new AbstractTab(new ResourceModel("notification.templates")) {
private static final long serialVersionUID = -6815067322125799251L;
@Override
public Panel getPanel(final String panelId) {
return new MailTemplateDirectoryPanel(panelId, getPageReference());
}
});
return tabs;
}
use of org.apache.wicket.extensions.markup.html.tabs.AbstractTab in project syncope by apache.
the class Dashboard method buildTabList.
private List<ITab> buildTabList() {
final List<ITab> tabs = new ArrayList<>();
tabs.add(new AbstractTab(new ResourceModel("overview")) {
private static final long serialVersionUID = -6815067322125799251L;
@Override
public Panel getPanel(final String panelId) {
return new DashboardOverviewPanel(panelId);
}
});
tabs.add(new AbstractTab(new ResourceModel("accessTokens")) {
private static final long serialVersionUID = -6815067322125799251L;
@Override
public Panel getPanel(final String panelId) {
return new DashboardAccessTokensPanel(panelId, getPageReference());
}
});
tabs.add(new AbstractTab(new ResourceModel("control")) {
private static final long serialVersionUID = -6815067322125799251L;
@Override
public Panel getPanel(final String panelId) {
return new DashboardControlPanel(panelId, getPageReference());
}
});
ClassPathScanImplementationLookup classPathScanImplementationLookup = (ClassPathScanImplementationLookup) SyncopeConsoleApplication.get().getServletContext().getAttribute(ConsoleInitializer.CLASSPATH_LOOKUP);
final List<Class<? extends BaseExtWidget>> extWidgetClasses = classPathScanImplementationLookup.getExtWidgetClasses();
if (!extWidgetClasses.isEmpty()) {
tabs.add(new AbstractTab(new ResourceModel("extensions")) {
private static final long serialVersionUID = -6815067322125799251L;
@Override
public Panel getPanel(final String panelId) {
return new DashboardExtensionsPanel(panelId, extWidgetClasses, getPageReference());
}
});
}
return tabs;
}
use of org.apache.wicket.extensions.markup.html.tabs.AbstractTab in project syncope by apache.
the class Logs method buildTabList.
private List<ITab> buildTabList() {
final List<ITab> tabs = new ArrayList<>(2);
tabs.add(new AbstractTab(new Model<>("Core")) {
private static final long serialVersionUID = -6815067322125799251L;
@Override
public Panel getPanel(final String panelId) {
return new CoreLogPanel(panelId, getPageReference());
}
});
tabs.add(new AbstractTab(new Model<>("Console")) {
private static final long serialVersionUID = -6815067322125799251L;
@Override
public Panel getPanel(final String panelId) {
return new ConsoleLogPanel(panelId, getPageReference());
}
});
return tabs;
}
Aggregations