Class ColumnConditionPanel<C,​T>

    • Method Detail

      • updateUI

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

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

        public void setAdvancedView​(boolean advanced)
        Parameters:
        advanced - true if advanced view should be enabled
      • isAdvancedView

        public boolean isAdvancedView()
        Returns:
        true if the advanced view is enabled
      • operatorComboBox

        public JComboBox<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
      • addAdvancedViewListener

        public void addAdvancedViewListener​(EventDataListener<Boolean> listener)
        Parameters:
        listener - a listener notified each time the advanced condition state changes
      • removeAdvancedViewListener

        public void removeAdvancedViewListener​(EventDataListener<Boolean> listener)
        Parameters:
        listener - the listener to remove
      • addFocusGainedListener

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

        public static <C,​T> ColumnConditionPanel<C,​T> columnConditionPanel​(ColumnConditionModel<C,​T> conditionModel,
                                                                                       ColumnConditionPanel.ToggleAdvancedButton toggleAdvancedButton)
        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
        toggleAdvancedButton - specifies whether this condition panel should include a button for toggling advanced mode
        Returns:
        a new ColumnConditionPanel instance