Package VASSAL.build.module.map
Class ForwardToKeyBuffer
java.lang.Object
VASSAL.build.module.map.ForwardToKeyBuffer
- All Implemented Interfaces:
KeyListener
,EventListener
,Buildable
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- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds a child component.void
Adds this component to its parent.void
Build the object from the XML representation of the BuildablegetBuildElement
(Document doc) boolean
Is this component a reqired component within its parent?boolean
isUnique()
Does this component need to be unique within it's parent?void
void
void
protected void
-
Constructor Details
-
ForwardToKeyBuffer
public ForwardToKeyBuffer()
-
-
Method Details
-
build
-
addTo
Description copied from interface:Buildable
Adds this component to its parent. In order to make Buildable objects extensible, the child is responsible 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
- Parameters:
doc
- XML file- 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
-
isMandatory
public boolean isMandatory()Description copied from interface:Buildable
Is this component a reqired component within its parent?- Specified by:
isMandatory
in interfaceBuildable
- Returns:
- true if component is mandatory
-
isUnique
-