Class NamedKeyStrokeArrayConfigurer
java.lang.Object
VASSAL.configure.Configurer
VASSAL.configure.NamedKeyStrokeArrayConfigurer
-
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, valueFields inherited from interface VASSAL.configure.ConfigurableList
DEFAULT_ICON_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionNamedKeyStrokeArrayConfigurer(String key, String name) NamedKeyStrokeArrayConfigurer(String key, String name, List<NamedKeyStroke> val) NamedKeyStrokeArrayConfigurer(String key, String name, NamedKeyStroke[] val) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddEntry()Add a new list entry after the currently selected entry, or at the bottom of the list if no entries selected.static NamedKeyStroke[]voiddeleteEntry(ConfigurableListEntry entry) Remove the specified entry from the list.static Stringencode(NamedKeyStroke[] keys) voidA List entry has had it's value changed.GUI interface for setting the option in an editing windowReturn the ListController associated with this Configurable ListintReturn the index of the currently selected entryvoidMove the currently selected list entry down one position The moved entry should retain the selectionvoidMove the currently selected list entry up one position The moved entry should retain the selectionvoidrepack()Repack the current configurervoidselectEntry(ConfigurableListEntry entry) Set the selection to the specified list entry.voidsetSelectedEntryIndex(int index) Set the currently selected entryvoidSet the Object valuevoidSet 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
-
NamedKeyStrokeArrayConfigurer
-
NamedKeyStrokeArrayConfigurer
-
NamedKeyStrokeArrayConfigurer
-
NamedKeyStrokeArrayConfigurer
-
-
Method Details
-
getNameKeyStrokeArrayValue
-
getControls
Description copied from class:ConfigurerGUI interface for setting the option in an editing window- Specified by:
getControlsin classConfigurer
-
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
-
setValue
Description copied from class:ConfigurerSet the Object value- Overrides:
setValuein classConfigurer
-
getKeyStrokes
-
decode
-
encode
-
moveEntryUp
public void moveEntryUp()Description copied from interface:ConfigurableListMove the currently selected list entry up one position The moved entry should retain the selection- Specified by:
moveEntryUpin interfaceConfigurableList
-
moveEntryDown
public void moveEntryDown()Description copied from interface:ConfigurableListMove the currently selected list entry down one position The moved entry should retain the selection- Specified by:
moveEntryDownin interfaceConfigurableList
-
addEntry
public void addEntry()Description copied from interface:ConfigurableListAdd 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:
addEntryin interfaceConfigurableList
-
deleteEntry
Description copied from interface:ConfigurableListRemove 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:
deleteEntryin interfaceConfigurableList- Parameters:
entry- Entry to delete.
-
getListController
Description copied from interface:ConfigurableListReturn the ListController associated with this Configurable List- Specified by:
getListControllerin interfaceConfigurableList- Returns:
- List Controller
-
selectEntry
Description copied from interface:ConfigurableListSet the selection to the specified list entry.- Specified by:
selectEntryin interfaceConfigurableList- Parameters:
entry- Entry to select
-
repack
public void repack()Description copied from class:ConfigurerRepack the current configurer- Specified by:
repackin interfaceConfigurableList- Overrides:
repackin classConfigurer
-
setSelectedEntryIndex
public void setSelectedEntryIndex(int index) Description copied from interface:ConfigurableListSet the currently selected entry- Specified by:
setSelectedEntryIndexin interfaceConfigurableList- Parameters:
index- Index of currently selected entry
-
getSelectedEntryIndex
public int getSelectedEntryIndex()Description copied from interface:ConfigurableListReturn the index of the currently selected entry- Specified by:
getSelectedEntryIndexin interfaceConfigurableList- Returns:
- currently selected entry index
-
entryChanged
A List entry has had it's value changed.- Specified by:
entryChangedin interfaceConfigurableList- Parameters:
entry- Changed Entry
-