Class FilteredTableColumnComponentPanel<C,T extends JComponent>

java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
is.codion.swing.common.ui.component.table.FilteredTableColumnComponentPanel<C,T>
Type Parameters:
T - the component type
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public final class FilteredTableColumnComponentPanel<C,T extends JComponent> extends JPanel
A panel that synchronizes child component sizes and positions to table columns. For instances use the filteredTableColumnComponentPanel(FilteredTableColumnModel, Map) factory method.
See Also:
  • Method Details

    • updateUI

      public void updateUI()
      Overrides:
      updateUI in class JPanel
    • components

      public Map<C,T> components()
      Returns:
      the column components mapped their respective column identifiers
    • filteredTableColumnComponentPanel

      public static <C, T extends JComponent> FilteredTableColumnComponentPanel<C,T> filteredTableColumnComponentPanel(is.codion.swing.common.model.component.table.FilteredTableColumnModel<C> columnModel, Map<C,T> columnComponents)
      Type Parameters:
      C - the column identifier type
      T - the component type
      Parameters:
      columnModel - the column model
      columnComponents - the column components mapped to their respective column
      Returns:
      a new FilteredTableColumnComponentPanel