@Override // This method is called by the FXMLLoader when initialization is complete public void initialize(URL fxmlFileLocation, ResourceBundle resources) { assert engines != null : "fx:id=\"engines\" was not injected: check your FXML file 'ProcessingEngines.fxml'."; engines.getStyleClass().add("floating");// transparent tabheader }
@Override public void changed(ObservableValue<? extends Boolean> observableValue, Boolean oldValue, Boolean newValue) { if (newValue != null) { if (newValue.booleanValue()) { getSkinnable().getStyleClass().remove("inactive"); } else { getSkinnable().getStyleClass().add("inactive"); } } } };
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; }
pools.getStyleClass().add("floating");// transparent tabheader
static Node createTabPane(int numOfTabs, int prefWidth, int prefHeight, String firstTabText, boolean floating, boolean disableFirst, Side side) { TabPane tabPane = new TabPane(); tabPane.setSide(side); if (floating) tabPane.getStyleClass().add("floating"); for (int i=1; i<=numOfTabs; i++) { tabPane.getTabs().add( TabBuilder.create() .text("Tab "+i) .disable(i==0 && disableFirst) .content(new Label((i==1 && firstTabText!=null)? firstTabText :"Tab "+i+" Content")) .build() ); } if (disableFirst) tabPane.getSelectionModel().select(1); tabPane.setPrefWidth(prefWidth); tabPane.setPrefHeight(prefHeight); return tabPane; }
this.libraryTabs.getStyleClass().add("rightPane");