public class CommandManager
extends java.lang.Object
Constructor and Description |
---|
CommandManager()
_more_
|
CommandManager(int historySize)
_more_
|
Modifier and Type | Method and Description |
---|---|
void |
add(Command command)
_more_
|
void |
add(Command command,
boolean andCallDoCommand)
_more_
|
boolean |
canGoBack()
_more_
|
boolean |
canGoForward()
_more_
|
void |
checkGui()
_more_
|
boolean |
getApplyingCommand()
_more_
|
javax.swing.JButton |
getBackButton()
_more_
|
javax.swing.JPanel |
getContents()
_more_
|
javax.swing.JPanel |
getContents(boolean includeHistory) |
javax.swing.JButton |
getForwardButton()
_more_
|
void |
move(int delta)
_more_
|
void |
redo()
_more_
|
int |
size()
_more_
|
java.lang.String |
toString()
_more_
|
void |
undo()
_more_
|
public CommandManager()
public CommandManager(int historySize)
historySize
- _more_public javax.swing.JPanel getContents()
public javax.swing.JPanel getContents(boolean includeHistory)
public javax.swing.JButton getBackButton()
public javax.swing.JButton getForwardButton()
public void undo()
public void redo()
public void move(int delta)
delta
- public boolean getApplyingCommand()
public void checkGui()
public void add(Command command)
command
- public void add(Command command, boolean andCallDoCommand)
command
- andCallDoCommand
- _more_public int size()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean canGoForward()
public boolean canGoBack()