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

Allow parent nodes to provide CSS styleable properties for child nodes

XMLWordPrintable

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

      Controls like HBox, VBox and GridPane have several properties that can be set on the child via static accessors. They store these properties, like `hgrow`, `column-index` etc in the child's properties map under a specific key.

      However, this makes it hard to style these controls from CSS. Settings like margins, grow and fill are typically choices that should be configurable from CSS.

      Proposal:
      - Modify Styleable to have a `getChildCssMetaData` method for providing CSS styleables applicable to any direct children
      - Instead of storing key/value pairs in the properties map, store key/property pairs, where property is a styleable property created on demand
      - Modify CssStyleHelper to take these additional styleables in to account

            jhendrikx John Hendrikx
            jhendrikx John Hendrikx
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: