GP.Reactors
Class PushButtonKeyInteractor

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

public class PushButtonKeyInteractor
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
PushButtonKeyInteractor(GP.Components.Buttons.Push b, Graphic g, java.lang.String key)
           
 
Method Summary
 void KeyPress()
          This method does nothing, it's here so that its abstract version from the superclass is overridden.
 void KeyRelease()
          Calls activate on the button this interactor references.
 
Methods inherited from class GP.Reactors.KeyInteractor
TurnOff, TurnOn
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PushButtonKeyInteractor

public PushButtonKeyInteractor(GP.Components.Buttons.Push b,
                               Graphic g,
                               java.lang.String key)
Method Detail

KeyPress

public void KeyPress()
This method does nothing, it's here so that its abstract version from the superclass is overridden.
Overrides:
KeyPress in class KeyInteractor

KeyRelease

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