Package VASSAL.configure
Interface ConfigurableList
- All Known Implementing Classes:
DynamicKeyCommandListConfigurer
,FormattedStringArrayConfigurer
,NamedKeyStrokeArrayConfigurer
,ParameterListConfigurer
,SortParameterArrayConfigurer
,StringArrayConfigurer
public interface ConfigurableList
An interface to be implemented by Configurers that manage variable sized lists.
See also
ConfigurableListEntry
, ConfigurableListController
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
The Default Icon Size to use for all Configurable List related button icons -
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 changedReturn 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 Configurervoid
selectEntry
(ConfigurableListEntry entry) Set the selection to the specified list entry.void
setSelectedEntryIndex
(int index) Set the currently selected entry
-
Field Details
-
DEFAULT_ICON_SIZE
static final int DEFAULT_ICON_SIZEThe Default Icon Size to use for all Configurable List related button icons- See Also:
-
-
Method Details
-
moveEntryUp
void moveEntryUp()Move the currently selected list entry up one position The moved entry should retain the selection -
moveEntryDown
void moveEntryDown()Move the currently selected list entry down one position The moved entry should retain the selection -
addEntry
void addEntry()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. -
deleteEntry
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.- Parameters:
entry
- Entry to delete.
-
getListController
JComponent getListController()Return the ListController associated with this Configurable List- Returns:
- List Controller
-
selectEntry
Set the selection to the specified list entry.- Parameters:
entry
- Entry to select
-
repack
void repack()Repack the Configurer -
setSelectedEntryIndex
void setSelectedEntryIndex(int index) Set the currently selected entry- Parameters:
index
- Index of currently selected entry
-
getSelectedEntryIndex
int getSelectedEntryIndex()Return the index of the currently selected entry- Returns:
- currently selected entry index
-
entryChanged
An entry has had it's value changed- Parameters:
entry
- Changed Entry
-