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

Implementing StyleableObjectProperty<Font> is not possible in Java9

    Details

    • Type: Bug
    • Status: Open
    • Priority: P3
    • Resolution: Unresolved
    • Affects Version/s: 9
    • Fix Version/s: tbd
    • Component/s: javafx

      Description

      With Java9 having impl_reapplyCss() removed as a public method it is impossible to implement a custom control who provides a font-property.

      To appropriately implement such a property one has to trigger a CSS-Pass manually in case the property is not defined through CSS (see implementation in Labeled)

      Possible solutions:
      * make reapplyCss at least protected
      * adjust the implementation in StyleablePropertyFactory to use the same logic as in Labeled or provide a new factory method who creates such a property

        Attachments

          Activity

            People

            • Assignee:
              aghaisas Ajit Ghaisas
              Reporter:
              tschindl Tom Schindl
            • Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated: