|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ModificationActionQueue
This interface defines a queue of modification actions. Methods exist to pop the actions, add an action, clear the actions, and get the number of actions.
After a modification action is created, it may be placed within this queue. At some determined point (i.e., a user presses an "apply" button), the actions in this queue may be popped out of the queue and executed as an atomic transaction.
Method Summary | |
---|---|
boolean |
addAction(ActionDefinition newAction)
Add to the end of this queue a modification action. |
int |
addActions(java.util.List newActions)
Moved to the end of this queue the list of modification actions. |
int |
addActions(ModificationActionQueue queue)
Moved to the end of this queue the modification actions in the specified queue. |
void |
clear()
Remove all of the actions that are currently in this queue. |
int |
getActionCount()
Return the number of actions that are currently in this queue. |
java.util.List |
getActions()
Return a copy of the list of actions in this queue, possibly empty but never null |
ActionDefinition |
getLast()
Return a clone of the last modification action object that was added to this queue. |
boolean |
hasActions()
Return whether this queue has at least one modification action. |
java.util.List |
popActions()
Remove all of the modification objects that are in the queue and return them. |
java.util.List |
popActions(int count)
Remove the specified number of modification objects that are in the queue and return them. |
ActionDefinition |
removeLast()
Remove and return the last modification action object that was added to this queue. |
Method Detail |
---|
java.util.List popActions()
java.util.List popActions(int count)
count
- the number of modification action objects to remove from the queue; if greater than
the number of actions in this queue, all of the actions are popped.
ActionDefinition getLast()
ActionDefinition removeLast()
boolean addAction(ActionDefinition newAction)
newAction
- the new modification action that is to be added to this queue.
java.lang.IllegalArgumentException
- if the new action is null.int addActions(java.util.List newActions)
ordered
- list of actions to be added to this queue.
java.lang.IllegalArgumentException
- if the new action is null.int addActions(ModificationActionQueue queue)
queue
- the queue from with all actions are to be removed and added
to this queue.
java.lang.IllegalArgumentException
- if the new action is null.java.util.List getActions()
int getActionCount()
boolean hasActions()
void clear()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |