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

FXML: Support static fields as values

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 8
    • fx2.0.2
    • javafx
    • Java: 1.7.0_09; Java HotSpot(TM) 64-Bit Server VM 23.5-b02
      System: Linux version 3.5.0-18-generic running on amd64; UTF-8; de_CH (nb)

      It should be possible to pass constants like Region.USE_PREF_SIZE to properties like ColumnConstraints.minWidth without resorting to JavaScript:

      <GridPane >
             <fx:script>
                  var USE_PREF_SIZE = Packages.javafx.scene.layout.Region.USE_PREF_SIZE;
              </fx:script>

              <columnConstraints>
                  <ColumnConstraints minWidth="$USE_PREF_SIZE" maxWidth="$USE_PREF_SIZE" hgrow="NEVER"/>
                  ...
              </columnConstraints>
              ....

            tbrandal Tomáš Brandalík (Inactive)
            puce Florian Brunner
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: