functional/FXCssTests/src/test/css/controls/ControlsCssStylesFactory.java

Print this page

        

*** 54,64 **** import javafx.scene.effect.BlurType; import javafx.scene.effect.DropShadow; import javafx.scene.effect.InnerShadow; import javafx.scene.layout.HBox; import javafx.scene.layout.Pane; - import javafx.scene.layout.PaneBuilder; import javafx.scene.layout.Region; import javafx.scene.layout.VBox; import javafx.scene.paint.Color; import javafx.scene.shape.Rectangle; import javafx.scene.text.FontSmoothingType; --- 54,63 ----
*** 840,850 **** super.decorate(control, container); if (control instanceof VBox) { VBox box = (VBox) control; box.getChildren().clear(); box.setStyle(box.getStyle() + "-fx-border-color:blue;"); ! box.getChildren().add(PaneBuilder.create().children(new Rectangle(20, 20, Color.TRANSPARENT)).style("-fx-border-color:red;").build()); } } }}); props2Impls.put("-fx-indent", new CssStyle[]{ --- 839,851 ---- super.decorate(control, container); if (control instanceof VBox) { VBox box = (VBox) control; box.getChildren().clear(); box.setStyle(box.getStyle() + "-fx-border-color:blue;"); ! Pane temp = new Pane(new Rectangle(20, 20, Color.TRANSPARENT)); ! temp.setStyle("-fx-border-color:red;"); ! box.getChildren().add(temp); } } }}); props2Impls.put("-fx-indent", new CssStyle[]{
*** 1023,1033 **** super.decorate(control, container); if (control instanceof HBox) { HBox box = (HBox) control; box.getChildren().clear(); box.setStyle(box.getStyle() + "-fx-border-color:blue;"); ! box.getChildren().add(PaneBuilder.create().children(new Rectangle(20, 20, Color.TRANSPARENT)).style("-fx-border-color:red;").build()); } } } }); props2Impls.put("-fx-size", new CssStyle[]{ --- 1024,1036 ---- super.decorate(control, container); if (control instanceof HBox) { HBox box = (HBox) control; box.getChildren().clear(); box.setStyle(box.getStyle() + "-fx-border-color:blue;"); ! Pane temp = new Pane(new Rectangle(20, 20, Color.TRANSPARENT)); ! temp.setStyle("-fx-border-color:red;"); ! box.getChildren().add(temp); } } } }); props2Impls.put("-fx-size", new CssStyle[]{