Class FilterController

java.lang.Object
com.iizigo.swt.FilterController
All Implemented Interfaces:
IFilter

public class FilterController extends Object implements IFilter
Class used to control a filter entry field that is used to filter out e.g. properties.
Author:
Christopher Mindus
  • Constructor Details

    • FilterController

      public FilterController(Text text, IFilterListener filterListener)
      Creates the filter composite in the parent.
      Parameters:
      text - The parent.
      filterListener - The listener.
  • Method Details

    • setListener

      public void setListener(IFilterListener listener)
      Sets the listener.
      Specified by:
      setListener in interface IFilter
    • clear

      public boolean clear()
      Clears the filter without notification.
      Returns:
      true if filter was cleared, false otherwise.
    • clearNotify

      public void clearNotify()
      Clears the filter text with notification to the listener.
    • setText

      public boolean setText(String text)
      Sets a new text for the filter.
      Specified by:
      setText in interface IFilter
      Parameters:
      text - The new text to set.
      Returns:
      true for changes, false for none.
    • getText

      public String getText()
      Gets the current filter text, never null!
      Specified by:
      getText in interface IFilter
      Returns:
      The filter text, or empty string if filter is disposed of.