public class RemoteControlWithUndo extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
(package private) Command[] |
offCommands |
(package private) Command[] |
onCommands |
(package private) Command |
undoCommand |
Constructor and Description |
---|
RemoteControlWithUndo() |
Modifier and Type | Method and Description |
---|---|
void |
offButtonWasPushed(int slot) |
void |
onButtonWasPushed(int slot) |
void |
setCommand(int slot,
Command onCommand,
Command offCommand) |
java.lang.String |
toString() |
void |
undoButtonWasPushed() |
Command[] onCommands
Command[] offCommands
Command undoCommand
public RemoteControlWithUndo()
public void setCommand(int slot, Command onCommand, Command offCommand)
public void onButtonWasPushed(int slot)
public void offButtonWasPushed(int slot)
public void undoButtonWasPushed()
public java.lang.String toString()
toString
in class java.lang.Object