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

Tab and TableColumn needs to implement all the Labeled features via copy/paste

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: fx2.0
    • Fix Version/s: tbd
    • Component/s: javafx
    • Labels:

      Description

      Tab and TableColumn are both classes that extend from Object, rather than Control, Node or similar. They are all essentially Labeled in the sense that they should be able to display a graphic and some text. We should copy all the properties (relevant properties, I think that is all of them) into Tab and TableColumn from Labeled to ensure consistent API across all 'controls'. In the future we might have a super interface, but we don't have one now.

      Tab already has setText and setGraphic methods, but doesn't have all of the relevant properties present in Labeled (e.g. for specifying the position of the graphic, etc).
      TableColumn has setText, but no support for graphic (which is a surprisingly common feature request). Again, it doesn't have the other API that is part of Labeled. We should also add id / style / styleClass to TableColumn, which is already present in Tab.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              rbair Richard Bair (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Imported: