Package com.iizigo.swt
Class FilterController
java.lang.Object
com.iizigo.swt.FilterController
- All Implemented Interfaces:
IFilter
Class used to control a filter entry field that is used to filter out e.g. properties.
- Author:
- Christopher Mindus
Constructor Summary
ConstructorsConstructorDescriptionFilterController(Text text, IFilterListener filterListener) Creates the filter composite in the parent.Method Summary
Modifier and TypeMethodDescriptionbooleanclear()Clears the filter without notification.voidClears the filter text with notification to the listener.getText()Gets the current filter text, never null!voidsetListener(IFilterListener listener) Sets the listener.booleanSets a new text for the filter.
Constructor Details
FilterController
Creates the filter composite in the parent.- Parameters:
text- The parent.filterListener- The listener.
Method Details
setListener
Sets the listener.- Specified by:
setListenerin interfaceIFilter
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
Sets a new text for the filter.getText
Gets the current filter text, never null!