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

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


  /**
   * This is the entry point method.
   */
  public void onModuleLoad() {
    TabPanel tp = new TabPanel();

    WhiteTriangleExample whiteTriangleExample = new WhiteTriangleExample();
    tp.add(whiteTriangleExample, "White Triangle");
   
    ColoredTriangleBindingExample coloredTriangleBindingExample = new ColoredTriangleBindingExample();
    tp.add(coloredTriangleBindingExample, "Colored Triangle");
   
    TexturedCubeBindingExample texturedCubeBindingExample = new TexturedCubeBindingExample();
    tp.add(texturedCubeBindingExample, "Textured Cube");

    SkyboxExample skyboxExample  = new SkyboxExample();
    tp.add(skyboxExample, "Skybox");
   
    tp.selectTab(3);
    RootPanel.get("gwtgl-examples").add(tp);
  }
View Full Code Here


  /**
   * This is the entry point method.
   */
  public void onModuleLoad() {
    try{
      TabPanel tp = new TabPanel();
 
      WhiteTriangleWrapperExample whiteTriangleWrapperExample = new WhiteTriangleWrapperExample();
      tp.add(whiteTriangleWrapperExample, "White Triangle (Wrapper)");
 
      ColoredTriangleWrapperExample coloredTriangleWrapperExample = new ColoredTriangleWrapperExample();
      tp.add(coloredTriangleWrapperExample, "Colored Triangle (Wrapper)");
 
      TexturedCubeWrapperExample texturedCubeWrapperExample = new TexturedCubeWrapperExample();
      tp.add(texturedCubeWrapperExample, "Textured Cube (Wrapper)");
     
      TexturedSphereWrapperExample texturedSphereWrapperExample = new TexturedSphereWrapperExample();
      tp.add(texturedSphereWrapperExample, "Textured Sphere (Wrapper)");
 
      LightingWrapperExample lightingWrapperExample = new LightingWrapperExample();
      tp.add(lightingWrapperExample, "Lighting (Wrapper)");
     
      SkyboxWrapperExample skyboxWrapperExample = new SkyboxWrapperExample();
      tp.add(skyboxWrapperExample, "Skybox (Wrapper)");
 
      tp.selectTab(5);
      RootPanel.get("gwtgl-examples").add(tp);
    } catch (Exception e) {
      Window.alert("Sorry, Your Browser doesn't support WebGL!");
    }
  }
View Full Code Here

    nameField.setText("GWT User");

    // We can add style names to widgets
    sendButton.addStyleName("sendButton");
   
    TabPanel topTab = new TabPanel();
    topTab.setWidth("100%");
    topTab.setHeight("100%");
    topTab.setAnimationEnabled(true);
   
    topTab.add(new OverviewPanel(jmxService), "Overview");
    topTab.add(new SearchPanel(searchService),"Search");
   
    topTab.selectTab(0);
    RootPanel.get("toptab").add(topTab);
  }
View Full Code Here

    HorizontalPanel master = new HorizontalPanel();
    SimpleLogHandler handler = new SimpleLogHandler(false);
    Log.addLogHandler(handler);

    DatePicker.injectDefaultCss();
    TabPanel panel = new TabPanel();
    master.add(panel);
    master.add(handler.getWidget());
    panel.add(new LazyPanel<Widget>() {

      @Override
      public Widget createWidget() {
        return simplePicker();
      }

    }, "simple");

    panel.add(new LazyPanel<Widget>() {

      @Override
      public Widget createWidget() {
        return eventPicker();
      }

    }, "events");

    panel.add(new LazyPanel<Widget>() {

      @Override
      public Widget createWidget() {
        return stylingPicker();
      }

    }, "styles");

    panel.add(new LazyPanel<Widget>() {

      @Override
      public Widget createWidget() {
        return dateRange();
      }

    }, "date range");

    panel.selectTab(0);

    RootPanel.get().add(master);
  }
View Full Code Here

   
    SimpleCheckBox simpleCheckBox = new SimpleCheckBox();
    flexTable.setWidget(1, 1, simpleCheckBox);
    getCellFormatter().setVerticalAlignment(0, 0, HasVerticalAlignment.ALIGN_TOP);
   
    TabPanel tabPanel = new TabPanel();
    setWidget(1, 0, tabPanel);
    tabPanel.setWidth("100%");
   
    HorizontalPanel horizontalPanel = new HorizontalPanel();
    tabPanel.add(horizontalPanel, "New tab", false);
    horizontalPanel.setSize("5cm", "3cm");
   
    DateBox dateBox_1 = new DateBox();
    horizontalPanel.add(dateBox_1);
   
    Button btnNewButton = new Button("New button");
    horizontalPanel.add(btnNewButton);
   
    Label lblNewLabel = new Label("New label");
    horizontalPanel.add(lblNewLabel);
   
    Button btnNewButton_1 = new Button("New button");
    horizontalPanel.add(btnNewButton_1);
   
    VerticalPanel verticalPanel = new VerticalPanel();
    tabPanel.add(verticalPanel, "New tab", false);
    verticalPanel.setSize("5cm", "3cm");
   
    Button btnNewButton_2 = new Button("New button");
    verticalPanel.add(btnNewButton_2);
   
    DateBox dateBox = new DateBox();
    verticalPanel.add(dateBox);
   
    ListBox comboBox = new ListBox();
    verticalPanel.add(comboBox);
   
    TextArea textArea = new TextArea();
    verticalPanel.add(textArea);
    getFlexCellFormatter().setColSpan(1, 0, 3);
    getCellFormatter().setVerticalAlignment(1, 0, HasVerticalAlignment.ALIGN_TOP);
   
    tabPanel.selectTab(1);
   
  }
