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
Modifier and TypeFieldDescriptionprotected Map
<String, VisibilityCondition> protected List
<Configurer> protected Map
<String, JComponent> protected JPanel
protected AutoConfigurable
Fields inherited from class VASSAL.configure.Configurer
changeSupport, context, contextLevel, frozen, hint, key, LIST_ENTRY_HIGHLIGHT_COLOR, name, NAME_PROPERTY, noUpdate, value
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
static Configurer
createConfigurer
(Class<?> type, String key, String prompt, AutoConfigurable target) getConfigurer
(String attribute) GUI interface for setting the option in an editing windowvoid
void
reset()
void
Set the Object value from a Stringvoid
setVisibility
(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:
getValueString
in classConfigurer
- Returns:
- a String representation of the Object value
-
setValue
Description copied from class:Configurer
Set the Object value from a String- Specified by:
setValue
in classConfigurer
-
getControls
Description copied from class:Configurer
GUI interface for setting the option in an editing window- Specified by:
getControls
in classConfigurer
-
propertyChange
- Specified by:
propertyChange
in interfacePropertyChangeListener
-
setVisibility
-
checkVisibility
protected void checkVisibility() -
getConfigurer
-
getLabel
-