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

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

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 8
    • 8
    • 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;
          }

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

              Created:
              Updated:
              Resolved:
              Imported: