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
FieldsModifier and TypeFieldDescriptionprotected JPanelprotected List<Configurer>protected JPanelprotected Dimensionprotected JPanelFields inherited from class VASSAL.configure.Configurer
changeSupport, context, contextLevel, frozen, hint, key, LIST_ENTRY_HIGHLIGHT_COLOR, name, NAME_PROPERTY, noUpdate, value -
Constructor Summary
ConstructorsConstructorDescriptionListConfigurer(String key, String name) ListConfigurer(String key, String name, List<?> val) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract ConfigurerThe objects in the list are specified by the Configurer returned herebooleanGUI interface for setting the option in an editing windowinthashCode()voidvoidrepack()Repack the current configurervoidresize()Resize the overall Configurer to only show Scroll bars if getting close to full screen heightvoidSet the Object valuevoidSet the Object value from a Stringprotected voidprotected voidMethods 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:
getValueStringin classConfigurer- Returns:
- a String representation of the Object value
-
setValue
Description copied from class:ConfigurerSet the Object value from a String- Specified by:
setValuein classConfigurer
-
updateValue
protected void updateValue() -
setValue
Description copied from class:ConfigurerSet the Object value- Overrides:
setValuein classConfigurer
-
getControls
Description copied from class:ConfigurerGUI interface for setting the option in an editing window- Specified by:
getControlsin classConfigurer
-
getListValue
-
buildChildConfigurer
The objects in the list are specified by the Configurer returned here- Returns:
- objects in the list
-
propertyChange
- Specified by:
propertyChangein 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:ConfigurerRepack the current configurer- Overrides:
repackin classConfigurer
-
hashCode
public int hashCode() -
equals
-