Package VASSAL.configure
Class DynamicKeyCommandConfigurer
java.lang.Object
VASSAL.configure.Configurer
VASSAL.configure.DynamicKeyCommandConfigurer
public class DynamicKeyCommandConfigurer extends Configurer
-
Field Summary
Fields Modifier and Type Field Description protected StringConfigurercommandConfigprotected JPanelcontrolsprotected NamedHotKeyConfigurerkeyConfigprotected PropertyChangerConfigurerpropChangeConfigprotected DynamicPropertytargetFields inherited from class VASSAL.configure.Configurer
changeSupport, frozen, hint, key, LIST_ENTRY_HIGHLIGHT_COLOR, name, NAME_PROPERTY, noUpdate, value -
Constructor Summary
Constructors Constructor Description DynamicKeyCommandConfigurer(DynamicProperty target) -
Method Summary
Modifier and Type Method Description voidaddFocusListener(FocusListener listener)Add a FocusListener to the Swing Components that make up this Configurer.protected voidbuildControls()ComponentgetChangerControls()ComponentgetCommandControls()ComponentgetControls()GUI interface for setting the option in an editing windowDynamicProperty.DynamicKeyCommandgetKeyCommand()ComponentgetKeyControls()DynamicPropertygetTarget()ComponentgetTypeControls()ComponentgetValuesControls()StringgetValueString()booleanisEnumType()voidremoveFocusListener(FocusListener listener)Remove a FocusListener from the Swing Components that make up this Configurer.voidsetFrozen(boolean val)Freeze the Configurer from issuing PropertyChange Events.voidsetHighlighted(boolean highlighted)Set the highlighted status of this configurer.voidsetTarget(DynamicProperty target)voidsetValue(Object value)Set the Object valuevoidsetValue(String s)Set the Object value from a StringvoidupdateValue()Methods inherited from class VASSAL.configure.Configurer
addPropertyChangeListener, fireUpdate, getHint, getKey, getName, getScreenSize, getValue, isFrozen, isHighlighted, removePropertyChangeListener, repack, repack, setHint, setHintKey, setLabelVisibile, setName
-
Field Details
-
keyConfig
-
propChangeConfig
-
commandConfig
-
controls
-
target
-
-
Constructor Details
-
DynamicKeyCommandConfigurer
-
-
Method Details
-
getTarget
-
setTarget
-
getValueString
- Specified by:
getValueStringin 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:
setFrozenin classConfigurer- Parameters:
val- true to freeze
-
setValue
Description copied from class:ConfigurerSet the Object value- Overrides:
setValuein classConfigurer
-
getKeyCommand
-
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
-
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:ConfigurerSet the highlighted status of this configurer. It is up to individual Configurers to over-ride this method and implement a suitable visual highlighting scheme Note: Cannot make this abstract as it will break custom code.- Overrides:
setHighlightedin classConfigurer- Parameters:
highlighted- New Highlighted status
-
addFocusListener
Description copied from class:ConfigurerAdd a FocusListener to the Swing Components that make up this Configurer.- Overrides:
addFocusListenerin classConfigurer- Parameters:
listener- Focus Listener
-
removeFocusListener
Description copied from class:ConfigurerRemove a FocusListener from the Swing Components that make up this Configurer.- Overrides:
removeFocusListenerin classConfigurer- Parameters:
listener- Focus Listener
-