Package VASSAL.configure
Class ImageSelector
java.lang.Object
VASSAL.configure.Configurer
VASSAL.configure.ImageSelector
- All Implemented Interfaces:
ItemListener
,EventListener
Allows a user to select from the images currently available in a module, or
to open a File Dialog to import a new image.
Designed to be a drop-in replacement for
ImagePicker
,
except implemented as a proper Configurer.
The value stored is the name of the image file (no pathname).-
Nested Class Summary
Nested classes/interfaces inherited from class VASSAL.configure.Configurer
Configurer.ContextLevel
-
Field Summary
Fields inherited from class VASSAL.configure.Configurer
changeSupport, context, contextLevel, frozen, hint, key, LIST_ENTRY_HIGHLIGHT_COLOR, name, NAME_PROPERTY, noUpdate, value
-
Constructor Summary
ConstructorDescriptionImageSelector
(String val) ImageSelector
(String val, int maxWidth, int maxheight) ImageSelector
(String key, String name) ImageSelector
(String key, String name, String val) ImageSelector
(String key, String name, String val, int maxWidth, int maxheight) -
Method Summary
Modifier and TypeMethodDescriptionGUI interface for setting the option in an editing windowvoid
void
Set the Object value from a StringMethods inherited from class VASSAL.configure.Configurer
addFocusListener, addPropertyChangeListener, fireUpdate, getContext, getContextLevel, getHint, getKey, getName, getScreenSize, getValue, initCustomControls, isFrozen, isHighlighted, isPieceContext, removeFocusListener, removePropertyChangeListener, repack, repack, requestFocus, setContext, setContext, setContext, setContextLevel, setEnabled, setFrozen, setHighlighted, setHint, setHintKey, setLabelVisibile, setLabelVisible, setName, setValue
-
Constructor Details
-
ImageSelector
-
ImageSelector
-
ImageSelector
-
ImageSelector
-
ImageSelector
-
ImageSelector
public ImageSelector()
-
-
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
-
getControls
Description copied from class:Configurer
GUI interface for setting the option in an editing window- Specified by:
getControls
in classConfigurer
-
itemStateChanged
- Specified by:
itemStateChanged
in interfaceItemListener
-
getImageName
-