Class FilterPanel

    • Field Detail

      • HORIZONTAL

        public static final int HORIZONTAL
        for horizontal layout (label textfield button).
        See Also:
        Constant Field Values
      • VERTICAL

        public static final int VERTICAL
        for vertical layout (label \n textfield button).
        See Also:
        Constant Field Values
      • m_Layout

        protected int m_Layout
        the type of layout to use.
      • m_LabelFilter

        protected JLabel m_LabelFilter
        the label for the filter.
      • m_TextFilter

        protected BaseTextField m_TextFilter
        the edit field for the filter.
      • m_LabelFilterClear

        protected JLabel m_LabelFilterClear
        the icon for clearing the text field.
      • m_ChangeListeners

        protected Set<ChangeListener> m_ChangeListeners
        the filter listeners.
    • Constructor Detail

      • FilterPanel

        public FilterPanel​(int layout)
        Initializes the component.
        Parameters:
        layout - the type of layout
        See Also:
        HORIZONTAL, VERTICAL
    • Method Detail

      • initialize

        protected void initialize()
        Initializes the members.
        Overrides:
        initialize in class BasePanel
      • initGUI

        protected void initGUI()
        Initializes the widgets.
        Overrides:
        initGUI in class BasePanel
      • finishInit

        protected void finishInit()
        Finishes the initialization.
        Overrides:
        finishInit in class BasePanel
      • setFilterLabel

        public void setFilterLabel​(String value)
        Sets the text for the filter label. Use "_" before the character that you want to use as mnemonic.
        Parameters:
        value - the text
      • getFilterLabel

        public String getFilterLabel()
        Returns the text of the filter label (no mnemonic).
        Returns:
        the text
      • setFilter

        public void setFilter​(String value)
        Sets the filter string.
        Parameters:
        value - the string
      • getFilter

        public String getFilter()
        Returns the filter string.
        Returns:
        the string
      • setToolTipText

        public void setToolTipText​(String value)
        Sets the tool tip for the text field and label.
        Overrides:
        setToolTipText in class JComponent
        Parameters:
        value - the tip text
      • getToolTipText

        public String getToolTipText()
        Returns the tool tip for the text field.
        Overrides:
        getToolTipText in class JComponent
        Returns:
        the tip text
      • addChangeListener

        public void addChangeListener​(ChangeListener l)
        Adds the listener to the internal set.
        Parameters:
        l - the listener to add
      • removeChangeListener

        public void removeChangeListener​(ChangeListener l)
        Removes the listener from the internal set.
        Parameters:
        l - the listener to remove
      • clearChangeListeners

        public void clearChangeListeners()
        Removes all change listeners.
      • notifyChangeListeners

        protected void notifyChangeListeners()
        Notifies all change listeners.
      • setEnabled

        public void setEnabled​(boolean value)
        Sets the enabled state.
        Overrides:
        setEnabled in class JComponent
        Parameters:
        value - true if enabled
      • isEnabled

        public boolean isEnabled()
        Returns the enabled state.
        Overrides:
        isEnabled in class Component
        Returns:
        true if enabled