Package javafx.scene.control

Examples of javafx.scene.control.Tab


    }

    @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

                }
            }

            EDITOR.initEditor();

            final Tab TAB = new Tab(!_IMPOSSIBLE_TITLE_.equals(TITLE) ? TITLE : "");

            TAB.setId(EDITOR.getInstanceId());

            BorderPane bpane = new BorderPane();

            SidePane tab_edit_panel = EDITOR.__sider;
            bpane.setCenter(tab_edit_panel);
            TAB.setContent(bpane);

            //****************************************************************//
            //*                  GESTIONE CLOSE TAB                          *//
            //****************************************************************//
            TAB.setOnCloseRequest((javafx.event.Event evt) -> {
                closeEditor(EDITOR, evt, TAB);
            });

            NODE.getProperties().put("is_open", "true");

View Full Code Here

                if (title == null || title.length() == 0) {
                    UtilityFX.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) {
                UtilityFX.warning("Exception while loading "
                        + "PLUGIN ID: " + plugin.getId());
View Full Code Here

 
  public void remakeTabs() {
    getTabs().clear();
    JCGP jcgp = gui.getExperiment();
   
    Tab tab;
    ChromosomePane cp;
    for (int i = 0; i < jcgp.getResources().populationSize(); i++) {
      cp = new ChromosomePane(jcgp.getPopulation().get(i), gui, this);
      tab = new Tab("Chr " + i);
      tab.setContent(cp);
      getTabs().add(tab);
    }
  }
View Full Code Here

                            }

                            FXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource("DebugView.fxml"));
                            TabPane debugView = fxmlLoader.load();
                            debugController = fxmlLoader.getController();
                            final Tab tab = new Tab(xmppSession.getDomain());
                            tab.setContent(debugView);
                            tab.textProperty().bind(title);
                            connectionListenerMap.put(tab, connectionListener);

                            final AnimationTimer animationTimer = new AnimationTimer() {
                                @Override
                                public void handle(long now) {
                                    if (outputStreamIncoming != null) {
                                        String incoming = outputStreamIncoming.toString();
                                        if (!incoming.isEmpty()) {
                                            debugController.appendTextIncoming(incoming);
                                            outputStreamIncoming.reset();
                                        }
                                    }
                                    if (outputStreamOutgoing != null) {
                                        String outgoing = outputStreamOutgoing.toString();
                                        if (!outgoing.isEmpty()) {
                                            debugController.appendTextOutgoing(outgoing);
                                            outputStreamOutgoing.reset();
                                        }
                                    }
                                }
                            };
                            animationTimer.start();

                            tab.setOnClosed(new EventHandler<Event>() {
                                @Override
                                public void handle(Event event) {
                                    xmppSession.removeSessionStatusListener(connectionListenerMap.remove(tab));
                                    xmppSession.removePresenceListener(presenceListener);
                                    animationTimer.stop();
View Full Code Here

        return currentPath().getParent();
    }


    public void setCurrentTabText(String currentTabText) {
        Tab tab = getCurrentTab();
        Label label = (Label) tab.getGraphic();
        label.setText(currentTabText);
    }
View Full Code Here

        Label label = (Label) tab.getGraphic();
        label.setText(currentTabText);
    }

    public String getCurrentTabText() {
        Tab tab = getCurrentTab();
        Label label = (Label) tab.getGraphic();

        return label.getText();
    }
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.