profileRecordsPanel = new TabPanel(); table.setWidget(++row, 0, profileRecordsPanel);
public MultipleInstanceView(AttributeMetadata attributeMetadata, boolean repeating) { this.attributeMetadata = attributeMetadata; tabPanel = new TabPanel(); this.repeating = repeating; }
TabPanel tp = new TabPanel(); tp.HeaderText = "New Tab"; MyTabContainer.Tabs.Add(tp);
TabPanel panel = new TabPanel(); panel.add(new Page2(), "Page 2");
// Create an empty tab panel TabPanel tabPanel = new TabPanel(); // create contents for tabs of tabpanel final Frame cotent1 = new Frame( "http://www.youtube.com/embed/j6cxZp4ii6c?autoplay=true" ); final Frame cotent2 = new Frame( "http://www.youtube.com/embed/j6cxZp4ii6c?autoplay=true" ); // create titles for tabs String tab1Title = "TAB 1"; String tab2Title = "TAB 2"; // create tabs tabPanel.add( cotent1, tab1Title ); tabPanel.add( cotent2, tab2Title ); // select first tab tabPanel.selectTab( 0 ); // set width if tabpanel tabPanel.setWidth( "400" ); tabPanel.addSelectionHandler( new SelectionHandler<Integer>() { @Override public void onSelection( SelectionEvent<Integer> event ) { if(event.getSelectedItem() == 0) { cotent1.setUrl( "http://www.youtube.com/embed/j6cxZp4ii6c?autoplay=true" ); } // likewise set the urls to all the content } } );
tabPanel = new TabPanel();
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; }
final TabPanel infoTabPanel = new TabPanel();
TabPanel tPanel = new TabPanel();