package Gof.command; public class RemoteController { Command[] onCommands; Command[] offCommands; //执行撤销的命令 Command undoCommand; //n:指定了一共有几个命令按钮 public RemoteController(int n) { onCommands=new Command[n]; offCommands=new Command[n]; for(int i=0;i