public class ComponentLocationProperty extends com.google.code.validationframework.base.property.AbstractReadableWritableProperty<Point,Point> implements com.google.code.validationframework.api.common.Disposable
Component (possibly a Window),
relatively to its parent.
It is possible to control the location of the component by setting the value of this property or by calling the
Component.setLocation(Point) method of that component.
However, note that the layout manager of the parent container may also modify the location of the component.
Note that changing the X or Y coordinate of the Point object directly will have no effect on this property.
It is therefore not advised to do so.
Finally note that null values are not supported by this property.| Constructor and Description |
|---|
ComponentLocationProperty(Component component)
Constructor specifying the component for which the property applies.
|
| Modifier and Type | Method and Description |
|---|---|
void |
dispose() |
Point |
getValue() |
void |
setValue(Point value) |
addValueChangeListener, getValueChangeListeners, isInhibited, isNotifyingListeners, maybeNotifyListeners, removeValueChangeListener, setInhibitedpublic ComponentLocationProperty(Component component)
component - Component whose location property is to be tracked.public void dispose()
dispose in interface com.google.code.validationframework.api.common.DisposableDisposable.dispose()public Point getValue()
getValue in interface com.google.code.validationframework.api.property.ReadableProperty<Point>ReadableProperty.getValue()Copyright © 2015. All Rights Reserved.