001package headfirst.command.simpleremote;
002
003//
004// This is the invoker
005//
006public class SimpleRemoteControl {
007        Command slot;
008
009        public SimpleRemoteControl() {}
010
011        public void setCommand(Command command) {
012                slot = command;
013        }
014
015        public void buttonWasPressed() {
016                slot.execute();
017        }
018}