Package VASSAL.script
Class GeneralScript
java.lang.Object
VASSAL.search.AbstractImageFinder
VASSAL.build.AbstractBuildable
VASSAL.build.AbstractConfigurable
VASSAL.script.AbstractScript
VASSAL.script.GeneralScript
- All Implemented Interfaces:
AutoConfigurable,Buildable,Configurable,PropertyNameSource,ValidityChecker,Translatable,ImageSearchTarget,SearchTarget,UniqueIdManager.Identifyable
public class GeneralScript
extends AbstractScript
implements UniqueIdManager.Identifyable, ValidityChecker
-
Nested Class Summary
Nested classes/interfaces inherited from interface VASSAL.build.AutoConfigurable
AutoConfigurable.Util -
Field Summary
Fields inherited from class VASSAL.script.AbstractScript
DESC, NAME, SCRIPTFields inherited from class VASSAL.build.AbstractConfigurable
changeSupport, config, localizedName, myI18nData, nameFields inherited from class VASSAL.build.AbstractBuildable
buildComponents, validatorFields inherited from interface VASSAL.build.Configurable
NAME_PROPERTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds this component to its parent.protected Stringcompile()evaluate(PropertySource target)static StringgetId()voidremoveFrom(Buildable parent)Remove this component from its parentvoidvoidvalidate(Buildable target, ValidationReport report)Methods inherited from class VASSAL.script.AbstractScript
getAllowableConfigureComponents, getAttributeDescriptions, getAttributeNames, getAttributeTypes, getAttributeValueString, getDescription, getI18nData, getScript, setAttribute, setDescription, setScriptMethods inherited from class VASSAL.build.AbstractConfigurable
add, addPropertyChangeListener, getAttributeVisibility, getConfigureComponents, getConfigureName, getExpressionList, getFormattedStringList, getI18nPrefix, getLocalizedConfigureName, getMenuTextList, getNamedKeyStrokeList, getPropertyList, remove, removePropertyChangeListener, setAllAttributesUntranslatable, setAttributeTranslatable, setConfigureNameMethods inherited from class VASSAL.build.AbstractBuildable
addImageNamesRecursively, build, getAllDescendantComponents, getAllDescendantComponentsOf, getBuildables, getBuildComponents, getBuildElement, getComponents, getComponentsOf, getPropertyNamesMethods inherited from class VASSAL.search.AbstractImageFinder
addLocalImageNames, getAllImageNames, getLocalImageNamesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface VASSAL.build.Buildable
build, getBuildElementMethods inherited from interface VASSAL.tools.UniqueIdManager.Identifyable
getConfigureName
-
Constructor Details
-
GeneralScript
public GeneralScript()
-
-
Method Details
-
getConfigureTypeName
-
evaluate
-
getId
- Specified by:
getIdin interfaceUniqueIdManager.Identifyable
-
setId
- Specified by:
setIdin interfaceUniqueIdManager.Identifyable
-
buildHeaderLine
-
getFullScript
-
compile
- Specified by:
compilein classAbstractScript
-
getConfigurer
Description copied from class:AbstractConfigurable- Specified by:
getConfigurerin interfaceConfigurable- Overrides:
getConfigurerin classAbstractConfigurable- Returns:
- Configurer for this component
-
getHelpFile
- Specified by:
getHelpFilein interfaceConfigurable- Returns:
- a HelpFile describing how to use and configure * this component
-
removeFrom
Description copied from interface:ConfigurableRemove this component from its parent- Specified by:
removeFromin interfaceConfigurable
-
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. -
validate
- Specified by:
validatein interfaceValidityChecker- Overrides:
validatein classAbstractBuildable
-