|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--VASSAL.build.module.map.ForwardToKeyBuffer
This KeyListener forwards key event from a Map to the
KeyBuffer, where it is given to selected GamePieces to
interpret. The event is forwarded only if not consumed
KeyBuffer,
GamePiece.keyEvent(javax.swing.KeyStroke),
InputEvent.isConsumed()| Constructor Summary | |
ForwardToKeyBuffer()
|
|
| Method Summary | |
void |
add(Buildable b)
Adds a child component. |
void |
addTo(Buildable parent)
Adds this component to its parent. |
void |
build(org.w3c.dom.Element e)
Build the object |
org.w3c.dom.Element |
getBuildElement(org.w3c.dom.Document doc)
|
void |
keyPressed(java.awt.event.KeyEvent e)
|
void |
keyReleased(java.awt.event.KeyEvent e)
|
void |
keyTyped(java.awt.event.KeyEvent e)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ForwardToKeyBuffer()
| Method Detail |
public void build(org.w3c.dom.Element e)
Buildable
build in interface Buildablee - the XML element containing the object datapublic void addTo(Buildable parent)
Buildable
addTo in interface Buildablepublic void add(Buildable b)
BuildableBuildable.addTo(VASSAL.build.Buildable) are
invoked when adding a child to a parent
add in interface Buildablepublic org.w3c.dom.Element getBuildElement(org.w3c.dom.Document doc)
getBuildElement in interface Buildablepublic void keyPressed(java.awt.event.KeyEvent e)
keyPressed in interface java.awt.event.KeyListenerpublic void keyReleased(java.awt.event.KeyEvent e)
keyReleased in interface java.awt.event.KeyListenerpublic void keyTyped(java.awt.event.KeyEvent e)
keyTyped in interface java.awt.event.KeyListener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||