View Full Code Here

    hPanel.add(studyRegion);
   
    vPanel = new VerticalPanel();
    vPanel.add(hPanel);
   
    panel = new TabPanel();
   
    panel.add(tagListing , "Tags");
    panel.add(roadListing, "Roads");
    panel.add(zoneListing, "Zones");
   
View Full Code Here

   * methods to load them after the app starts, but before any API calls are
   * made.
   */
  public void onModuleLoad() {

    final TabPanel demoTabPanel = new TabPanel();
    demoTabPanel.getDeckPanel().setPixelSize(Window.getClientWidth() - 30,
        DEMO_PANEL_HEIGHT);
    RootPanel.get().add(demoTabPanel);

    Window.addResizeHandler(new ResizeHandler() {
      public void onResize(ResizeEvent event) {
        demoTabPanel.getDeckPanel().setPixelSize(Window.getClientWidth() - 30,
            DEMO_PANEL_HEIGHT);
      }
    });

    final VerticalPanel transDemoPanel = new VerticalPanel();
    transDemoPanel.add(loadingLabel());

    final VerticalPanel langDetectDemoPanel = new VerticalPanel();
    langDetectDemoPanel.add(loadingLabel());

    final VerticalPanel translitDemoPanel = new VerticalPanel();
    translitDemoPanel.add(loadingLabel());

    demoTabPanel.add(transDemoPanel, "Translation demo");
    demoTabPanel.add(langDetectDemoPanel, "Language detection demo");
    demoTabPanel.add(translitDemoPanel, "Transliteration demo");
    demoTabPanel.selectTab(0);

    LanguageUtils.loadTranslation(new Runnable() {
      public void run() {
        transDemoPanel.clear();
        transDemoPanel.add(new TranslationDemo());
View Full Code Here

            return tabPanelContract;
        }

        private TabPanelContract createDefaultTabPanel(InteractionUnit interactionUnit, EventBus eventBus) {
            final TabPanel tabPanel = new TabPanel();
            tabPanel.setStyleName("default-tabpanel");

            tabPanel.addBeforeSelectionHandler(new NavigationHandler(interactionUnit, childUnits, tabPanel));

            /*tabPanel.addAttachHandler(new AttachEvent.Handler() {
                @Override
                public void onAttachOrDetach(AttachEvent attachEvent) {

                    if(attachEvent.isAttached() && tabPanel.getWidgetCount()>0)
                        tabPanel.selectTab(0);
                }
            });*/


            // activation listener
            eventBus.addHandler(SystemEvent.TYPE,
                    new ChildActivationHandler<TabPanel>(tabPanel, childUnits, new ChildUnitCommand<TabPanel>() {
                        @Override
                        public void execute(TabPanel parent, int key) {
                            // TODO: this doesn't really work (rendering bugs) ...
                            parent.selectTab(key, false);
                            parent.getDeckPanel().showWidget(key); // workaround
                        }
                    })
            );

            TabPanelContract tabPanelContract = new TabPanelContract() {
                @Override
                public void add(InteractionUnit unit, Widget widget) {
                    tabPanel.add(widget, unit.getLabel());

                    // register tab2index mapping
                    childUnits.put(tabPanel.getWidgetCount() - 1, unit.getId());
                }

                @Override
                public Widget as() {
                    return tabPanel;
View Full Code Here

        rawView = new RawView();
        descView = new DescriptionView();
        nodeHeader = new NodeHeader();

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

        tabs.add(descView.asWidget(), "Description");
        tabs.add(rawView.asWidget(), "Data");

        tabs.selectTab(0);

        // --

        VerticalPanel contentPanel = new VerticalPanel();
        contentPanel.setStyleName("rhs-content-panel");
View Full Code Here

    service = (MentorServiceAsync) GWT.create(MentorService.class);
    allResults = new SearchResponseWidget();
    flowpanel = new FlowPanel();
    flowpanel.add(allResults);

    tabPanel = new TabPanel();
    tabPanel.add(flowpanel, "Local Stream");
    tabPanel.selectTab(0);

    tabPanel.setWidth("700px");
    tabPanel.addStyleName("table-center");
View Full Code Here

TOP

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

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.