TableColumnBase: add Styleable properties

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Unresolved
    • Priority: P4
    • tbd
    • Affects Version/s: None
    • Component/s: javafx
    • None

      As the discussion in
      https://stackoverflow.com/questions/78303658/how-to-set-tableview-column-width-using-css-in-javafx indicates, the application developers expect the table columns be styleable via CSS.

      We might consider adding the following properties to TableColumn and TreeTableColumn, since their base class TableColumnBase is indeed Styleable:

      - editable ?
      - maxWidth
      - minWidth
      - prefWidth
      - reorderable
      - resizable
      - sortable
      - text ?
      - visible ?

      One thing to consider is the fact that allowing for styling the columns via CSS might require additional requirements, such adding column id to be able to identify the specific columns from the stylesheet.
      Another thing to consider is possible conflict with application settings framework which restore column widths using setPrefWidth().

      See also https://bugs.openjdk.org/browse/JDK-8331463

            Assignee:
            Andy Goryachev
            Reporter:
            Andy Goryachev
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: