com.hardcode.gdbms.engine.data.command
Class CommandStack
java.lang.Object
com.hardcode.gdbms.engine.data.command.CommandStack
public class CommandStack
- extends java.lang.Object
This class stores commands executed against the current edition theme. It
stores a limited number of commands throwing away the first command that
were stored in the stack when this limit is reached
- Author:
- Fernando González Cortés
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CommandStack
public CommandStack()
put
public void put(Command c)
throws DriverException
- Throws:
DriverException
redo
public Command redo()
throws DriverException
- Throws:
DriverException
undo
public Command undo()
throws DriverException
- Throws:
DriverException
canUndo
public boolean canUndo()
canRedo
public boolean canRedo()
getLimit
public int getLimit()
setLimit
public void setLimit(int limit)
isUseLimit
public boolean isUseLimit()
setUseLimit
public void setUseLimit(boolean limited)
clear
public void clear()
Copyright © 2005-2006 . All Rights Reserved.