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
ConstructorsConstructorDescriptionAbstractConfigurableListEntry(ConfigurableList parentConfig, Object value) AbstractConfigurableListEntry(ConfigurableList parentConfig, Object value, int iconSize) Build a new List Entry -
Method Summary
Modifier and TypeMethodDescriptionabstract ConfigurerbuildChildConfigurer(Object value) Build a suitable Configurer that Configures this List EntryvoidCalled 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 EntryvoidvoidEnsure this entry has the focusabstract voidsetHighlighted(boolean b) Set the Highlighted status of fields in this entry.voidUpdate 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, waitMethods 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:
propertyChangein 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:
getRemoveButtonin interfaceConfigurableListEntry- Returns:
- Remove Button
-
getConfigurer
Return the Configurer that configures this entry- Specified by:
getConfigurerin interfaceConfigurableListEntry- Returns:
- Entry Configurer
-
focusGained
public void focusGained()Called when this Entry gains the focus.- Specified by:
focusGainedin interfaceConfigurableListEntry
-
requestFocus
public void requestFocus()Ensure this entry has the focus- Specified by:
requestFocusin 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:
updateVisibilityin 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:
setHighlightedin interfaceConfigurableListEntry- Parameters:
b- Highlight status
-