Class ConditionPanel<T>

java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
is.codion.swing.common.ui.component.table.ConditionPanel<T>
Type Parameters:
T - the condition value type
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible
Direct Known Subclasses:
ColumnConditionPanel

public abstract class ConditionPanel<T> extends JPanel
An abstract base class for a UI component based on a ConditionModel.
See Also:
  • Constructor Details

    • ConditionPanel

      protected ConditionPanel(ConditionModel<T> condition)
      Instantiates a new ConditionPanel.
      Parameters:
      condition - the condition model
  • Method Details

    • condition

      public final ConditionModel<T> condition()
      Returns:
      the condition model this panel is based on
    • view

      public final Value<ConditionPanel.ConditionView> view()
      Returns:
      the Value controlling the condition panel view
    • components

      public abstract Collection<JComponent> components()
      Returns:
      the components presented by this condition panel
    • requestInputFocus

      public abstract void requestInputFocus()
      Requests keyboard focus for this panel
    • focusGainedObserver

      public Optional<Observer<?>> focusGainedObserver()
      The default implementation returns an empty Optional.
      Returns:
      an observer notified when a subcomponent of this condition panel receives focus or an empty Optional if none is available
    • onViewChanged

      protected abstract void onViewChanged(ConditionPanel.ConditionView conditionView)