Class FilteredTableConditionPanel<C>

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

public final class FilteredTableConditionPanel<C> extends JPanel
Contains the filter panels.
See Also:
  • Method Details

    • updateUI

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

      public Collection<ColumnConditionPanel<C,?>> conditionPanels()
      Returns:
      an unmodifiable view of the condition panels
    • advanced

      public State advanced()
      Returns:
      the state controlling the advanced view status of this condition panel
    • conditionPanel

      public <T> Optional<ColumnConditionPanel<C,T>> conditionPanel(C columnIdentifier)
      Type Parameters:
      T - the column value type
      Parameters:
      columnIdentifier - the column identifier
      Returns:
      the condition panel associated with the given column or an empty Optional in case of no condition panel
    • controls

      public Controls controls()
      Returns:
      the controls provided by this condition panel, for toggling the advanced mode and clearing the condition
    • addFocusGainedListener

      public void addFocusGainedListener(Consumer<C> listener)
      Parameters:
      listener - a listener notified when a condition panel receives focus
    • filteredTableConditionPanel

      public static <C> FilteredTableConditionPanel<C> filteredTableConditionPanel(TableConditionModel<C> conditionModel, FilteredTableColumnModel<C> columnModel, ColumnConditionPanel.Factory<C> conditionPanelFactory)
      Type Parameters:
      C - the column identifier type
      Parameters:
      conditionModel - the condition model
      columnModel - the column model
      conditionPanelFactory - the condition panel factory
      Returns:
      a new FilteredTableConditionPanel