Package VASSAL.launch
Class BasicModule
java.lang.Object
VASSAL.build.AbstractBuildable
VASSAL.build.AbstractConfigurable
VASSAL.build.GameModule
VASSAL.launch.BasicModule
- All Implemented Interfaces:
AutoConfigurable,Buildable,Configurable,GpIdSupport,MutablePropertiesContainer,PropertyNameSource,PropertySource,CommandEncoder,ValidityChecker,Translatable,ToolBarComponent
public class BasicModule extends GameModule
-
Nested Class Summary
Nested classes/interfaces inherited from interface VASSAL.build.AutoConfigurable
AutoConfigurable.UtilNested classes/interfaces inherited from interface VASSAL.build.module.properties.MutablePropertiesContainer
MutablePropertiesContainer.Impl -
Field Summary
Fields Modifier and Type Field Description protected GameRefreshergameRefresherprotected ChatServerControlsserverControlsFields inherited from class VASSAL.build.GameModule
archive, BUILDFILE, chat, commandEncoders, controlPanel, crc, DEFAULT_NAME, deferredChat, description, DESCRIPTION, fileChooser, fileDialog, frame, gameName, gpidSupport, idChangeSupport, keyStrokeListeners, keyStrokeSources, lastSavedConfiguration, localizedGameName, logger, loggingLock, loggingPaused, MODULE_NAME, MODULE_VERSION, moduleVersion, NEXT_PIECESLOT_ID, nextGpId, pausedCommands, PERSONAL_INFO, preferences, propsContainer, REAL_NAME, repaintOnPropertyChange, RNG, SECRET_NAME, server, tcache, theState, VASSAL_VERSION_CREATED, VASSAL_VERSION_RUNNING, vassalVersionCreated, wizardSupportFields 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 Constructor Description BasicModule(DataArchive archive) -
Method Summary
Modifier and Type Method Description protected voidaddComponent(Class<? extends Buildable> componentClass)protected voidbuild()Initialize the modulevoidbuild(Element e)Build this component by getting all XML attributes of the XML element and callingAbstractBuildable.setAttribute(java.lang.String, java.lang.Object)with the String value of the attributeprotected voidbuildDefaultComponents()Commanddecode(String command)Uses the registeredCommandEncoders to decode a String into aCommand.Stringencode(Command c)Uses the registeredCommandEncoders to encode aCommandinto a String objectprotected voidensureComponent(Class<? extends Buildable> componentClass)StringgetI18nPrefix()ChatServerControlsgetServerControls()protected voidinitFrame()protected voidinitGameState()protected voidinitIdentityPreferences()protected voidinitImagePreferences()protected voidinitLogger()protected voidinitServer()StringtoString()Methods inherited from class VASSAL.build.GameModule
addCommandEncoder, addIdChangeListener, addKeyStrokeListener, addKeyStrokeSource, addMutableProperty, addSideChangeListenerToPlayerRoster, addTo, appendToTitle, buildCrc, buildString, checkGpIds, clearPausedCommands, compareVersions, createPiece, createPiece, fireKeyStroke, fireKeyStroke, generateGpId, getAllowableConfigureComponents, getArchiveWriter, getAttributeDescriptions, getAttributeNames, getAttributeTypes, getAttributeValueString, getChatter, getConfigureTypeName, getControlPanel, getCrc, getDataArchive, getFileChooser, getFileDialog, getFrame, getGameModule, getGameName, getGameState, getGameVersion, getGlobalPrefs, getGpIdSupport, getHelpFile, getI18nData, getImageTileSource, getLocalizedGameName, getLocalizedProperty, getLogger, getMutablePropertiesContainerId, getMutableProperty, getNextGpId, getPlayerRoster, getPlayerWindow, getPrefs, getProperty, getRNG, getServer, getToolBar, getUserId, getWizardSupport, init, initFrameTitle, isLocalizationEnabled, pauseLogging, quit, refreshKeyStrokeListeners, removeCommandEncoder, removeFrom, removeIdChangeListener, removeMutableProperty, resumeLogging, save, save, saveAs, sendAndLog, setAttribute, setChatter, setGlobalPrefs, setGpIdSupport, setNextGpId, setPrefs, setUserId, shutDown, unload, updateLastSave, warnMethods inherited from class VASSAL.build.AbstractConfigurable
add, addPropertyChangeListener, getAttributeVisibility, getConfigureComponents, getConfigureName, getConfigurer, getLocalizedConfigureName, remove, removePropertyChangeListener, setAllAttributesUntranslatable, setAttributeTranslatable, setConfigureNameMethods inherited from class VASSAL.build.AbstractBuildable
getAllDescendantComponents, getAllDescendantComponentsOf, getBuildables, getBuildComponents, getBuildElement, getComponents, getComponentsOf, getPropertyNames, validateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface VASSAL.build.Buildable
getBuildElement
-
Field Details
-
serverControls
-
gameRefresher
-
-
Constructor Details
-
BasicModule
-
-
Method Details
-
build
Description copied from class:GameModuleInitialize the module- Specified by:
buildin classGameModule- Throws:
IOException
-
build
Description copied from class:AbstractBuildableBuild this component by getting all XML attributes of the XML element and callingAbstractBuildable.setAttribute(java.lang.String, java.lang.Object)with the String value of the attribute- Specified by:
buildin interfaceBuildable- Overrides:
buildin classAbstractBuildable- Parameters:
e- the XML element containing the object data
-
initIdentityPreferences
protected void initIdentityPreferences() -
initImagePreferences
protected void initImagePreferences() -
initServer
protected void initServer() -
initLogger
protected void initLogger() -
initGameState
protected void initGameState() -
decode
Description copied from class:GameModuleUses the registeredCommandEncoders to decode a String into aCommand.- Specified by:
decodein interfaceCommandEncoder- Overrides:
decodein classGameModule
-
encode
Description copied from class:GameModuleUses the registeredCommandEncoders to encode aCommandinto a String object- Specified by:
encodein interfaceCommandEncoder- Overrides:
encodein classGameModule
-
buildDefaultComponents
protected void buildDefaultComponents() -
initFrame
protected void initFrame() -
ensureComponent
-
addComponent
-
getServerControls
-
getI18nPrefix
- Overrides:
getI18nPrefixin classAbstractConfigurable- Returns:
- Generate a standard prefix for i18n keys for attributes of this component - Classname.attributeName
-
toString
-