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

More Interfaces

XMLWordPrintable

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

      many Controls has a TextProperty
      but i must check (instanceof) and cast all Controls separatly

      if (node instanceof Labeled)
      {
      Language.bind(((Labeled) node).textProperty());
      }
      if (node instanceof Tab)
      {
      Language.bind(((Tab) node).textProperty());
      }
      if (node instanceof TableColumn)
      {
      Language.bind(((TableColumn) node).textProperty());
      }

      an Interface ITextProperty was very nice
      so i has only check and cast:

      if (node instanceof ITextProperty)
      {
      Language.bind(((ITextProperty) node).textProperty());
      }

      same as graphic / content / {min / pref / max}{width/height}Property

            Unassigned Unassigned
            sdazujfx Senf Dazu (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Imported: