|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.cesilko.rachota.core.filters.AbstractTaskFilter
org.cesilko.rachota.core.filters.KeywordFilter
public class KeywordFilter
Task filter allowing to filter tasks by keyword.
| Field Summary | |
|---|---|
static int |
RULE_CONTAINS
Rule requiring given content to be part of task property. |
static int |
RULE_CONTAINS_NOT
Rule requiring given content not to be part of task property. |
| Constructor Summary | |
|---|---|
KeywordFilter()
Creates new default keyword filter which is preset to RULE_CONTAINS content rule and no text. |
|
KeywordFilter(int contentRule,
java.lang.String subString)
Creates new keyword filter. |
|
| Method Summary | |
|---|---|
java.util.Vector |
filterTasks(java.util.Vector tasks)
Applies keyword filter on given tasks and returns those tasks that satisfied filter criterion. |
java.util.Vector |
getContentRules()
Returns both available content rules of keyword filter. |
java.lang.String |
toString()
Returns name of filter as text. |
| Methods inherited from class org.cesilko.rachota.core.filters.AbstractTaskFilter |
|---|
getContent, getContentRule, getContentValues, setContent, setContentRule |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int RULE_CONTAINS
public static final int RULE_CONTAINS_NOT
| Constructor Detail |
|---|
public KeywordFilter(int contentRule,
java.lang.String subString)
contentRule - One of two content rules determining allowed content in task keyword.subString - Text that must/mustn't be present in task keyword.public KeywordFilter()
| Method Detail |
|---|
public java.util.Vector getContentRules()
getContentRules in class AbstractTaskFilterpublic java.util.Vector filterTasks(java.util.Vector tasks)
filterTasks in class AbstractTaskFiltertasks - Vector of tasks to be filtered.
public java.lang.String toString()
toString in class AbstractTaskFilter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||