Package VASSAL.build
Interface Configurable
- All Superinterfaces:
Buildable,Translatable
- All Known Subinterfaces:
AutoConfigurable
- All Known Implementing Classes:
AboutScreen,AbstractConfigurable,AbstractScript,ActionScript,BasicModule,BasicPreference,Board,BoardPicker,BooleanPreference,BoxWidget,BrowserHelpFile,BrowserHelpFile.ConfigSupport,BshPlugin,CardSlot,ChangePropertyButton,Chart,ChartWindow,ColorManager,ColorSwatch,CounterDetailViewer,CounterTurnLevel,DeckGlobalKeyCommand,DiceButton,DieManager,DoActionButton,Documentation,DoublePreference,DrawPile,EnumPreference,FontManager,FontStyle,GameModule,GamePieceImage,GamePieceImageDefinitions,GamePieceLayout,GamePieceLayoutsContainer,GeneralScript,GlobalKeyCommand,GlobalMap,GlobalMap.CounterViewer,GlobalOptions,GlobalProperties,GlobalProperty,HandMetrics,HelpFile,HexGrid,HexGridNumbering,HidePiecesButton,HighlightLastMoved,HtmlChart,IconFamily,ImageItem,ImageItemInstance,ImageSaver,IntegerPreference,InternetDiceButton,Inventory,Item,ItemInstance,Language,LayerControl,LayeredPieceCollection,ListTurnLevel,ListWidget,Localization,LOS_Thread,Map,MapShader,MapWidget,MassKeyCommand,MultiActionButton,NotesWindow,PanelWidget,PieceRecenterer,PieceSlot,PieceWindow,PlayerHand,PlayerRoster,Plugin,PredefinedSetup,PrivateMap,PrototypeDefinition,PrototypesContainer,RandomTextButton,Region,RegionGrid,RegularGridNumbering,ScriptContainer,SelectionHighlighter,SelectionHighlighters,SetupStack,ShapeItem,ShapeItemInstance,SpecialDiceButton,SpecialDie,SpecialDieFace,SquareGrid,SquareGridNumbering,StackMetrics,StartupGlobalKeyCommand,StringPreference,SymbolItem,SymbolItemInstance,TabWidget,TextBoxItem,TextBoxItemInstance,TextItem,TextItemInstance,TextPreference,TextSaver,ToolbarMenu,TranslatableMarker,Translation,TurnComponent,TurnGlobalHotkey,TurnLevel,TurnTracker,Tutorial,VassalTranslation,Widget,WidgetMap,Zone,ZonedGrid,ZonedGridHighlighter,ZoneHighlight,ZoneProperty,Zoomer
public interface Configurable extends Translatable
An object that implements the Configurable interface, in
addition to being built from a configuration XML file (because
this class ultimately extends
Buildable, can be
manipulated by the user directly in the VASSAL module editor via
the Configuration window. It also extends the Translatable
interface which provides methods for the getting and setting of
XML attributes and adds i18n translation infrastructure.-
Field Summary
Fields Modifier and Type Field Description static StringNAME_PROPERTY -
Method Summary
Modifier and Type Method Description voidaddPropertyChangeListener(PropertyChangeListener l)Add a PropertyChangeListener.Class[]getAllowableConfigureComponents()Return a list of valid sub-component Classes.Configurable[]getConfigureComponents()StringgetConfigureName()The name of this Configurable ObjectConfigurergetConfigurer()Return aConfigurerobject which can be used to set the attributes of this objectHelpFilegetHelpFile()voidremove(Buildable child)Remove a child componentvoidremoveFrom(Buildable parent)Remove this component from its parentMethods inherited from interface VASSAL.build.Buildable
add, addTo, build, getBuildElementMethods inherited from interface VASSAL.i18n.Translatable
getAttributeValueString, getI18nData, setAttribute
-
Field Details
-
NAME_PROPERTY
- See Also:
- Constant Field Values
-
-
Method Details
-
removeFrom
Remove this component from its parent -
remove
Remove a child component -
getConfigureName
String getConfigureName()The name of this Configurable Object -
getHelpFile
HelpFile getHelpFile()- Returns:
- a HelpFilte describing how to use and configure this component
-
getConfigureComponents
Configurable[] getConfigureComponents()- Returns:
- an array of Configurer objects representing the Configurable children of this Configurable object
-
getConfigurer
Configurer getConfigurer()Return aConfigurerobject which can be used to set the attributes of this object -
getAllowableConfigureComponents
Class[] getAllowableConfigureComponents()Return a list of valid sub-component Classes. If a Class appears in this list, then instances of that class may be added to this component from the Configuration Window. -
addPropertyChangeListener
Add a PropertyChangeListener. A PropertyChangeEvent should be fired with property nameNAME_PROPERTYwhen the value returned fromgetConfigureName()has changed
-