Class TableColumnLayout

    • Constructor Detail

      • TableColumnLayout

        public TableColumnLayout()
        Creates a new table column layout.
      • TableColumnLayout

        public TableColumnLayout​(boolean adjustForScrollBar)
        Creates a new table column layout.
        Parameters:
        adjustForScrollBar - true if the layout should reserve space for the vertical scroll bar
        Since:
        3.12
    • Method Detail

      • getColumnCount

        protected int getColumnCount​(Scrollable tableTree)
        Get the number of columns for the receiver.
        Specified by:
        getColumnCount in class AbstractColumnLayout
        Parameters:
        tableTree - the control
        Returns:
        the number of columns
        Since:
        3.5
      • setColumnWidths

        protected void setColumnWidths​(Scrollable tableTree,
                                       int[] widths)
        Set the widths of the columns.
        Specified by:
        setColumnWidths in class AbstractColumnLayout
        Parameters:
        tableTree - the control
        widths - the widths of the column
        Since:
        3.5
      • getLayoutData

        protected ColumnLayoutData getLayoutData​(Scrollable tableTree,
                                                 int columnIndex)
        Get the layout data for a column
        Specified by:
        getLayoutData in class AbstractColumnLayout
        Parameters:
        tableTree - the control
        columnIndex - the column index
        Returns:
        the layout data, might not null
        Since:
        3.5