Class SortParameterArrayConfigurer
java.lang.Object
VASSAL.configure.Configurer
VASSAL.build.module.map.deck.SortParameterArrayConfigurer
- 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
ConstructorDescriptionSortParameterArrayConfigurer
(String key, String name) SortParameterArrayConfigurer
(String key, String name, Object val) -
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.static List
<SortParameter> void
deleteEntry
(ConfigurableListEntry entry) Remove the specified entry from the list.static String
encode
(List<SortParameter> params) 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 entryvoid
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 selectionvoid
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
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
-
SortParameterArrayConfigurer
-
SortParameterArrayConfigurer
-
-
Method Details
-
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.
-
getListController
Description copied from interface:ConfigurableList
Return the ListController associated with this Configurable List- Specified by:
getListController
in interfaceConfigurableList
- Returns:
- List Controller
-
selectEntry
Description copied from interface:ConfigurableList
Set the selection to the specified list entry.- Specified by:
selectEntry
in interfaceConfigurableList
- Parameters:
entry
- Entry to select
-
decode
-
encode
-
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
-
setValue
Description copied from class:Configurer
Set the Object value- Overrides:
setValue
in classConfigurer
-
getSortParameterListValue
-
getControls
Description copied from class:Configurer
GUI interface for setting the option in an editing window- Specified by:
getControls
in classConfigurer
-
repack
public void repack()Description copied from class:Configurer
Repack the current configurer- Specified by:
repack
in interfaceConfigurableList
- Overrides:
repack
in classConfigurer
-
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
-