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 Rectangleboundsprotected RectangledefaultValuestatic Stringkeyprotected RectanglepreviousBoundsprotected WindowtheFrameFields 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 voidcomponentHidden(ComponentEvent e)voidcomponentMoved(ComponentEvent e)voidcomponentResized(ComponentEvent e)voidcomponentShown(ComponentEvent e)ComponentgetControls()GUI interface for setting the option in an editing windowObjectgetValue()The Object value May be null if the Object has not been initializedStringgetValueString()protected voidsetFrameBounds()voidsetValue(Object o)Set the Object valuevoidsetValue(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:ConfigurerThe Object value May be null if the Object has not been initialized- Overrides:
getValuein classConfigurer
-
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
-
setValue
Description copied from class:ConfigurerSet the Object value from a String- Specified by:
setValuein classConfigurer
-
getValueString
- Specified by:
getValueStringin classConfigurer- Returns:
- a String representation of the Object value
-
componentMoved
- Specified by:
componentMovedin interfaceComponentListener
-
componentResized
- Specified by:
componentResizedin interfaceComponentListener
-
componentShown
- Specified by:
componentShownin interfaceComponentListener
-
componentHidden
- Specified by:
componentHiddenin interfaceComponentListener
-
setFrameBounds
protected void setFrameBounds()
-