Class ColumnConditionPanel<C,T>

java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
is.codion.swing.common.ui.component.table.ColumnConditionPanel<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 ColumnConditionPanel<C,T> extends JPanel
See Also:
  • Method Details

    • updateUI

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

      public ColumnConditionModel<C,T> model()
      Returns:
      the condition model this panel uses
    • requestInputFocus

      public void requestInputFocus()
      Requests keyboard focus for this panels input field
    • advanced

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

      public JComboBox<Item<Operator>> operatorComboBox()
      Returns:
      the condition operator combo box
    • equalField

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

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

      public JComponent lowerBoundField()
      Returns:
      the JComponent used to specify the lower bound
    • addFocusGainedListener

      public void addFocusGainedListener(Consumer<C> listener)
      Parameters:
      listener - listener notified when this condition panels input fields receive focus
    • columnConditionPanel

      public static <C, T> Optional<ColumnConditionPanel<C,T>> columnConditionPanel(ColumnConditionModel<C,T> conditionModel)
      Instantiates a new ColumnConditionPanel, 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
      Returns:
      a new ColumnConditionPanel instance or an empty Optional in case the column type is not supported
    • columnConditionPanel

      public static <C, T> Optional<ColumnConditionPanel<C,T>> columnConditionPanel(ColumnConditionModel<C,T> conditionModel, ColumnConditionPanel.BoundFieldFactory boundFieldFactory)
      Instantiates a new ColumnConditionPanel.
      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
      boundFieldFactory - the input field factory
      Returns:
      a new ColumnConditionPanel instance or an empty Optional in case the column type is not supported by the given bound field factory