public class BasicProjectAndTaskFilter extends Object implements ProjectAndTaskFilter, SettingsSerializable
| Constructor and Description |
|---|
BasicProjectAndTaskFilter() |
BasicProjectAndTaskFilter(List<String> filteredOutProjectNames,
List<String> filteredOutTaskNames,
boolean filterOutTasksWithNoDescription) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
doesAllowProject(ProjectView project)
Determines if the specified project should be allowed or not.
|
boolean |
doesAllowTask(TaskView task)
Determines if the specified task should be allowed or not.
|
static boolean |
doesAllowTask(TaskView task,
List<String> filteredOutTasks,
boolean filterOutTasksWithNoDescription)
Determines if the specified task should be allowed or not.
|
boolean |
filterOutTasksWithNoDescription() |
List<String> |
getFilteredOutProjectNames() |
List<String> |
getFilteredOutTaskNames() |
void |
serializeIn(SettingsNode settings)
Call this to read in this object's settings.
|
void |
serializeOut(SettingsNode settings)
Call this to saves the current settings.
|
public BasicProjectAndTaskFilter(List<String> filteredOutProjectNames, List<String> filteredOutTaskNames, boolean filterOutTasksWithNoDescription)
public BasicProjectAndTaskFilter()
public boolean filterOutTasksWithNoDescription()
public boolean doesAllowProject(ProjectView project)
doesAllowProject in interface ProjectAndTaskFilterproject - the project in questionpublic boolean doesAllowTask(TaskView task)
doesAllowTask in interface ProjectAndTaskFiltertask - the task in questionpublic static boolean doesAllowTask(TaskView task, List<String> filteredOutTasks, boolean filterOutTasksWithNoDescription)
task - the task in questionfilteredOutTasks - a list of filtered out task namesfilterOutTasksWithNoDescription - whether or not to hide it if it as no descriptionpublic void serializeOut(SettingsNode settings)
serializeOut in interface SettingsSerializablesettings - where you save the settings.public void serializeIn(SettingsNode settings)
serializeIn in interface SettingsSerializablesettings - where you read your settings.Copyright © 2013. All rights reserved