Class ColumnCheckBoxList

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, Scrollable

public class ColumnCheckBoxList extends BasicCheckBoxList<TableColumn>
CheckBoxList that represents the columns in a TableColumnModel.

If columns are added, removed or renamed in the TableColumnModel, that is reflected here. However, since you can reorder entries in this list, not much attempt is made to reflect order changes in the TableColumnModel: added columns are added at the end, movements are ignored.

Since:
3 Oct 2023
Author:
Mark Taylor
See Also:
  • Constructor Details

    • ColumnCheckBoxList

      public ColumnCheckBoxList(boolean dfltChecked, Predicate<TableColumn> filter)
      Constructor.
      Parameters:
      dfltChecked - whether new columns added to the list are by default checked or not
      filter - filter for columns from the input column model to include in this list, or null to include all
  • Method Details

    • setTableColumnModel

      public void setTableColumnModel(TableColumnModel columnModel)
      Sets the TableColumnModel that this list should represent.
      Parameters:
      columnModel - table column model, may be null
    • getTableColumnModel

      public TableColumnModel getTableColumnModel()
      Returns the TableColumnModel that this list is representing.
      Returns:
      table column model, may be null