| java.lang.Object org.netbeans.modules.tasklist.filter.FilterCondition
All known Subclasses: org.netbeans.modules.tasklist.filter.OneOfFilterCondition, org.netbeans.modules.tasklist.filter.TaskGroupCondition,
FilterCondition | abstract class FilterCondition (Code) | | A condition (type and relation pair) in the filter.
Don't forget to override sameType if you extend this class!
author: Tor Norbye |
Field Summary | |
final public static String | PROP_VALUE_VALID Use this client property on value/contant components to indicate valid user data. |
PROP_VALUE_VALID | final public static String PROP_VALUE_VALID(Code) | | Use this client property on value/contant components to indicate valid user data.
|
FilterCondition | public FilterCondition()(Code) | | Creates a condition with the given name.
Parameters: name - user visible name of the filter condition |
FilterCondition | protected FilterCondition(FilterCondition rhs)(Code) | | Copy constructor. Use from subclassed clone.
|
clone | abstract public Object clone()(Code) | | Deep clone, please implement in subclass.
|
createConstantComponent | public JComponent createConstantComponent()(Code) | | Creates a component that will represent a constant within the
filter dialog. It should support
FilterCondition.PROP_VALUE_VALID client property.
created component or null if no component |
getConstantFrom | public void getConstantFrom(JComponent cmp)(Code) | | Gets constant from the specified component and save it.
This method should be also implemented if createConstantComponent()
is implemented.
Parameters: cmp - with createConstantComponent() create component |
getDisplayName | abstract protected String getDisplayName()(Code) | | |
isTrue | abstract public boolean isTrue(Object obj)(Code) | | Compares two objects.
Parameters: obj - value of the property |
sameType | public boolean sameType(FilterCondition fc)(Code) | | Checks whether fc is of the same type.
This method will be used to replace a condition created with
Filter.getConditionsFor(Node.Property) with one contained in a filter.
This method should return true also if this and fc have different
constants for comparing with property values.
Parameters: fc - another condition true fc is of the same type as this |
|
|