com.threerings.util
Class KeyboardManager.KeyObserverOp

java.lang.Object
  extended by com.threerings.util.KeyboardManager.KeyObserverOp
All Implemented Interfaces:
ObserverList.ObserverOp<KeyboardManager.KeyObserver>
Enclosing class:
KeyboardManager

protected static class KeyboardManager.KeyObserverOp
extends Object
implements ObserverList.ObserverOp<KeyboardManager.KeyObserver>

An observer operation to notify observers of a key event.


Field Summary
protected  int _id
          The key event id.
protected  int _keyCode
          The key code.
protected  long _timestamp
          The key event timestamp.
 
Constructor Summary
protected KeyboardManager.KeyObserverOp()
           
 
Method Summary
 boolean apply(KeyboardManager.KeyObserver observer)
           
 void init(int id, int keyCode, long timestamp)
          Initialized the operation with its parameters.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_id

protected int _id
The key event id.


_keyCode

protected int _keyCode
The key code.


_timestamp

protected long _timestamp
The key event timestamp.

Constructor Detail

KeyboardManager.KeyObserverOp

protected KeyboardManager.KeyObserverOp()
Method Detail

init

public void init(int id,
                 int keyCode,
                 long timestamp)
Initialized the operation with its parameters.


apply

public boolean apply(KeyboardManager.KeyObserver observer)
Specified by:
apply in interface ObserverList.ObserverOp<KeyboardManager.KeyObserver>