Class AbstractItemFilter

    • Field Detail

      • m_Enabled

        protected boolean m_Enabled
        whether the filter is enabled.
    • Constructor Detail

      • AbstractItemFilter

        public AbstractItemFilter()
        Initializes the filter.
    • Method Detail

      • initialize

        protected void initialize()
        Initializes the filter.
      • setEnabled

        public void setEnabled​(boolean value)
        Sets whether the filter is enabled.
        Parameters:
        value - if true the filter is enabled and checks classes
      • isEnabled

        public boolean isEnabled()
        Returns whether the filter is enabled. If a filter is not enabled, all checks will return "true".
        Returns:
        true if the filter is enabled
      • doFilter

        protected abstract boolean doFilter​(String item)
        Performs the actual filtering.
        Parameters:
        item - the item to check
        Returns:
        true if label can be displayed in the tree
      • filter

        public boolean filter​(String item)
        Checks an item whether it should be displayed or not.
        Parameters:
        item - the item to check
        Returns:
        true if item can be displayed in the tree
      • toString

        public abstract String toString()
        Returns a short representation of the filter.
        Overrides:
        toString in class Object
        Returns:
        the representation