Package VASSAL.preferences
Class VisibilityOption
java.lang.Object
VASSAL.configure.Configurer
VASSAL.preferences.PositionOption
VASSAL.preferences.VisibilityOption
- All Implemented Interfaces:
ComponentListener
,EventListener
public class VisibilityOption extends PositionOption
A Preferences option controlling the visibility of a window
-
Field Summary
Fields inherited from class VASSAL.preferences.PositionOption
bounds, defaultValue, key, previousBounds, theFrame
Fields inherited from class VASSAL.configure.Configurer
changeSupport, frozen, name, NAME_PROPERTY, noUpdate, value
-
Constructor Summary
Constructors Constructor Description VisibilityOption(String key, Window f)
-
Method Summary
Modifier and Type Method Description void
componentHidden(ComponentEvent e)
void
componentShown(ComponentEvent e)
String
getValueString()
void
setValue(String in)
Set the Object value from a StringMethods inherited from class VASSAL.preferences.PositionOption
componentMoved, componentResized, getControls, getValue, setFrameBounds, setValue
Methods inherited from class VASSAL.configure.Configurer
addPropertyChangeListener, fireUpdate, getKey, getName, isFrozen, removePropertyChangeListener, setFrozen, setName
-
Constructor Details
-
VisibilityOption
-
-
Method Details
-
componentShown
- Specified by:
componentShown
in interfaceComponentListener
- Overrides:
componentShown
in classPositionOption
-
componentHidden
- Specified by:
componentHidden
in interfaceComponentListener
- Overrides:
componentHidden
in classPositionOption
-
setValue
Description copied from class:Configurer
Set the Object value from a String- Overrides:
setValue
in classPositionOption
-
getValueString
- Overrides:
getValueString
in classPositionOption
- Returns:
- a String representation of the Object value
-