Class StringArrayConfigurer
java.lang.Object
VASSAL.configure.Configurer
VASSAL.configure.StringArrayConfigurer
- All Implemented Interfaces:
ConfigurableList
- Direct Known Subclasses:
FormattedStringArrayConfigurer
A Configurer that returns an array of Strings
-
Nested Class Summary
Nested classes/interfaces inherited from class VASSAL.configure.Configurer
Configurer.ContextLevel
-
Field Summary
Modifier and TypeFieldDescriptionDeprecated, for removal: This API element is subject to removal in a future version.protected int
Deprecated, for removal: This API element is subject to removal in a future version.protected int
Deprecated, for removal: This API element is subject to removal in a future version.protected DefaultListModel
<String> Deprecated, for removal: This API element is subject to removal in a future version.protected JPanel
protected JTextField
Deprecated, for removal: This API element is subject to removal in a future version.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
ConstructorDescriptionStringArrayConfigurer
(String key, String name) StringArrayConfigurer
(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.void
addFocusListener
(FocusListener listener) Add a FocusListener to the Swing Components that make up this Configurer.protected void
Deprecated, for removal: This API element is subject to removal in a future version.void
Deprecated, for removal: This API element is subject to removal in a future version.static String
arrayToString
(String[] s) buildChildConfigurer
(Object value) 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 windowList
<VASSAL.configure.StringArrayConfigurer.StringEntry> Return the ListController associated with this Configurable ListgetModel()
Deprecated, for removal: This API element is subject to removal in a future version.int
Return the index of the currently selected entryString[]
protected Component
Deprecated, for removal: This API element is subject to removal in a future version.protected String
Deprecated, for removal: This API element is subject to removal in a future version.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 selectionvoid
removeFocusListener
(FocusListener listener) Remove a FocusListener from the Swing Components that make up this Configurer.void
void
repack()
Repack the current configurervoid
selectEntry
(ConfigurableListEntry entry) Set the selection to the specified list entry.void
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
setHighlighted
(boolean highlighted) Don't do anything special when highlighting, but deslect currently selected entry when unhighlightingvoid
setSelectedEntryIndex
(int index) Set the currently selected entryprotected void
Deprecated, for removal: This API element is subject to removal in a future version.void
Set the Object valuevoid
Set the Object value from a Stringstatic String[]
protected void
Deprecated, for removal: This API element is subject to removal in a future version.void
updateViewable
(int rows) Deprecated, for removal: This API element is subject to removal in a future version.Methods inherited from class VASSAL.configure.Configurer
addPropertyChangeListener, fireUpdate, getContext, getContextLevel, getHint, getKey, getName, getScreenSize, getValue, initCustomControls, isFrozen, isHighlighted, isPieceContext, removePropertyChangeListener, repack, requestFocus, setContext, setContext, setContextLevel, setEnabled, setFrozen, setHint, setHintKey, setLabelVisibile, setLabelVisible, setName
-
Field Details
-
list
Deprecated, for removal: This API element is subject to removal in a future version. -
model
Deprecated, for removal: This API element is subject to removal in a future version. -
textField
Deprecated, for removal: This API element is subject to removal in a future version. -
minRows
Deprecated, for removal: This API element is subject to removal in a future version. -
maxRows
Deprecated, for removal: This API element is subject to removal in a future version. -
panel
-
-
Constructor Details
-
StringArrayConfigurer
-
StringArrayConfigurer
-
StringArrayConfigurer
-
-
Method Details
-
getModel
Deprecated, for removal: This API element is subject to removal in a future version. -
addValue
Deprecated, for removal: This API element is subject to removal in a future version. -
removeValue
-
getControls
Description copied from class:Configurer
GUI interface for setting the option in an editing window- Specified by:
getControls
in classConfigurer
-
updateViewable
Deprecated, for removal: This API element is subject to removal in a future version. -
getTextComponent
Deprecated, for removal: This API element is subject to removal in a future version. -
getTextValue
Deprecated, for removal: This API element is subject to removal in a future version. -
setTextValue
Deprecated, for removal: This API element is subject to removal in a future version. -
addTextActionListener
@Deprecated(since="2020-11-12", forRemoval=true) protected void addTextActionListener(ActionListener a) Deprecated, for removal: This API element is subject to removal in a future version. -
getStringArray
-
getValueString
- Specified by:
getValueString
in classConfigurer
- Returns:
- a String representation of the Object value
-
arrayToString
-
setValue
Description copied from class:Configurer
Set the Object value- Overrides:
setValue
in classConfigurer
-
setValue
Description copied from class:Configurer
Set the Object value from a String- Specified by:
setValue
in classConfigurer
-
stringToArray
-
updateModel
Deprecated, for removal: This API element is subject to removal in a future version. -
buildChildConfigurer
-
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
-
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
-
selectEntry
Description copied from interface:ConfigurableList
Set the selection to the specified list entry.- Specified by:
selectEntry
in interfaceConfigurableList
- Parameters:
entry
- Entry to select
-
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
-
setHighlighted
public void setHighlighted(boolean highlighted) Don't do anything special when highlighting, but deslect currently selected entry when unhighlighting- Overrides:
setHighlighted
in classConfigurer
- Parameters:
highlighted
- New Highlighted status
-
getEntries
-
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
-