Class AutoConfigurer
java.lang.Object
VASSAL.configure.Configurer
VASSAL.configure.AutoConfigurer
- All Implemented Interfaces:
PropertyChangeListener,EventListener
- Direct Known Subclasses:
BrowserHelpFile.MyConfigurer
A Configurer for configuring Configurable components
(Is that as redundant as it sounds?)
Automatically builds a property editor with controls for setting all
of the attributes of the target Configurable component
-
Nested Class Summary
Nested classes/interfaces inherited from class VASSAL.configure.Configurer
Configurer.ContextLevel -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Map<String, VisibilityCondition> protected List<Configurer> protected Map<String, JComponent> protected JPanelprotected AutoConfigurableFields inherited from class VASSAL.configure.Configurer
changeSupport, context, contextLevel, frozen, hint, key, LIST_ENTRY_HIGHLIGHT_COLOR, name, NAME_PROPERTY, noUpdate, value -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidstatic ConfigurercreateConfigurer(Class<?> type, String key, String prompt, AutoConfigurable target) getConfigurer(String attribute) GUI interface for setting the option in an editing windowvoidvoidreset()voidSet the Object value from a StringvoidsetVisibility(String attribute, VisibilityCondition c) Methods inherited from class VASSAL.configure.Configurer
addFocusListener, addPropertyChangeListener, fireUpdate, getContext, getContextLevel, getHint, getKey, getName, getScreenSize, getValue, initCustomControls, isFrozen, isHighlighted, isPieceContext, removeFocusListener, removePropertyChangeListener, repack, repack, requestFocus, setContext, setContext, setContext, setContextLevel, setEnabled, setFrozen, setHighlighted, setHint, setHintKey, setLabelVisibile, setLabelVisible, setName, setValue
-
Field Details
-
p
-
target
-
configurers
-
conditions
-
labels
-
-
Constructor Details
-
AutoConfigurer
-
-
Method Details
-
createConfigurer
public static Configurer createConfigurer(Class<?> type, String key, String prompt, AutoConfigurable target) -
reset
public void reset() -
getValueString
- Specified by:
getValueStringin classConfigurer- Returns:
- a String representation of the Object value
-
setValue
Description copied from class:ConfigurerSet the Object value from a String- Specified by:
setValuein classConfigurer
-
getControls
Description copied from class:ConfigurerGUI interface for setting the option in an editing window- Specified by:
getControlsin classConfigurer
-
propertyChange
- Specified by:
propertyChangein interfacePropertyChangeListener
-
setVisibility
-
checkVisibility
protected void checkVisibility() -
getConfigurer
-
getLabel
-