VASSAL.preferences
Class PositionOption
java.lang.Object
|
+--VASSAL.configure.Configurer
|
+--VASSAL.preferences.PositionOption
- All Implemented Interfaces:
- java.awt.event.ComponentListener, java.util.EventListener
- Direct Known Subclasses:
- VisibilityOption
- public class PositionOption
- extends Configurer
- implements java.awt.event.ComponentListener
|
Field Summary |
protected java.awt.Rectangle |
bounds
|
static java.lang.String |
key
|
protected java.awt.Window |
theFrame
|
|
Constructor Summary |
PositionOption(java.lang.String key,
java.awt.Window f)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
key
public static java.lang.String key
theFrame
protected java.awt.Window theFrame
bounds
protected java.awt.Rectangle bounds
PositionOption
public PositionOption(java.lang.String key,
java.awt.Window f)
getValue
public java.lang.Object getValue()
- Description copied from class:
Configurer
- The Object value
May be null if the Object has not been initialized
- Overrides:
getValue in class Configurer
setValue
public void setValue(java.lang.Object o)
- Description copied from class:
Configurer
- Set the Object value
- Overrides:
setValue in class Configurer
getControls
public java.awt.Component getControls()
- Description copied from class:
Configurer
- GUI interface for setting the option in an editing window
- Specified by:
getControls in class Configurer
setValue
public void setValue(java.lang.String in)
- Description copied from class:
Configurer
- Set the Object value from a String
- Specified by:
setValue in class Configurer
getValueString
public java.lang.String getValueString()
- Specified by:
getValueString in class Configurer
- Returns:
- a String representation of the Object value
componentMoved
public void componentMoved(java.awt.event.ComponentEvent e)
- Specified by:
componentMoved in interface java.awt.event.ComponentListener
componentResized
public void componentResized(java.awt.event.ComponentEvent e)
- Specified by:
componentResized in interface java.awt.event.ComponentListener
componentShown
public void componentShown(java.awt.event.ComponentEvent e)
- Specified by:
componentShown in interface java.awt.event.ComponentListener
componentHidden
public void componentHidden(java.awt.event.ComponentEvent e)
- Specified by:
componentHidden in interface java.awt.event.ComponentListener
initializeSize
protected void initializeSize()