Package VASSAL.configure
Class AbstractConfigurableListEntry
java.lang.Object
VASSAL.configure.AbstractConfigurableListEntry
- All Implemented Interfaces:
PropertyChangeListener
,EventListener
,ConfigurableListEntry
Base class for a List Entry maintained by a
ConfigurableList
A ConfigurableListEntry
must be configurered by a single Configurer.-
Constructor Summary
ConstructorDescriptionAbstractConfigurableListEntry
(ConfigurableList parentConfig, Object value) AbstractConfigurableListEntry
(ConfigurableList parentConfig, Object value, int iconSize) Build a new List Entry -
Method Summary
Modifier and TypeMethodDescriptionabstract Configurer
buildChildConfigurer
(Object value) Build a suitable Configurer that Configures this List Entryvoid
Called when this Entry gains the focus.Return the Configurer that configures this entryReturn the parent ConfigurableList that owns this Entry.Return the Remove button that deletes this List Entryvoid
void
Ensure this entry has the focusabstract void
setHighlighted
(boolean b) Set the Highlighted status of fields in this entry.void
Update the visibility of any optional components in this entry Most Configurer entries will not have option components.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface VASSAL.configure.ConfigurableListEntry
addPropertyChangeListener, removePropertyChangeListener
-
Constructor Details
-
AbstractConfigurableListEntry
Build a new List Entry- Parameters:
parentConfig
- Parent Listvalue
- Initial value for entryiconSize
- Icon size for the Remove button
-
AbstractConfigurableListEntry
-
-
Method Details
-
propertyChange
- Specified by:
propertyChange
in interfacePropertyChangeListener
-
buildChildConfigurer
Build a suitable Configurer that Configures this List Entry- Parameters:
value
- Initial value for the Configurer- Returns:
- A Configurer
-
getParent
Return the parent ConfigurableList that owns this Entry.- Returns:
- Parent List
-
getRemoveButton
Return the Remove button that deletes this List Entry- Specified by:
getRemoveButton
in interfaceConfigurableListEntry
- Returns:
- Remove Button
-
getConfigurer
Return the Configurer that configures this entry- Specified by:
getConfigurer
in interfaceConfigurableListEntry
- Returns:
- Entry Configurer
-
focusGained
public void focusGained()Called when this Entry gains the focus.- Specified by:
focusGained
in interfaceConfigurableListEntry
-
requestFocus
public void requestFocus()Ensure this entry has the focus- Specified by:
requestFocus
in interfaceConfigurableListEntry
-
updateVisibility
public void updateVisibility()Update the visibility of any optional components in this entry Most Configurer entries will not have option components.- Specified by:
updateVisibility
in interfaceConfigurableListEntry
-
setHighlighted
public abstract void setHighlighted(boolean b) Set the Highlighted status of fields in this entry. Used to highlight the currently selected entry.- Specified by:
setHighlighted
in interfaceConfigurableListEntry
- Parameters:
b
- Highlight status
-