Allow subclass to create the RootHeader in TableHeaderRow by exposing the tableSkin

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 8
    • Affects Version/s: 8
    • Component/s: javafx

      In TableHeaderRow, there is such a method.
          protected NestedTableColumnHeader createRootHeader() {
              return new NestedTableColumnHeader(tableSkin, null);
          }

      When subclass wants to override it, it doesn't have access to the tableSkin because it is a private field. I recommend changing signature to

          protected NestedTableColumnHeader createRootHeader(TableViewSkinBase tableSkin) {
              return new NestedTableColumnHeader(tableSkin, null);
          }

      Or provide a getter for the tableSkin

          protected TableViewSkinBase getTableSkin() {
              return this.tableSkin;
          }

            Assignee:
            Jonathan Giles
            Reporter:
            David Qiao (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: