Package VASSAL.preferences
Class PositionOption
java.lang.Object
VASSAL.configure.Configurer
VASSAL.preferences.PositionOption
- All Implemented Interfaces:
ComponentListener
,EventListener
- Direct Known Subclasses:
VisibilityOption
public class PositionOption extends Configurer implements ComponentListener
-
Field Summary
Fields Modifier and Type Field Description protected Rectangle
bounds
protected Rectangle
defaultValue
static String
key
protected Rectangle
previousBounds
protected Window
theFrame
Fields inherited from class VASSAL.configure.Configurer
changeSupport, frozen, name, NAME_PROPERTY, noUpdate, value
-
Constructor Summary
Constructors Constructor Description PositionOption(String key, Window f)
PositionOption(String key, Window f, Rectangle defaultValue)
-
Method Summary
Modifier and Type Method Description void
componentHidden(ComponentEvent e)
void
componentMoved(ComponentEvent e)
void
componentResized(ComponentEvent e)
void
componentShown(ComponentEvent e)
Component
getControls()
GUI interface for setting the option in an editing windowObject
getValue()
The Object value May be null if the Object has not been initializedString
getValueString()
protected void
setFrameBounds()
void
setValue(Object o)
Set the Object valuevoid
setValue(String in)
Set the Object value from a StringMethods inherited from class VASSAL.configure.Configurer
addPropertyChangeListener, fireUpdate, getKey, getName, isFrozen, removePropertyChangeListener, setFrozen, setName
-
Field Details
-
key
-
theFrame
-
bounds
-
defaultValue
-
previousBounds
-
-
Constructor Details
-
PositionOption
-
PositionOption
-
-
Method Details
-
getValue
Description copied from class:Configurer
The Object value May be null if the Object has not been initialized- Overrides:
getValue
in classConfigurer
-
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
-
setValue
Description copied from class:Configurer
Set the Object value from a String- Specified by:
setValue
in classConfigurer
-
getValueString
- Specified by:
getValueString
in classConfigurer
- Returns:
- a String representation of the Object value
-
componentMoved
- Specified by:
componentMoved
in interfaceComponentListener
-
componentResized
- Specified by:
componentResized
in interfaceComponentListener
-
componentShown
- Specified by:
componentShown
in interfaceComponentListener
-
componentHidden
- Specified by:
componentHidden
in interfaceComponentListener
-
setFrameBounds
protected void setFrameBounds()
-