More Interfaces

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Unresolved
    • Priority: P5
    • tbd
    • Affects Version/s: None
    • Component/s: 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

            Assignee:
            Nir Lisker
            Reporter:
            Senf Dazu (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Imported: