Package com.google.gwt.user.client.ui

Examples of com.google.gwt.user.client.ui.TabPanel$UnmodifiableTabBar


        layout.add(pager);

        acceptorForm.getForm().bind(table);


        TabPanel tabs = new TabPanel();
        tabs.setStyleName("default-tabpanel");
        tabs.getElement().setAttribute("style", "margin-top:15px;");

        tabs.add(acceptorForm.asWidget(), "Details");
        tabs.add(properties.asWidget(), "Properties");

        layout.add(tabs);
        tabs.selectTab(0);


        // ----

        table.getSelectionModel().addSelectionChangeHandler(new SelectionChangeEvent.Handler() {
View Full Code Here


        layout.add(pager);

        ConnectorForm.getForm().bind(table);


        TabPanel tabs = new TabPanel();
        tabs.setStyleName("default-tabpanel");
        tabs.getElement().setAttribute("style", "margin-top:15px;");

        tabs.add(ConnectorForm.asWidget(), "Details");
        tabs.add(properties.asWidget(), "Properties");

        layout.add(tabs);
        tabs.selectTab(0);


        // ----

        table.getSelectionModel().addSelectionChangeHandler(new SelectionChangeEvent.Handler() {
View Full Code Here

        dispatcher.addDiagnostics(diagnosticsView);

        DockLayoutPanel layout = new DockLayoutPanel(Style.Unit.PX);
        layout.getElement().setAttribute("style", "width:100%; height:100%");

        TabPanel tabs = new TabPanel();
        tabs.getElement().setId("app-container");
        tabs.getElement().setAttribute("style", "margin:30px;width:100%; height:100%");

        tabs.add(todoView, "Todo List");
        tabs.add(userView, "User Management");

        tabs.selectTab(0);

        layout.addSouth(diagnosticsView, 50);
        layout.add(tabs);

        RootPanel.get().add(layout);
View Full Code Here

        operationsPanel.setStyleName("fill-layout-width");
        final Code code = new Code(Code.Language.JAVASCRIPT, false);
        operationsPanel.add(code);

        // form tabs
        TabPanel forms = new TabPanel();
        forms.setStyleName("default-tabpanel");
        forms.add(basicsPanel, Console.CONSTANTS.common_label_attributes());
        forms.add(operationsPanel, Console.CONSTANTS.common_label_operations());
        forms.selectTab(0);

        // update operations upon selection
        selectionModel.addSelectionChangeHandler(new SelectionChangeEvent.Handler() {
            @Override
            public void onSelectionChange(final SelectionChangeEvent event) {
View Full Code Here

    public TabbedFormLayoutPanel(Class<?> beanType, FormMetaData formMetaData, EnumSet<FrameworkButton> hideButtons,
            FormItemObserver... observers) {
        this.beanType = beanType;
        this.formMetaData = formMetaData;
        this.observers = observers;
        this.tabPanel = new TabPanel();
        this.tabPanel.setStyleName("default-tabpanel");
        this.forms = makeForms();
        this.hideButtons = hideButtons;
    }
View Full Code Here

public class TabPanelExample implements EntryPoint {

  public void onModuleLoad() {
    // Create a tab panel with three tabs, each of which displays a different
    // piece of text.
    TabPanel tp = new TabPanel();
    tp.add(new HTML("Foo"), "foo");
    tp.add(new HTML("Bar"), "bar");
    tp.add(new HTML("Baz"), "baz");

    // Show the 'bar' tab initially.
    tp.selectTab(1);

    // Add it to the root panel.
    RootPanel.get().add(tp);
  }
View Full Code Here

  private static final String[] TAB_BACKGROUNDS = {
      "#f88", "#88f", "#8f8", "#8ff", "#f8f"};

  @Override
  public Widget createIssue() {
    final TabPanel tabPanel = new TabPanel();
    String contentText = "";
    for (int i = 0; i < TAB_BACKGROUNDS.length; i++) {
      contentText += "Each tab has more text.<br>";
      HTML content = new HTML(contentText);
      content.getElement().getStyle().setProperty("background",
          TAB_BACKGROUNDS[i]);
      tabPanel.add(content, "Tab " + i);
    }

    tabPanel.selectTab(0);
    tabPanel.getDeckPanel().setAnimationEnabled(true);
    return tabPanel;
  }
View Full Code Here

    HorizontalPanel horizontalPanel_1 = new HorizontalPanel();
    horizontalPanel_1.setBorderWidth(1);
    //  rootPanel.add(horizontalPanel_1);
    horizontalPanel_1.setSize("445px", "111px");

    TabPanel tabPanel = new TabPanel();
    //horizontalPanel_1.add(tabPanel);
    tabPanel.setWidth("442px");

    HTMLPanel panel = new HTMLPanel("New HTML");
    tabPanel.add(panel, "New tab", false);
    panel.setSize("5cm", "3cm");

    HTMLPanel panel_1 = new HTMLPanel("New HTML");
    tabPanel.add(panel_1, "New tab", false);
    panel_1.setSize("5cm", "3cm");

    SimplePanel simplePanel_1 = new SimplePanel();
    rootPanel.add(simplePanel_1);
View Full Code Here

        layout.clear();
        layout.add( actionToolBar );
        layout.add( messageWidget );

        TabPanel tabPanel = new TabPanel();
        tabPanel.setWidth( "100%" );

        ScrollPanel scrollPanel = new ScrollPanel();
        scrollPanel.add( artifactEditor );
        tabPanel.add( scrollPanel,
                      constants.Attributes() );

        scrollPanel = new ScrollPanel();
        scrollPanel.add( ruleViewer );
        tabPanel.add( scrollPanel,
                      constants.Edit() );
        tabPanel.selectTab( 1 );

        layout.add( tabPanel );
    }
View Full Code Here

            detail.widget.getElement().addClassName("fill-layout-width");
            detail.widget.getElement().setAttribute("role", "application");
        }
        else if(details.size()>0)
        {
            TabPanel tabs = new TabPanel();
            tabs.setStyleName("default-tabpanel");
            tabs.getElement().setAttribute("style", "margin-top:15px;");

            for(NamedWidget item : details)
            {
                tabs.add(item.widget, item.title);
                item.widget.getElement().addClassName("fill-layout-width");
                item.widget.getElement().setAttribute("role", "application");
            }

            panel.add(tabs);

            if(!details.isEmpty())
                tabs.selectTab(0);

        }

        return layout;
    }
View Full Code Here

TOP

Related Classes of com.google.gwt.user.client.ui.TabPanel$UnmodifiableTabBar

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.