public class ColaComandos
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
void |
agregarComando(Command command)
Agregar comando ejecutado.
|
void |
clear()
Vaciar ambas colas.
|
void |
deshacer()
Deshacer.
|
boolean |
esPosibleDeshacer()
Es posible deshacer.
|
boolean |
esPosibleRehacer()
Es posible rehacer.
|
static ColaComandos |
getInstance()
Gets the single instance of ColaComandos.
|
void |
rehacer()
Rehacer.
|
public static ColaComandos getInstance()
public void rehacer()
public void deshacer()
public void agregarComando(Command command)
command
- el command ejecutadopublic void clear()
public boolean esPosibleDeshacer()
public boolean esPosibleRehacer()