Class DynamicKeyCommandConfigurer
java.lang.Object
VASSAL.configure.Configurer
VASSAL.configure.DynamicKeyCommandConfigurer
-
Nested Class Summary
Nested classes/interfaces inherited from class VASSAL.configure.Configurer
Configurer.ContextLevel
-
Field Summary
Modifier and TypeFieldDescriptionprotected StringConfigurer
protected JPanel
protected final NamedHotKeyConfigurer
protected PropertyChangerConfigurer
protected DynamicProperty
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 TypeMethodDescriptionvoid
addFocusListener
(FocusListener listener) Add a FocusListener to the Swing Components that make up this Configurer.protected void
GUI interface for setting the option in an editing windowboolean
void
removeFocusListener
(FocusListener listener) Remove a FocusListener from the Swing Components that make up this Configurer.void
Move the cursor to the first input field of this Configurervoid
setContext
(AbstractBuildable context) Set the Context for this Configurer to the first ancestor that is of type GameModule or Map NOTE: The ContextLevel may already have been preset by the ConfigureFactory when the Configurer was created.void
setContextLevel
(Configurer.ContextLevel contextLevel) void
setFrozen
(boolean val) Freeze the Configurer from issuing PropertyChange Events.void
setHighlighted
(boolean highlighted) Set the highlighted status of this configurer.void
setTarget
(DynamicProperty target) void
Set the Object valuevoid
Set the Object value from a Stringvoid
Methods inherited from class VASSAL.configure.Configurer
addPropertyChangeListener, fireUpdate, getContext, getContextLevel, getHint, getKey, getName, getScreenSize, getValue, initCustomControls, isFrozen, isHighlighted, isPieceContext, removePropertyChangeListener, repack, repack, setContext, setContext, setEnabled, setHint, setHintKey, setLabelVisibile, setLabelVisible, setName
-
Field Details
-
keyConfig
-
propChangeConfig
-
commandConfig
-
controls
-
target
-
-
Constructor Details
-
DynamicKeyCommandConfigurer
-
-
Method Details
-
getTarget
-
setTarget
-
getValueString
- Specified by:
getValueString
in classConfigurer
- Returns:
- a String representation of the Object value
-
setFrozen
public void setFrozen(boolean val) Freeze the Configurer from issuing PropertyChange Events. Ensure the subsidiary Configurers are quiet also.- Overrides:
setFrozen
in classConfigurer
- Parameters:
val
- true to freeze
-
setValue
Description copied from class:Configurer
Set the Object value- Overrides:
setValue
in classConfigurer
-
getKeyCommand
-
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
-
updateValue
public void updateValue() -
buildControls
protected void buildControls() -
getCommandControls
-
getKeyControls
-
getTypeControls
-
getChangerControls
-
getValuesControls
-
isEnumType
public boolean isEnumType() -
setHighlighted
public void setHighlighted(boolean highlighted) Description copied from class:Configurer
Set the highlighted status of this configurer. It is up to individual Configurers to override this method and implement a suitable visual highlighting scheme Note: Cannot make this abstract as it will break custom code.- Overrides:
setHighlighted
in classConfigurer
- Parameters:
highlighted
- New Highlighted status
-
addFocusListener
Description copied from class:Configurer
Add a FocusListener to the Swing Components that make up this Configurer.- Overrides:
addFocusListener
in classConfigurer
- Parameters:
listener
- Focus Listener
-
removeFocusListener
Description copied from class:Configurer
Remove a FocusListener from the Swing Components that make up this Configurer.- Overrides:
removeFocusListener
in classConfigurer
- Parameters:
listener
- Focus Listener
-
requestFocus
public void requestFocus()Description copied from class:Configurer
Move the cursor to the first input field of this Configurer- Overrides:
requestFocus
in classConfigurer
-
setContext
Description copied from class:Configurer
Set the Context for this Configurer to the first ancestor that is of type GameModule or Map NOTE: The ContextLevel may already have been preset by the ConfigureFactory when the Configurer was created. Don't let the AutoConfigurer over-write this- Overrides:
setContext
in classConfigurer
- Parameters:
context
- Owning Configurable
-
setContextLevel
- Overrides:
setContextLevel
in classConfigurer
-