Class IzFilter

All Implemented Interfaces:
IThemeListener, IFilter, Drawable

public class IzFilter extends Composite implements IFilter, IThemeListener
Class used to create a filter entry field that is used to filter out e.g. properties.
Author:
Christopher Mindus
  • Constructor Details

    • IzFilter

      public IzFilter(Composite parent)
      Creates the filter composite in the parent.
      Parameters:
      parent - The parent composite.
    • IzFilter

      public IzFilter(Composite parent, IFilterListener filterListener)
      Creates the filter composite in the parent.
      Parameters:
      parent - The parent composite.
      filterListener - The listener.
    • IzFilter

      public IzFilter(Composite parent, IFilterListener filterListener, int style, boolean noClearButton)
      Creates the filter composite in the parent.
      Parameters:
      parent - The parent composite.
      filterListener - The listener.
      style - Style for composite.
      noClearButton - Flag indicating the clear button should not be used.
  • Method Details

    • setListener

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

      public void clear()
      Clears the filter without notification.
    • clearNotify

      public void clearNotify()
      Clears with notification to controller.
    • setFocus

      public boolean setFocus()
      Sets focus to filter text.
      Overrides:
      setFocus in class Composite
    • 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.
    • getTextComponent

      public Text getTextComponent()
      Gets the text component.
    • onThemeChanged

      public void onThemeChanged(ApplicationUI appUI)
      Called once the new theme has stabilized after a period of time.
      Specified by:
      onThemeChanged in interface IThemeListener
      Parameters:
      appUI - The new ApplicationUI instance.