@Override public void onClick(final Optional<AjaxRequestTarget> targetOptional) { setSelectedTab(index); targetOptional.ifPresent(target -> target.add(AjaxBootstrapTabbedPanel.this)); onAjaxUpdate(targetOptional); }
/** * {@inheritDoc} */ public AjaxBootstrapTabbedPanel(final String id, final List<T> tabs, IModel<Integer> model) { super(id, tabs, model); setOutputMarkupId(true); setVersioned(false); }
public SCIMConfPanel( final String id, final SCIMConf scimConfTO, final PageReference pageRef) { super(id, true); this.scimConfTO = scimConfTO; this.pageRef = pageRef; setPageRef(pageRef); AjaxBootstrapTabbedPanel<ITab> tabbedPanel = new AjaxBootstrapTabbedPanel<>("tabbedPanel", buildTabList()); tabbedPanel.setSelectedTab(0); addInnerObject(tabbedPanel); AjaxLink<String> saveButton = new AjaxLink<String>("saveButton") { private static final long serialVersionUID = -7978723352517770644L; @Override public void onClick(final AjaxRequestTarget target) { scimConfRestClient.set(SCIMConfPanel.this.scimConfTO); } }; addInnerObject(saveButton); setShowResultPage(true); modal.size(Modal.Size.Large); setWindowClosedReloadCallback(modal); }
public Dashboard(final PageParameters parameters) { super(parameters); WebMarkupContainer content = new WebMarkupContainer("content"); content.setOutputMarkupId(true); content.add(new AjaxBootstrapTabbedPanel<>("tabbedPanel", buildTabList())); body.add(content); }
public Realm(final String id, final RealmTO realmTO, final PageReference pageRef, final int selectedIndex) { super(id, true); this.realmTO = realmTO; this.anyTypes = new AnyTypeRestClient().listAnyTypes(); setPageRef(pageRef); AjaxBootstrapTabbedPanel<ITab> tabbedPanel = new AjaxBootstrapTabbedPanel<>("tabbedPanel", buildTabList(pageRef)); tabbedPanel.setSelectedTab(selectedIndex); addInnerObject(tabbedPanel); this.wizardBuilder = new RealmWizardBuilder(pageRef); addNewItemPanelBuilder(this.wizardBuilder, false); setShowResultPage(true); modal.size(Modal.Size.Large); setWindowClosedReloadCallback(modal); }
execFragment.add(new AjaxBootstrapTabbedPanel<>("execResult", tabs));
public Logs(final PageParameters parameters) { super(parameters); body.add(BookmarkablePageLinkBuilder.build("dashboard", "dashboardBr", Dashboard.class)); WebMarkupContainer content = new WebMarkupContainer("content"); content.setOutputMarkupId(true); content.add(new AjaxBootstrapTabbedPanel<>("tabbedPanel", buildTabList())); body.add(content); }
public Types(final PageParameters parameters) { super(parameters); body.add(BookmarkablePageLinkBuilder.build("dashboard", "dashboardBr", Dashboard.class)); WebMarkupContainer content = new WebMarkupContainer("content"); content.setOutputMarkupId(true); content.add(new AjaxBootstrapTabbedPanel<>("tabbedPanel", buildTabList())); body.add(content); }
public Policies(final PageParameters parameters) { super(parameters); body.add(BookmarkablePageLinkBuilder.build("dashboard", "dashboardBr", Dashboard.class)); WebMarkupContainer content = new WebMarkupContainer("content"); content.setOutputMarkupId(true); content.setMarkupId("policies"); content.add(new AjaxBootstrapTabbedPanel<>("tabbedPanel", buildTabList())); body.add(content); }
public Notifications(final PageParameters parameters) { super(parameters); body.add(BookmarkablePageLinkBuilder.build("dashboard", "dashboardBr", Dashboard.class)); WebMarkupContainer content = new WebMarkupContainer("content"); content.setOutputMarkupId(true); content.setMarkupId("notifications"); content.add(new AjaxBootstrapTabbedPanel<>("tabbedPanel", buildTabList())); body.add(content); }
public Implementations(final PageParameters parameters) { super(parameters); body.add(BookmarkablePageLinkBuilder.build("dashboard", "dashboardBr", Dashboard.class)); WebMarkupContainer content = new WebMarkupContainer("content"); content.setOutputMarkupId(true); content.setMarkupId("implementations"); content.add(new AjaxBootstrapTabbedPanel<>("tabbedPanel", buildTabList())); body.add(content); }
public Reports(final PageParameters parameters) { super(parameters); body.add(BookmarkablePageLinkBuilder.build("dashboard", "dashboardBr", Dashboard.class)); WebMarkupContainer content = new WebMarkupContainer("content"); content.setOutputMarkupId(true); content.setMarkupId("reports"); content.add(new AjaxBootstrapTabbedPanel<>("tabbedPanel", buildTabList())); body.add(content); }
public Security(final PageParameters parameters) { super(parameters); body.add(BookmarkablePageLinkBuilder.build("dashboard", "dashboardBr", Dashboard.class)); WebMarkupContainer content = new WebMarkupContainer("content"); content.setOutputMarkupId(true); content.setMarkupId("security"); content.add(new AjaxBootstrapTabbedPanel<>("tabbedPanel", buildTabList())); body.add(content); }
add(container); container.add(new AjaxBootstrapTabbedPanel<>("tabbedPanel", buildTabList(pageRef)));