Class ForwardToChatter
java.lang.Object
VASSAL.build.module.map.ForwardToChatter
- All Implemented Interfaces:
KeyListener,EventListener,Buildable
This KeyListener forwards key event from a
Map to the
Chatter The event is forwarded only if
not consumed- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a child component.voidAdds this component to its parent.voidBuild the object from the XML representation of the BuildablegetBuildElement(Document doc) booleanIs this component a reqired component within its parent?booleanisUnique()Does this component need to be unique within it's parent?voidvoidvoid
-
Constructor Details
-
ForwardToChatter
public ForwardToChatter()
-
-
Method Details
-
build
-
addTo
Description copied from interface:BuildableAdds 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:BuildableAdds a child component. Both this method andBuildable.addTo(VASSAL.build.Buildable)are invoked when adding a child to a parent -
getBuildElement
- Specified by:
getBuildElementin interfaceBuildable- Parameters:
doc- XML file- Returns:
- an XML element from which this component can be built
-
keyPressed
- Specified by:
keyPressedin interfaceKeyListener
-
keyReleased
- Specified by:
keyReleasedin interfaceKeyListener
-
keyTyped
- Specified by:
keyTypedin interfaceKeyListener
-
isMandatory
public boolean isMandatory()Description copied from interface:BuildableIs this component a reqired component within its parent?- Specified by:
isMandatoryin interfaceBuildable- Returns:
- true if component is mandatory
-
isUnique
-