Package VASSAL.build.module.map
Class ForwardToKeyBuffer
java.lang.Object
VASSAL.build.module.map.ForwardToKeyBuffer
- All Implemented Interfaces:
KeyListener
,EventListener
,Buildable
public class ForwardToKeyBuffer extends Object implements Buildable, KeyListener
-
Constructor Summary
Constructors Constructor Description ForwardToKeyBuffer()
-
Method Summary
Modifier and Type Method Description void
add(Buildable b)
Adds a child component.void
addTo(Buildable parent)
Adds this component to its parent.void
build(Element e)
Build the objectElement
getBuildElement(Document doc)
void
keyPressed(KeyEvent e)
void
keyReleased(KeyEvent e)
void
keyTyped(KeyEvent e)
protected void
process(KeyEvent e)
-
Constructor Details
-
ForwardToKeyBuffer
public ForwardToKeyBuffer()
-
-
Method Details
-
build
Description copied from interface:Buildable
Build the object -
addTo
Description copied from interface:Buildable
Adds this component to its parent. In order to make Buildable objects extensible, the child is reponsible for adding itself to the parent. That way, Buildable subcomponents can be defined in an extension package without needing to modify the containing class. -
add
Description copied from interface:Buildable
Adds a child component. Both this method andBuildable.addTo(VASSAL.build.Buildable)
are invoked when adding a child to a parent -
getBuildElement
- Specified by:
getBuildElement
in interfaceBuildable
- Returns:
- an XML element from which this component can be built
-
keyPressed
- Specified by:
keyPressed
in interfaceKeyListener
-
keyReleased
- Specified by:
keyReleased
in interfaceKeyListener
-
keyTyped
- Specified by:
keyTyped
in interfaceKeyListener
-
process
-