Class PositionOption
java.lang.Object
VASSAL.configure.Configurer
VASSAL.preferences.PositionOption
- All Implemented Interfaces:
ComponentListener, EventListener
- Direct Known Subclasses:
VisibilityOption
-
Nested Class Summary
Nested classes/interfaces inherited from class Configurer
Configurer.ContextLevelModifier and TypeClassDescriptionstatic enumThe ContextLevel of a Configurer defines the level that it is defined at. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Rectangleprotected Rectanglestatic final Stringprotected Rectangleprotected WindowFields inherited from class Configurer
changeSupport, context, contextLevel, frozen, hint, LIST_ENTRY_HIGHLIGHT_COLOR, name, NAME_PROPERTY, noUpdate, valueModifier and TypeFieldDescriptionprotected PropertyChangeSupportprotected AbstractBuildableprotected Configurer.ContextLevelprotected booleanWhen frozen is true, setting the value programmatically will not result in a PropertyChangeEvent being firedprotected StringA Hint to be displayed in an empty fieldstatic final ColorDefault Highlight Color for Configurable Listsprotected StringA String that provides a short description of the property to the userstatic final Stringprotected booleanWhen noUpdate is true, setting the value programmatically will not result in an update of the GUI Componentprotected ObjectThe value -
Constructor Summary
ConstructorsConstructorDescriptionPositionOption(String key, Window f) PositionOption(String key, Window f, Rectangle defaultValue) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidvoidGUI interface for setting the option in an editing windowgetValue()The Object value May be null if the Object has not been initializedprotected voidvoidSet the Object valuevoidSet the Object value from a StringMethods inherited from class Configurer
addFocusListener, addPropertyChangeListener, fireUpdate, getContext, getContextLevel, getHint, getKey, getName, getScreenSize, initCustomControls, isFrozen, isHighlighted, isPieceContext, removeFocusListener, removePropertyChangeListener, repack, repack, requestFocus, setContext, setContext, setContext, setContextLevel, setEnabled, setFrozen, setHighlighted, setHint, setHintKey, setLabelVisibile, setLabelVisible, setNameModifier and TypeMethodDescriptionvoidaddFocusListener(FocusListener listener) Add a FocusListener to the Swing Components that make up this Configurer.voidAdd a listener to be notified when the Object state changesvoidFire a PropertyChangeEvent as if the value had been set from nullGet the Context for this ConfigurergetHint()Return the current hint StringgetKey()Unique identifiergetName()Plain English description of the Objectprotected DimensionReturn the current screen size for use by List type configurers to allow them to take up maximum screen real estate if needed.voidinitCustomControls(JDialog d, Configurable target) Initialize any custom controls / keystrokesbooleanisFrozen()booleanReturn the current highlighted statusbooleanvoidremoveFocusListener(FocusListener listener) Remove a FocusListener from the Swing Components that make up this Configurer.voidprotected voidrepack()Repack the current configurerprotected voidRepack a dialog or windowvoidMove the cursor to the first input field of this ConfigurervoidsetContext(AbstractBuildable context) Set the Context for this Configurer to the first ancestor that is of type GameModule or Map NOTE: The ContextLevel may already have been preset by the ConfigureFactory when the Configurer was created.voidsetContext(Buildable context) voidsetContext(Configurable context) voidsetContextLevel(Configurer.ContextLevel contextLevel) voidsetEnabled(boolean enabled) Enable or Disable the action of this configurer/voidsetFrozen(boolean val) If true, then don't fire PropertyChangeEvents when the value is resetvoidsetHighlighted(boolean highlighted) Set the highlighted status of this configurer.voidSet the Hint StringvoidsetHintKey(String hintKey) Set the Hint String via a I18n keyvoidsetLabelVisibile(boolean visible) Deprecated, for removal: This API element is subject to removal in a future version.voidsetLabelVisible(boolean visible) Show/Hide the internal label maintained by this Configurer.void
-
Field Details
-
key
- See Also:
-
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()
-
Configurer.setLabelVisible(boolean)instead.