GP.Reactors
Class KeyShortcut

java.lang.Object
  |
  +--GP.Reactors.KeyInteractor
        |
        +--GP.Reactors.KeyShortcut
All Implemented Interfaces:
Reactor

public class KeyShortcut
extends KeyInteractor

This is a key interactor that takes a Push Button and calls Activate() on it when the key it's constructed with is pressed.


Constructor Summary
KeyShortcut(GP.Components.Button target, java.lang.String key)
           
 
Method Summary
 void KeyRelease()
          Calls activate on the button this interactor references.
 
Methods inherited from class GP.Reactors.KeyInteractor
KeyPress, TurnOff, TurnOn
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KeyShortcut

public KeyShortcut(GP.Components.Button target,
                   java.lang.String key)
Method Detail

KeyRelease

public void KeyRelease()
Calls activate on the button this interactor references.
Overrides:
KeyRelease in class KeyInteractor