Package javafx.scene.control

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


   * @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

  private boolean forceTabSizeTocontentesize;

  public TabPaneShowFormStrategie(TabPane component) {
    super(component);
   
    tab = new Tab();
    tab.setText("new tab");
  }
View Full Code Here

         * azioni.
         */
        String id = (String) map.get(Bookmark.__ID_PARAM);
        BookmarkListener listener = (BookmarkListener) map.get(Bookmark.__LISTENER_PARAM);
        String pluginId = (String) map.get(Bookmark.__PLUGIN_ID_PARAM);
        Tab tab = manager.findTab(pluginId);
        manager.selectTab(tab);
        listener.bookmarkAction(id);
    }
View Full Code Here

                if (title == null || title.length() == 0) {
                    Utility.warning("No title found for: " + plugin.getId());
                    title = "Utils N:" + (MAP_PLUGIN.size() - 1);
                }

                Tab tab = new Tab(RBLoader.ll(title));
                tab.setId(plugin.getId());
                tab.setClosable(false);

                Node node = plugin.getGuiEditor();

                // Se ha una grafica allora inserisco il tab.
                if (node != null) {
                    tab.setContent(node);
                    __tabbed.getTabs().add(tab);
                }
            } catch (Exception exc) {
                Utility.warning("Exception while loading "
                        + "PLUGIN ID: " + plugin.getId());
View Full Code Here

                        Platform.runLater(() -> {
                            plugin.setSelected();
                        });

                        Tab tab = findTab(plugin.getId());
                        selectTab(tab);
                        return;
                    }
                }
            }
View Full Code Here

    }

    @Override public synchronized void updateToolBarButtons() {
        SingleSelectionModel<Tab> sst = __tabbed.getSelectionModel();
        if (sst != null) {
            Tab tab = sst.getSelectedItem();
            if (tab != null) {
                updateToolBarButtons(tab.getId());
            }
        }
    }
View Full Code Here

            __tabbed = new TabPane();
            setDefaultSize(__tabbed);

            __tabbed.setSide(Side.BOTTOM);
            first_tab = new Tab(RBLoader.ll(_FIRST_TAB_TITLE_));
            first_tab.setId(_FIRST_TAB_TITLE_);
            first_tab.setClosable(false);
            __tabbed.getTabs().add(first_tab);

            //****************************************************************//
 
View Full Code Here

    }

    private Tab getSelectedTab() {
        SingleSelectionModel<Tab> sst = __tabbed.getSelectionModel();
        if (sst != null) {
            Tab tab = sst.getSelectedItem();
            if (tab != null) {
                return tab;
            }
        }
        return null;
View Full Code Here

            sst.select(first_tab);
        }
    }

    private void deleteAccount() {
        Tab tab = getSelectedTab();
        if (tab != null) {
            if (tab.equals(first_tab)) {
                Object sel = __table.getSelectionModel().getSelectedItem();
                if (sel != null && sel instanceof CellPropertiesManager) {
                    CellPropertiesManager editor = (CellPropertiesManager) sel;
                    askDeleteAccount(editor);
                }
            } else {
                for (CellPropertiesManager editor : list_editors) {
                    if (editor.getInstanceId().equals(tab.getId())) {
                        askDeleteAccount(editor);
                        return;
                    }
                }
            }
View Full Code Here

TOP

Related Classes of javafx.scene.control.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.