|
||||||||||
| 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.IdleFilter
public class IdleFilter
Task filter allowing to filter idle tasks.
| Field Summary | |
|---|---|
static int |
RULE_EQUALS
Rule requiring given content to be equal to task property. |
static int |
RULE_EQUALS_NOT
Rule requiring given content NOT to be greater than task property. |
| Constructor Summary | |
|---|---|
IdleFilter()
Creates new default private filter which is preset to RULE_EQUALS content rule and Boolean.TRUE. |
|
IdleFilter(int contentRule,
java.lang.Boolean idleProperty)
Creates new idle filter. |
|
| Method Summary | |
|---|---|
java.util.Vector |
filterTasks(java.util.Vector tasks)
Applies idle filter on given tasks and returns those tasks that satisfied filter criterion. |
java.lang.String |
getContent()
Returns required idle property of task. |
java.util.Vector |
getContentRules()
Returns both two available content rules of idle filter. |
java.util.Vector |
getContentValues()
Returns all available content values of idle filter. |
java.lang.String |
toString()
Returns name of filter as text. |
| Methods inherited from class org.cesilko.rachota.core.filters.AbstractTaskFilter |
|---|
getContentRule, 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_EQUALS
public static final int RULE_EQUALS_NOT
| Constructor Detail |
|---|
public IdleFilter(int contentRule,
java.lang.Boolean idleProperty)
contentRule - One of two content rules determining private property of task.idleProperty - Required value of task private property.public IdleFilter()
| Method Detail |
|---|
public java.util.Vector getContentRules()
getContentRules in class AbstractTaskFilterpublic java.util.Vector getContentValues()
getContentValues in class AbstractTaskFilterpublic java.lang.String getContent()
getContent 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 | |||||||||