Class FilterColumnConditionPanel<C,T>

Type Parameters:
C - the type of objects used to identify columns
T - the column value type
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public final class FilterColumnConditionPanel<C,T> extends ColumnConditionPanel<C,T>
A UI implementation for ColumnConditionModel. For instances use the filterColumnConditionPanel(ColumnConditionModel, String) or filterColumnConditionPanel(ColumnConditionModel, String, FieldFactory) factory methods.
See Also:
  • Field Details

    • CONTROL_KEY_STROKES

      public static final ControlKeyStrokes CONTROL_KEY_STROKES
      The default keyboard shortcut keyStrokes.
  • Method Details

    • updateUI

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

      public Collection<JComponent> components()
      Specified by:
      components in class ColumnConditionPanel<C,T>
      Returns:
      the components presented by this condition panel
    • requestInputFocus

      public void requestInputFocus()
      Description copied from class: ColumnConditionPanel
      Requests keyboard focus for this panel
      Specified by:
      requestInputFocus in class ColumnConditionPanel<C,T>
    • focusGainedEvent

      public Optional<is.codion.common.event.EventObserver<C>> focusGainedEvent()
      Description copied from class: ColumnConditionPanel
      The default implementation returns an empty Optional.
      Overrides:
      focusGainedEvent in class ColumnConditionPanel<C,T>
      Returns:
      an event notified when a subcomponent of this condition panel receives focus or an empty Optional if none is available
    • operatorComboBox

      public JComboBox<is.codion.common.item.Item<is.codion.common.Operator>> operatorComboBox()
      Returns:
      the condition operator combo box
    • equalField

      public Optional<JComponent> equalField()
      Returns:
      the JComponent used to specify the equal value
    • upperBoundField

      public Optional<JComponent> upperBoundField()
      Returns:
      the JComponent used to specify the upper bound
    • lowerBoundField

      public Optional<JComponent> lowerBoundField()
      Returns:
      the JComponent used to specify the lower bound
    • inField

      public Optional<JComponent> inField()
      Returns:
      the JComponent used to specify the in values
    • filterColumnConditionPanel

      public static <C, T> FilterColumnConditionPanel<C,T> filterColumnConditionPanel(is.codion.common.model.table.ColumnConditionModel<C,T> conditionModel, String caption)
      Instantiates a new FilterColumnConditionPanel, with a default bound field factory.
      Type Parameters:
      C - the type of objects used to identify columns
      T - the column value type
      Parameters:
      conditionModel - the condition model to base this panel on
      caption - the caption to use when presenting this condition panel
      Returns:
      a new FilterColumnConditionPanel instance or an empty Optional in case the column type is not supported
    • filterColumnConditionPanel

      public static <C, T> FilterColumnConditionPanel<C,T> filterColumnConditionPanel(is.codion.common.model.table.ColumnConditionModel<C,T> conditionModel, String caption, FilterColumnConditionPanel.FieldFactory<C> fieldFactory)
      Instantiates a new FilterColumnConditionPanel.
      Type Parameters:
      C - the type of objects used to identify columns
      T - the column value type
      Parameters:
      conditionModel - the condition model to base this panel on
      caption - the caption to use when presenting this condition panel
      fieldFactory - the input field factory
      Returns:
      a new FilterColumnConditionPanel instance or an empty Optional in case the column type is not supported by the given bound field factory
      Throws:
      IllegalArgumentException - in case the given field factory does not support the column value type
    • onStateChanged

      protected void onStateChanged(ColumnConditionPanel.ConditionState conditionState)
      Specified by:
      onStateChanged in class ColumnConditionPanel<C,T>