public abstract class ToDoManager
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
HIGH_PRIORITY
Constant for high priority that can be assigned to the
ToDoItem |
static int |
LOW_PRIORITY
Constant for low priority that can be assigned to the
ToDoItem |
static int |
MEDIUM_PRIORITY
Constant for medium priority that can be assigned to the
ToDoItem |
static int |
NO_PRIORITY
A default priority that is used when no other priority has been
assigned to the
ToDoItem |
static java.lang.String |
TODO_MANAGER_NAME |
Constructor and Description |
---|
ToDoManager() |
Modifier and Type | Method and Description |
---|---|
abstract void |
add(java.util.List<ToDoItem> items)
Adds an List of
ToDoItem s to the list of items |
abstract void |
add(ToDoItem[] items)
Adds an array of
ToDoItem s to the list of items |
abstract ToDoItem |
createToDoItem(java.lang.String description,
int priorityId,
java.util.Date date)
Creates a
ToDoItem . |
static ToDoManager |
getToDoManager()
Returns the ToDoManager instance that is active in the IDE
|
abstract void |
remove(java.util.List<ToDoItem> items)
Removes an List of
ToDoItem s from the list of items |
abstract void |
remove(ToDoItem[] items)
Removes an array of
ToDoItem s from the list of items |
static void |
setToDoManager(ToDoManager toDoManager)
Deprecated.
|
abstract void |
setWindowVisible(boolean show)
Shows/Hides the task window.
|
public static final java.lang.String TODO_MANAGER_NAME
public static final int NO_PRIORITY
ToDoItem
public static final int HIGH_PRIORITY
ToDoItem
public static final int MEDIUM_PRIORITY
ToDoItem
public static final int LOW_PRIORITY
ToDoItem
public static ToDoManager getToDoManager()
@Deprecated public static void setToDoManager(ToDoManager toDoManager)
public abstract void remove(ToDoItem[] items)
ToDoItem
s from the list of itemspublic abstract void add(java.util.List<ToDoItem> items)
ToDoItem
s to the list of itemspublic abstract void remove(java.util.List<ToDoItem> items)
ToDoItem
s from the list of itemspublic abstract ToDoItem createToDoItem(java.lang.String description, int priorityId, java.util.Date date)
ToDoItem
. The client can then call additional
methods on the ToDoItem
to set data on the item. The client is
responsible for adding the item to the IDE's list of items using the
add()
method.description
- to use for the taskpriorityId
- id to use for the task; typically one of the constants
defined in ToDoManager
date
- the task is to be completedToDoItem
public abstract void setWindowVisible(boolean show)