com.hardcode.gdbms.engine.data.command
Class CommandStack

java.lang.Object
  extended by 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

Constructor Summary
CommandStack()
           
 
Method Summary
 boolean canRedo()
           
 boolean canUndo()
           
 void clear()
           
 int getLimit()
           
 boolean isUseLimit()
           
 void put(Command c)
           
 Command redo()
           
 void setLimit(int limit)
           
 void setUseLimit(boolean limited)
           
 Command undo()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommandStack

public CommandStack()
Method Detail

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.