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

Consider moving DefaultProperty annotation

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P3 P3
    • fx2.0
    • fx2.0
    • javafx
    • None

      There is a DefaultProperty annotation in FXML which is used to help specify which property (typically a collection property I would venture to guess) should be considered the "default" property, such that in FXML you can say:

      <Parent>
          <Child/>
          <Child/>
      </Parent>

      instead of

      <Parent>
          <children>
              <Child />
              <Child />
           </children>
      </Parent>

      So we will want to use @DefaultProperty in a lot of places in the runtime libraries, but we'd like to keep FXML separate as far as dependencies go. We could move the annotation to the beans package.

            gkbrown Greg Brown (Inactive)
            rbair Richard Bair (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: