Package VASSAL.build
Interface AutoConfigurable
- All Superinterfaces:
Buildable,Configurable,Translatable
- All Known Implementing Classes:
AboutScreen,AbstractConfigurable,AbstractScript,ActionScript,BasicModule,BasicPreference,Board,BooleanPreference,BoxWidget,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 AutoConfigurable extends Configurable
A class that implements AutoConfigurable can use the
AutoConfigurer
class to automatically build a property editor.-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classAutoConfigurable.Util -
Field Summary
-
Method Summary
Modifier and Type Method Description String[]getAttributeDescriptions()Return an array of Strings describing the attributes of this object.String[]getAttributeNames()Class<?>[]getAttributeTypes()Return the Class for the attributes of this object.StringgetAttributeValueString(String key)Called by theBuildable.getBuildElement(org.w3c.dom.Document)method to write the attributes into an XML elementVisibilityConditiongetAttributeVisibility(String name)Because attributes are not always applicable in all cases, this method returns an interface to determine when the controls for specifying the named attribute should be visible.voidsetAttribute(String key, Object value)Called by theBuildable.build(org.w3c.dom.Element)method, wherevalueis the String value read by the XML attribute.Methods inherited from interface VASSAL.build.Configurable
addPropertyChangeListener, getAllowableConfigureComponents, getConfigureComponents, getConfigureName, getConfigurer, getHelpFile, remove, removeFrom
-
Method Details
-
getAttributeNames
String[] getAttributeNames()- Returns:
- an array of Strings giving all attributes of this Buildable component that will be written to/read from an XML element
-
setAttribute
Called by theBuildable.build(org.w3c.dom.Element)method, wherevalueis the String value read by the XML attribute. Can also be called with Object value to set the attribute.- Specified by:
setAttributein interfaceTranslatable
-
getAttributeValueString
Called by theBuildable.getBuildElement(org.w3c.dom.Document)method to write the attributes into an XML element- Specified by:
getAttributeValueStringin interfaceTranslatable
-
getAttributeDescriptions
String[] getAttributeDescriptions()Return an array of Strings describing the attributes of this object. These strings are used as prompts in the Properties window for this object. -
getAttributeTypes
Class<?>[] getAttributeTypes()Return the Class for the attributes of this object. Valid classes are: String, Integer, Double, Boolean, Image, File, Color, and KeyStroke -
getAttributeVisibility
Because attributes are not always applicable in all cases, this method returns an interface to determine when the controls for specifying the named attribute should be visible.- Parameters:
name-- Returns:
- null if the attribute controls should always be visible;
-