Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8091373

Make javafx.scene.Scene implement javafx.css.Styleable

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 8
    • javafx

      Scene has a fillProperty which should be styleable via CSS but this would require making Scene implement the javafx.css.Styleable interface. The interesting bits from the interface are

          public String getId()
          public ObservableList<String> getStyleClass()
          public String getStyle()
          public ObservableSet<PseudoClass> getPseudoClassStates()

      Scene will have a "scene" style-class be default.

      getId() and getStyle() will be backed by corresponding properties with setters.

          public void setId(String newId)
          public final StringProperty idProperty()
          public void setStyle(String style)
          public final StringProperty styleProperty()

      There is no setPseudoClassStates method since pseudo-class states are handled internally. The only pseudo-class state for Scene is :dir which corresponds to node orientation.

      public String getTypeSelector() will return "Scene".

      The following CSS properties will be supported for Scene:

          -fx-cursor: <cursor | url>;
          -fx-fill: <paint>;
        

            Unassigned Unassigned
            dgrieve David Grieve
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Imported: