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, theFrameFields 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 voidcomponentHidden(ComponentEvent e)voidcomponentShown(ComponentEvent e)StringgetValueString()voidsetValue(String in)Set the Object value from a StringMethods inherited from class VASSAL.preferences.PositionOption
componentMoved, componentResized, getControls, getValue, setFrameBounds, setValueMethods inherited from class VASSAL.configure.Configurer
addPropertyChangeListener, fireUpdate, getKey, getName, isFrozen, removePropertyChangeListener, setFrozen, setName
-
Constructor Details
-
VisibilityOption
-
-
Method Details
-
componentShown
- Specified by:
componentShownin interfaceComponentListener- Overrides:
componentShownin classPositionOption
-
componentHidden
- Specified by:
componentHiddenin interfaceComponentListener- Overrides:
componentHiddenin classPositionOption
-
setValue
Description copied from class:ConfigurerSet the Object value from a String- Overrides:
setValuein classPositionOption
-
getValueString
- Overrides:
getValueStringin classPositionOption- Returns:
- a String representation of the Object value
-