|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object eShopper.eShopperAction
This is a class that can represent any undoable action in eShopper. When actions are performed with eShopper, an instance of this class is created and added to the undo buffer.
Constructor Summary | |
eShopperAction()
|
Method Summary | |
int |
getAction()
This returns the type of action. |
java.lang.String |
getDate()
This returns the date associated with the Action's node (if applicable). |
int |
getNodeID()
This returns the ID of the node the action was performed on (if applicable). |
void |
setAction(int action,
eShopperList list,
eShopperNode changedNode)
This allows the type of action to be set. |
void |
setNode(eShopperNode node)
This sets the node the action was performed on (if applicable). |
void |
undoAction(eShopperList list)
This reverses the affects of the action. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public eShopperAction()
Method Detail |
public void setAction(int action, eShopperList list, eShopperNode changedNode)
action
- The type of action.list
- The list upon which the action was performed.public int getAction()
public void undoAction(eShopperList list)
public void setNode(eShopperNode node)
node
- The eShopper node upon which the action was performed.public int getNodeID()
public java.lang.String getDate()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |