Class TableHeaderRow

    • Constructor Detail

      • TableHeaderRow

        public TableHeaderRow​(TableViewSkinBase skin)
        Creates a new TableHeaderRow instance to visually represent the column header area of controls such as TableView and TreeTableView.
        Parameters:
        skin - The skin used by the UI control.
    • Method Detail

      • layoutChildren

        protected void layoutChildren()
        Invoked during the layout pass to layout the children in this Parent. By default it will only set the size of managed, resizable content to their preferred sizes and does not do any node positioning.

        Subclasses should override this function to layout content as needed.

        Overrides:
        layoutChildren in class StackPane
      • computePrefWidth

        protected double computePrefWidth​(double height)
        Computes the preferred width of this region for the given height. Region subclasses should override this method to return an appropriate value based on their content and layout strategy. If the subclass doesn't have a VERTICAL content bias, then the height parameter can be ignored.
        Overrides:
        computePrefWidth in class StackPane
        Parameters:
        height - the height that should be used if preferred width depends on it
        Returns:
        the computed preferred width for this region
      • computeMinHeight

        protected double computeMinHeight​(double width)
        Computes the minimum height of this region. Returns the sum of the top and bottom insets by default. Region subclasses should override this method to return an appropriate value based on their content and layout strategy. If the subclass doesn't have a HORIZONTAL content bias, then the width parameter can be ignored.
        Overrides:
        computeMinHeight in class StackPane
        Parameters:
        width - the width that should be used if min height depends on it
        Returns:
        the computed minimum height for this region
      • computePrefHeight

        protected double computePrefHeight​(double width)
        Computes the preferred height of this region for the given width; Region subclasses should override this method to return an appropriate value based on their content and layout strategy. If the subclass doesn't have a HORIZONTAL content bias, then the width parameter can be ignored.
        Overrides:
        computePrefHeight in class StackPane
        Parameters:
        width - the width that should be used if preferred height depends on it
        Returns:
        the computed preferred height for this region
      • createRootHeader

        protected NestedTableColumnHeader createRootHeader()
        Creates a new NestedTableColumnHeader instance. By default this method should not be overridden, but in some circumstances it makes sense (e.g. testing, or when extreme customization is desired).
        Returns:
        A new NestedTableColumnHeader instance.