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
ConstructorDescriptionFilterController
(IZ_Text text, IFilterListener filterListener) Creates the filter composite in the parent.Method Summary
Modifier and TypeMethodDescriptionboolean
clear()
Clears the filter without notification.void
Clears the filter text with notification to the listener.getText()
Gets the current filter text, never null!void
setListener
(IFilterListener listener) Sets the listener.boolean
Sets 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:
setListener
in 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!