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
           
 
Fields inherited from class VASSAL.configure.Configurer
changeSupport, frozen, name, NAME_PROPERTY, noUpdate, value
 
Constructor Summary
PositionOption(java.lang.String key, java.awt.Window f)
           
 
Method Summary
 void componentHidden(java.awt.event.ComponentEvent e)
           
 void componentMoved(java.awt.event.ComponentEvent e)
           
 void componentResized(java.awt.event.ComponentEvent e)
           
 void componentShown(java.awt.event.ComponentEvent e)
           
 java.awt.Component getControls()
          GUI interface for setting the option in an editing window
 java.lang.Object getValue()
          The Object value May be null if the Object has not been initialized
 java.lang.String getValueString()
           
protected  void initializeSize()
           
 void setValue(java.lang.Object o)
          Set the Object value
 void setValue(java.lang.String in)
          Set the Object value from a String
 
Methods inherited from class VASSAL.configure.Configurer
addPropertyChangeListener, fireUpdate, getKey, getName, isFrozen, setFrozen, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

key

public static java.lang.String key

theFrame

protected java.awt.Window theFrame

bounds

protected java.awt.Rectangle bounds
Constructor Detail

PositionOption

public PositionOption(java.lang.String key,
                      java.awt.Window f)
Method Detail

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()