Examples of Tab


Examples of com.vaadin.ui.TabSheet.Tab

        final TabSheet ts = new TabSheet();
        ts.setHeight("100px");
        l.addComponent(ts);

        for (int i = 1; i < 10; i++) {
            Tab t = ts.addTab(new Label(), "Tab " + i);
            if (i % 2 == 0) {
                t.setIcon(ICON_GLOBE);
            }
            if (i == 2) {
                t.setEnabled(false);
            }
        }

        closable.addListener(new Property.ValueChangeListener() {
View Full Code Here

Examples of com.vaadin.ui.TabSheet.Tab

        a.setWidth("100%");
        a.setHeight("170px");
        l.addComponent(a);

        for (int i = 1; i < 5; i++) {
            Tab t = a.addTab(new Label(), "Sheet " + i);
            if (i % 2 == 0) {
                t.setIcon(ICON_GLOBE);
            }
            if (i == 2) {
                t.setEnabled(false);
            }
        }

        return l;
    }
View Full Code Here

Examples of com.vaadin.ui.TabSheet.Tab

            content.addComponent(new Label("Content for tab " + i));
            if (i == 2) {
                content.addComponent(new Label(
                        "Excepteur sint obcaecat cupiditat non proident culpa. Magna pars studiorum, prodita quaerimus."));
            }
            Tab t = ts.addTab(content, tabcaption);
            t.setClosable(closable);
            t.setEnabled(!disable);

            // First tab is always enabled
            if (i == 1) {
                t.setEnabled(true);
            }

            if (icon) {
                t.setIcon(testIcon.get(false));
            }
        }

        ts.addSelectedTabChangeListener(new SelectedTabChangeListener() {
            @Override
View Full Code Here

Examples of controlP5.Tab

        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

Examples of de.t68.utils.keyboard.icons.Tab

                kButton.addVirtualKeyListener(vkListener);
                button = kButton;
                break;
            case TAB:
                kButton = new KeyboardButton(fontName, keyFontSize, getKeyCode(), getKeyChar());
                kButton.setIcon(new Tab(32, 32));
                kButton.addVirtualKeyListener(vkListener);
                button = kButton;
                break;
            // All other special keys re
            default:
View Full Code Here

Examples of edu.wpi.cs.wpisuitetng.modules.defecttracker.tabs.Tab

    putValue(MNEMONIC_KEY, KeyEvent.VK_D);
  }

  @Override
  public void actionPerformed(ActionEvent arg0) {
    Tab tab = controller.addTab();
    SearchDefectsView view = new SearchDefectsView(controller, tab);
    tab.setComponent(view);
    view.requestFocus();
  }
View Full Code Here

Examples of facebook4j.Tab

            JSONArray list = json.getJSONArray("data");
            final int size = list.length();
            ResponseList<Tab> tabs = new ResponseListImpl<Tab>(size, json);
            for (int i = 0; i < size; i++) {
                JSONObject tabJSONObject = list.getJSONObject(i);
                Tab tab = new TabJSONImpl(tabJSONObject);
                if (conf.isJSONStoreEnabled()) {
                    DataObjectFactoryUtil.registerJSONObject(tab, tabJSONObject);
                }
                tabs.add(tab);
            }
View Full Code Here

Examples of it.cilea.osd.jdyna.web.Tab

 
 
  @Override
  public void validate(Object object, Errors errors) {

    Tab metadato = (Tab) object;

    // lo shortname non puo' essere vuoto

    String shortName = metadato.getShortName();

    // validazione shortname...deve essere unico e non nullo e formato solo da caratteri
    // alfabetici da 'a-zA-Z','_' e '-'
    boolean result = (shortName != null) && shortName.matches("^[a-z_\\-A-Z]*$");
       
 
View Full Code Here

Examples of javafx.scene.control.Tab

  public Controls(final ControlBar controlBar) {
    super();
   
    // add the main tabs
    setSide(Side.RIGHT);
    final Tab tab1 = createTab(null, RS.rbLabel(KEY.ALARM_SETTINGS),
        new AlarmSettings(controlBar));
    final Tab tab2 = createTab(null, RS.rbLabel(KEY.ALARM_THRESHOLDS),
        new AlarmThresholds(controlBar));
    final Tab tab3 = createTab(null, RS.rbLabel(KEY.ALARM_POSITIONING),
        new PositionSettings(controlBar));
    getTabs().addAll(tab1, tab2, tab3);
  }
View Full Code Here

Examples of javafx.scene.control.Tab

   * @return the {@linkplain Tab}
   */
  protected <T extends ControlPane> Tab createTab(
      final String graphicFileName, final String text,
      final T content) {
    final Tab tab = new Tab(text);
    tab.setClosable(false);
    tab.setContent(content);
    // TODO : dynamic tab content creation causes memory leaks
    /*
    //tab.setGraphic(RS.imgView(graphicFileName));
    tab.selectedProperty().addListener(new ChangeListener<Boolean>() {
      @Override
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.