Class DynamicKeyCommandListConfigurer
java.lang.Object
VASSAL.configure.Configurer
VASSAL.configure.DynamicKeyCommandListConfigurer
- All Implemented Interfaces:
ConfigurableList
-
Nested Class Summary
Nested classes/interfaces inherited from class VASSAL.configure.Configurer
Configurer.ContextLevel
-
Field Summary
Fields inherited from class VASSAL.configure.Configurer
changeSupport, context, contextLevel, frozen, hint, key, LIST_ENTRY_HIGHLIGHT_COLOR, name, NAME_PROPERTY, noUpdate, value
Fields inherited from interface VASSAL.configure.ConfigurableList
DEFAULT_ICON_SIZE
-
Constructor Summary
ConstructorDescriptionDynamicKeyCommandListConfigurer
(String key, String name, DynamicProperty target) DynamicKeyCommandListConfigurer
(String key, String name, DynamicProperty target, boolean remote) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addEntry()
Add a new list entry after the currently selected entry, or at the bottom of the list if no entries selected.void
deleteEntry
(ConfigurableListEntry entry) Remove the specified entry from the list.void
An entry has had it's value changedGUI interface for setting the option in an editing windowReturn the ListController associated with this Configurable Listint
Return the index of the currently selected entryboolean
isRemote()
void
Move the currently selected list entry down one position The moved entry should retain the selectionvoid
Move the currently selected list entry up one position The moved entry should retain the selectionprotected void
void
repack()
Repack the current configurervoid
selectEntry
(ConfigurableListEntry entry) Set the selection to the specified list entry.void
setSelectedEntryIndex
(int index) Set the currently selected entryvoid
setTarget
(DynamicProperty target) void
Set the Object valuevoid
Set the Object value from a StringMethods inherited from class VASSAL.configure.Configurer
addFocusListener, addPropertyChangeListener, fireUpdate, getContext, getContextLevel, getHint, getKey, getName, getScreenSize, getValue, initCustomControls, isFrozen, isHighlighted, isPieceContext, removeFocusListener, removePropertyChangeListener, repack, requestFocus, setContext, setContext, setContext, setContextLevel, setEnabled, setFrozen, setHighlighted, setHint, setHintKey, setLabelVisibile, setLabelVisible, setName
-
Constructor Details
-
DynamicKeyCommandListConfigurer
public DynamicKeyCommandListConfigurer(String key, String name, DynamicProperty target, boolean remote) -
DynamicKeyCommandListConfigurer
-
-
Method Details
-
isRemote
public boolean isRemote() -
getTarget
-
setTarget
-
moveEntryUp
public void moveEntryUp()Description copied from interface:ConfigurableList
Move the currently selected list entry up one position The moved entry should retain the selection- Specified by:
moveEntryUp
in interfaceConfigurableList
-
moveEntryDown
public void moveEntryDown()Description copied from interface:ConfigurableList
Move the currently selected list entry down one position The moved entry should retain the selection- Specified by:
moveEntryDown
in interfaceConfigurableList
-
addEntry
public void addEntry()Description copied from interface:ConfigurableList
Add a new list entry after the currently selected entry, or at the bottom of the list if no entries selected. The new entry should be selected.- Specified by:
addEntry
in interfaceConfigurableList
-
deleteEntry
Description copied from interface:ConfigurableList
Remove the specified entry from the list. The entry following the removed entry should be selected, or the last entry in the list if the deleted entry was last.- Specified by:
deleteEntry
in interfaceConfigurableList
- Parameters:
entry
- Entry to delete.
-
selectEntry
Description copied from interface:ConfigurableList
Set the selection to the specified list entry.- Specified by:
selectEntry
in interfaceConfigurableList
- Parameters:
entry
- Entry to select
-
setSelectedEntryIndex
public void setSelectedEntryIndex(int index) Description copied from interface:ConfigurableList
Set the currently selected entry- Specified by:
setSelectedEntryIndex
in interfaceConfigurableList
- Parameters:
index
- Index of currently selected entry
-
getSelectedEntryIndex
public int getSelectedEntryIndex()Description copied from interface:ConfigurableList
Return the index of the currently selected entry- Specified by:
getSelectedEntryIndex
in interfaceConfigurableList
- Returns:
- currently selected entry index
-
entryChanged
Description copied from interface:ConfigurableList
An entry has had it's value changed- Specified by:
entryChanged
in interfaceConfigurableList
- Parameters:
entry
- Changed Entry
-
getListController
Description copied from interface:ConfigurableList
Return the ListController associated with this Configurable List- Specified by:
getListController
in interfaceConfigurableList
- Returns:
- List Controller
-
getValueString
- Specified by:
getValueString
in classConfigurer
- Returns:
- a String representation of the Object value
-
getListValue
-
setValue
Description copied from class:Configurer
Set the Object value from a String- Specified by:
setValue
in classConfigurer
-
setValue
Description copied from class:Configurer
Set the Object value- Overrides:
setValue
in classConfigurer
-
getControls
Description copied from class:Configurer
GUI interface for setting the option in an editing window- Specified by:
getControls
in classConfigurer
-
rebuildControls
protected void rebuildControls() -
repack
public void repack()Description copied from class:Configurer
Repack the current configurer- Specified by:
repack
in interfaceConfigurableList
- Overrides:
repack
in classConfigurer
-