/** * Programmatically selects the specified tab and fires events. * * @param index the index of the tab to be selected */ public void selectTab(int index) { selectTab(index, true); }
profileRecordsPanel.selectTab(0); if (endpointProfile != null) { endpointProfileRecordPanel.getRecordWidget().onShown();
/** * Programmatically selects the specified tab and fires events. * * @param index the index of the tab to be selected */ public void selectTab(int index) { selectTab(index, true); }
/** * Programmatically selects the specified tab and fires events. * * @param index the index of the tab to be selected */ public void selectTab(int index) { selectTab(index, true); }
@Override public void add(View view) { int index = tabPanel.getWidgetCount(); InstanceView instanceView = new InstanceView(Integer.toString(index)); tabPanel.add(view.getWidget(), instanceView.makeTab(tabLabel(index))); if (index == 0) { tabPanel.selectTab(0); } }
tabPanel.selectTab( 0 );
private void createDetailsSection(VerticalPanel vpanel) { // adds the title for the details section vpanel.add(new ContentGroupLabel("Details")); // adds the tabs for the details section bottomTabs = new TabPanel(); bottomTabs.setStyleName("default-tabpanel"); bottomTabs.addStyleName("master_detail-detail"); wizard = doCreateWizard(); doCreateAttributesTab(bottomTabs); addDetailsSectionTabs(bottomTabs); vpanel.add(bottomTabs); bottomTabs.selectTab(0); }
@Override public Widget asWidget() { this.tabPanel = new TabPanel(); tabPanel.setStyleName("default-tabpanel"); tabPanel.addStyleName("master_detail-detail"); VerticalPanel layout = new VerticalPanel(); final TextItem aliasItem = new TextItem("name", uiConstants.common_label_federationName()); form.setFields(aliasItem); form.setEnabled(false); layout.add(new FormLayout().setTools(null).setForm(form).build()); tabPanel.add(layout, "Attributes"); this.samlConfigurationDetails = new SAMLConfigurationDetails(this.presenter); tabPanel.add(this.samlConfigurationDetails.asWidget(), "SAML Configuration"); tabPanel.selectTab(0); return tabPanel; }
/** * @return this editor as a Widget. */ public Widget asWidget() { VerticalPanel panel = new VerticalPanel(); panel.add(new ContentGroupLabel(Singleton.MESSAGES.label_serviceDetails())); panel.add(new ContentDescription(Singleton.MESSAGES.description_serviceDetails())); panel.add(createImplementationDetailsPanel()); TabPanel tabs = new TabPanel(); tabs.setStyleName("default-tabpanel"); //$NON-NLS-1$ tabs.getElement().setAttribute("style", "margin-top:15px;"); //$NON-NLS-1$ //$NON-NLS-2$ tabs.add(createGatewayDetailsPanel(), Singleton.MESSAGES.label_gateways()); tabs.add(createThrottlingDetailsPanel(), Singleton.MESSAGES.label_throttling()); tabs.addBeforeSelectionHandler(new BeforeSelectionHandler<Integer>() { @Override public void onBeforeSelection(BeforeSelectionEvent<Integer> event) { _toolstrip.doCancel(); } }); panel.add(tabs); tabs.selectTab(0); return panel; }
tPanel.selectTab( useFunction ? 1 : 0 );