Package VASSAL.configure
Class ListConfigurer
java.lang.Object
VASSAL.configure.Configurer
VASSAL.configure.ListConfigurer
- All Implemented Interfaces:
PropertyChangeListener
,EventListener
- Direct Known Subclasses:
DoActionButton.NamedHotkeyListConfigurer
Configures a variable-length list of objects
- Author:
- rkinney
-
Nested Class Summary
Nested classes/interfaces inherited from class VASSAL.configure.Configurer
Configurer.ContextLevel
-
Field Summary
Modifier and TypeFieldDescriptionprotected JPanel
protected List
<Configurer> protected JPanel
protected Dimension
protected JPanel
Fields inherited from class VASSAL.configure.Configurer
changeSupport, context, contextLevel, frozen, hint, key, LIST_ENTRY_HIGHLIGHT_COLOR, name, NAME_PROPERTY, noUpdate, value
-
Constructor Summary
ConstructorDescriptionListConfigurer
(String key, String name) ListConfigurer
(String key, String name, List<?> val) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract Configurer
The objects in the list are specified by the Configurer returned hereboolean
GUI interface for setting the option in an editing windowint
hashCode()
void
void
repack()
Repack the current configurervoid
resize()
Resize the overall Configurer to only show Scroll bars if getting close to full screen heightvoid
Set the Object valuevoid
Set the Object value from a Stringprotected void
protected void
Methods 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
-
Field Details
-
controls
-
configControls
-
panel
-
fixedSize
-
configurers
-
-
Constructor Details
-
ListConfigurer
-
ListConfigurer
-
-
Method Details
-
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
-
updateValue
protected void updateValue() -
setValue
Description copied from class:Configurer
Set the Object value- Overrides:
setValue
in classConfigurer
-
getControls
Description copied from class:Configurer
GUI interface for setting the option in an editing window- Specified by:
getControls
in classConfigurer
-
getListValue
-
buildChildConfigurer
The objects in the list are specified by the Configurer returned here- Returns:
- objects in the list
-
propertyChange
- Specified by:
propertyChange
in interfacePropertyChangeListener
-
updateControls
protected void updateControls() -
resize
public void resize()Resize the overall Configurer to only show Scroll bars if getting close to full screen height -
repack
public void repack()Description copied from class:Configurer
Repack the current configurer- Overrides:
repack
in classConfigurer
-
hashCode
-
equals
-