public class ComponentLocationProperty extends com.github.leanframeworks.propertiesframework.base.property.AbstractReadableWritableProperty<Point>
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) |
addChangeListener, getChangeListeners, isInhibited, isNotifyingListeners, maybeNotifyListeners, removeChangeListener, setInhibitedpublic ComponentLocationProperty(Component component)
component - Component whose location property is to be tracked.public void dispose()
dispose in interface com.github.leanframeworks.propertiesframework.api.common.Disposabledispose in class com.github.leanframeworks.propertiesframework.base.property.AbstractReadableProperty<Point>Disposable.dispose()public Point getValue()
ReadableProperty.getValue()public void setValue(Point value)
WritableProperty.setValue(Object)Copyright © 2017. All rights reserved.