private TabPane createEngineVersion() { final TabPane availableEngines = new TabPane(); availableEngines.getStyleClass().add("rightPane"); availableEngines.setTabClosingPolicy(TabPane.TabClosingPolicy.UNAVAILABLE); Bindings.bindContent(availableEngines.getTabs(), this.engineSubCategoryTabs); return availableEngines; }
public AquaTabPaneSkin(TabPane tabPane) { super(tabPane); definePillPosition(); adjustBorders(); /** * Tabs are not closeable in Aqua */ tabPane.setTabClosingPolicy(TabClosingPolicy.UNAVAILABLE); addInactiveState(); }
/** * add a tab Pane with the given tabPaneId * * @param tabPaneId * @return the tabPane */ public TabPane addTabPane(String tabPaneId) { TabPane tabPane = new TabPane(); tabPane.setId(tabPaneId); int tabSize = getTabSize(); tabPane.setTabMinHeight(tabSize); tabPane.setTabMaxHeight(tabSize); tabPane.setTabMinWidth(tabSize); tabPane.setTabMaxWidth(tabSize); // tabPane.setMaxWidth(Control.USE_PREF_SIZE); // tabPane.setMaxHeight(Control.USE_PREF_SIZE); // make sure it grows e.g. when Icons are set // https://stackoverflow.com/a/25164425/1497139 VBox.setVgrow(tabPane, Priority.ALWAYS); tabPane.setTabClosingPolicy(TabClosingPolicy.UNAVAILABLE); // add click behavior makeBlueOnSelectAndRemember(tabPane); // add tab Pane to map this.tabPaneMap.put(tabPaneId, tabPane); return tabPane; }
public Node getContent(Scene scene) { // TabPane final TabPane tabPane = new TabPane(); tabPane.setTabClosingPolicy(TabPane.TabClosingPolicy.UNAVAILABLE); tabPane.setPrefWidth(scene.getWidth()); tabPane.setPrefHeight(scene.getHeight()); tabPane.prefWidthProperty().bind(scene.widthProperty()); tabPane.prefHeightProperty().bind(scene.heightProperty()); // list view examples Tab listViewTab = new Tab("ListView"); buildListViewTab(listViewTab); tabPane.getTabs().add(listViewTab); // tree view examples Tab treeViewTab = new Tab("TreeView"); buildTreeViewTab(treeViewTab); tabPane.getTabs().add(treeViewTab); // table view examples Tab tableViewTab = new Tab("TableView"); buildTableViewTab(tableViewTab); tabPane.getTabs().add(tableViewTab); return tabPane; }
public MainWindow(String applicationName, LibraryView library, ApplicationsView apps, EnginesView engines, ContainersView containers, InstallationsView installations, SettingsView settings, ThemeManager themeManager, JavaFxSettingsManager javaFxSettingsManager) { super(); tabPane = new TabPane(); tabPane.setId("menuPane"); tabPane.setTabClosingPolicy(TabPane.TabClosingPolicy.UNAVAILABLE); tabPane.getTabs().addAll(library, apps, containers, engines, installations, settings); this.scene = new PhoenicisScene(tabPane, themeManager, javaFxSettingsManager); this.getIcons().add(new Image( JavaFXApplication.class.getResourceAsStream("/org/phoenicis/javafx/views/common/phoenicis.png"))); // avoid 1x1 pixel window this.setMinHeight(200); this.setMinWidth(200); this.setResizable(true); this.setHeight(javaFxSettingsManager.getWindowHeight()); this.setWidth(javaFxSettingsManager.getWindowWidth()); this.setMaximized(javaFxSettingsManager.isWindowMaximized()); this.setScene(scene); this.setTitle(applicationName); this.show(); }
this.paintTabFolder.setTabClosingPolicy(TabClosingPolicy.UNAVAILABLE); Tab solid = createColorTab(); Tab linear = createLinearTab();
this.paintTabFolder.setTabClosingPolicy(TabClosingPolicy.UNAVAILABLE); Tab solid = createColorTab(); Tab linear = createLinearTab();