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

Examples of com.google.gwt.user.client.ui.TabLayoutPanel$Tab


                queuelessPoolView, unboundedQueuePoolView, boundedQueuePoolView, scheduledPoolView);
    }

    @Override
    public Widget createWidget() {
        TabLayoutPanel tabLayoutpanel = new TabLayoutPanel(25, Style.Unit.PX);
        tabLayoutpanel.addStyleName("default-tabpanel");
       
        tabLayoutpanel.add(threadFactoryView.asWidget(), threadFactoryView.getEntityDisplayName());
        tabLayoutpanel.add(queuelessPoolView.asWidget(), queuelessPoolView.getEntityDisplayName());
        tabLayoutpanel.add(unboundedQueuePoolView.asWidget(), unboundedQueuePoolView.getEntityDisplayName());
        tabLayoutpanel.add(boundedQueuePoolView.asWidget(), boundedQueuePoolView.getEntityDisplayName());
        tabLayoutpanel.add(scheduledPoolView.asWidget(), scheduledPoolView.getEntityDisplayName());
        return tabLayoutpanel;
    }
View Full Code Here


    private JMSEditor jmsEditor;

    @Override
    public Widget createWidget() {

        TabLayoutPanel tabLayoutpanel = new TabLayoutPanel(25, Style.Unit.PX);
        tabLayoutpanel.addStyleName("default-tabpanel");

        providerEditor = new MessagingProviderEditor(presenter);
        jmsEditor = new JMSEditor(presenter);

        tabLayoutpanel.add(providerEditor.asWidget(), Console.CONSTANTS.subsys_messaging_jms_provider());
        tabLayoutpanel.add(jmsEditor.asWidget(), Console.CONSTANTS.subsys_messaging_jms_destinations());

        tabLayoutpanel.selectTab(0);

        return tabLayoutpanel;
    }
View Full Code Here

    public void selectTab() {
        Widget parent = getParent();
        while (!(parent instanceof TabLayoutPanel)) {
            parent = parent.getParent();
        }
        TabLayoutPanel tab = (TabLayoutPanel) parent;
        tab.selectTab(this);
    }
View Full Code Here

        return clone;
    }
   
    @Override
    public Widget cloneDisplay(Map<String, Object> data) {
        TabLayoutPanel panel = new MyTabLayoutPanel(25, Unit.PX);
        panel.getElement().setId(this.id);
        panel.getElement().setClassName(this.cssClassName);
        for (int index = 0; index < this.titles.size() && index < this.tabs.size(); index++) {
            FlowLayoutFormItem flow = this.tabs.get(index);
            TabLabelFormItem label = this.titles.get(index);
            if (flow != null && label != null) {
                Widget newFlow = flow.cloneDisplay(data);
                if (this.cssClassName != null && !"".equals(this.cssClassName)) {
                    newFlow.setStyleName(this.cssClassName);
                }
                panel.add(newFlow, label.cloneDisplay(data));
            }
        }
        super.populateActions(panel.getElement());
        return panel;
    }
View Full Code Here

        final int yPosStartDrowdown = p5GuiYOffset+36;

        cp5.getWindow().setPositionOfTabs(GENERIC_X_OFS, this.getHeight()-20);

        //there a default tab which is present all the time. rename this tab
        Tab generatorTab = cp5.getTab("default"); //$NON-NLS-1$
        allTabs.add(generatorTab);
        generatorTab.setLabel(messages.getString("GeneratorGui.TAB_GENERATOR_EFFECT"));     //$NON-NLS-1$
        Tab outputTab = cp5.addTab(messages.getString("GeneratorGui.TAB_SINGLE_OUTPUT_MAPPING")); //$NON-NLS-1$
        allTabs.add(outputTab);
        Tab allOutputTab = null;
       
        //add all output mapping only if multiple output panels exist
        if (nrOfVisuals>2) {
            allOutputTab = cp5.addTab(messages.getString("GeneratorGui.TAB_ALL_OUTPUT_MAPPING"));     //$NON-NLS-1$
            allOutputTab.setColorForeground(0xffff0000);
            allTabs.add(allOutputTab);
        }

        Tab randomTab = cp5.addTab(messages.getString("GeneratorGui.TAB_RANDOMIZE"));     //$NON-NLS-1$
        allTabs.add(randomTab);
        Tab presetTab = cp5.addTab(messages.getString("GeneratorGui.TAB_PRESETS")); //$NON-NLS-1$
        allTabs.add(presetTab);
        Tab infoTab = cp5.addTab(messages.getString("GeneratorGui.TAB_INFO")); //$NON-NLS-1$
        allTabs.add(infoTab);
        Tab helpTab = cp5.addTab(messages.getString("GeneratorGui.TAB_HELP")); //$NON-NLS-1$
        allTabs.add(helpTab);
       
        generatorTab.setColorForeground(0xffff0000);
        outputTab.setColorForeground(0xffff0000);
        randomTab.setColorForeground(0xffff0000);
        presetTab.setColorForeground(0xffff0000);
        helpTab.setColorForeground(0xffff0000);
       
        generatorTab.bringToFront();
       
        //-------------
        //Generic Options
View Full Code Here

      return textGenerator.isFocus() || presetName.isFocus();
    }


  public void selectPreviousTab() {
    Tab currentTab = cp5.getWindow().getCurrentTab();
    Tab lastTab=null;
    for (Tab t: allTabs) {
      if (t==currentTab && lastTab!=null) {
        lastTab.bringToFront();
        return;
      }
      lastTab = t;
    }
    //activate the last tab
View Full Code Here

  }
 

  public void selectNextTab() {
    boolean activateNextTab = false;   
    Tab currentTab = cp5.getWindow().getCurrentTab();   
   
    for (Tab t: allTabs) {
      if (activateNextTab) {
        //active next tab and return
        t.bringToFront();
View Full Code Here

TOP

Related Classes of com.google.gwt.user.client.ui.TabLayoutPanel$Tab

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.