Package VASSAL.build.module
Class ExtensionElement
java.lang.Object
VASSAL.build.module.ExtensionElement
- All Implemented Interfaces:
Buildable,ImageSearchTarget
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a child component.voidAdds all images used by this component AND any children to the collectionvoidImplementing classes should add the names of any image files they use to the collection.voidAdds this component to its parent.voidBuild the object from the XML representation of the BuildablegetBuildElement(Document doc) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface VASSAL.build.Buildable
isMandatory, isMovable, isUnique
-
Field Details
-
TARGET
-
-
Constructor Details
-
ExtensionElement
public ExtensionElement() -
ExtensionElement
-
-
Method Details
-
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 -
build
-
getExtension
-
getTargetPath
-
getBuildElement
- Specified by:
getBuildElementin interfaceBuildable- Parameters:
doc- XML file- Returns:
- an XML element from which this component can be built
-
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. -
getAllImageNames
- Specified by:
getAllImageNamesin interfaceImageSearchTarget- Returns:
- names of all images used by the component and any children
-
addImageNamesRecursively
Description copied from interface:ImageSearchTargetAdds all images used by this component AND any children to the collection- Specified by:
addImageNamesRecursivelyin interfaceImageSearchTarget- Parameters:
s- Collection to add image names to
-
getLocalImageNames
- Specified by:
getLocalImageNamesin interfaceImageSearchTarget- Returns:
- names of all images used by this item
-
addLocalImageNames
Description copied from interface:ImageSearchTargetImplementing classes should add the names of any image files they use to the collection.- Specified by:
addLocalImageNamesin interfaceImageSearchTarget- Parameters:
s- Collection to add image names to
-