|
juife v0.1a |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.juife.TaskList
public class TaskList
This class represents a list of tasks held for further processing.
Field Summary | |
---|---|
protected javax.swing.event.EventListenerList |
listenerList
A list of event listeners for this TaskList . |
Constructor Summary | |
---|---|
TaskList()
Creates a new instance of TaskList . |
|
TaskList(java.lang.String name)
Creates a new instance of TaskList with the specified name. |
|
TaskList(java.lang.String name,
Task... tasks)
Creates a new instance of TaskList with
the specified name and adds the specified tasks to the list. |
|
TaskList(Task... tasks)
Creates a new instance of TaskList and adds the specified tasks. |
Method Summary | |
---|---|
void |
add(Task task)
Adds the specified task to this task list. |
void |
addActionListener(java.awt.event.ActionListener l)
Registers the specified ActionListener to be
notified when all tasks in the list are done. |
boolean |
isProcessed()
Determines whether all of the tasks in the list are done. |
boolean |
isStarted()
Determines whether the processing of the tasks in the list has been started. |
void |
process()
Starts the processing of the tasks in this list. |
void |
removeActionListener(java.awt.event.ActionListener l)
Removes the specified listener. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final javax.swing.event.EventListenerList listenerList
TaskList
.
Constructor Detail |
---|
public TaskList()
TaskList
.
public TaskList(java.lang.String name)
TaskList
with the specified name.
name
- The name of the task list.public TaskList(Task... tasks)
TaskList
and adds the specified tasks.
tasks
- The tasks to be added to the newly created task list.public TaskList(java.lang.String name, Task... tasks)
TaskList
with
the specified name and adds the specified tasks to the list.
name
- The name of the task list.tasks
- The tasks to be added to the newly created task list.Method Detail |
---|
public void add(Task task)
task
- The task to be added.
java.lang.IllegalStateException
- If the processing
of the tasks in the list is already started.public void process()
public boolean isStarted()
true
if the processing of the tasks in
the list has been started, false
otherwise.public boolean isProcessed()
true
if all tasks in the list are done,
false
otherwise.public void addActionListener(java.awt.event.ActionListener l)
ActionListener
to be
notified when all tasks in the list are done.
l
- The ActionListener
to register.public void removeActionListener(java.awt.event.ActionListener l)
l
- The ActionListener
to remove.
|
juife v0.1a |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2005 Grigor Iliev. All rights reserved. |