public class ComponentSizeProperty extends com.github.leanframeworks.propertiesframework.base.property.AbstractReadableWritableProperty<Dimension>
Component (possibly a Window).
It is possible to control the size of the component by setting the value of this property or by calling the Component.setSize(Dimension) method of that component.
However, note that the layout manager of the parent container may also modify the size of the component.
Note that changing the width or height attribute of the Dimension 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.
Component.getSize(),
Component.setSize(Dimension)| Constructor and Description |
|---|
ComponentSizeProperty(Component component)
Constructor specifying the component for which the property applies.
|
| Modifier and Type | Method and Description |
|---|---|
void |
dispose() |
Dimension |
getValue() |
void |
setValue(Dimension value) |
addChangeListener, getChangeListeners, isInhibited, isNotifyingListeners, maybeNotifyListeners, removeChangeListener, setInhibitedpublic ComponentSizeProperty(Component component)
component - Component whose size 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<Dimension>Disposable.dispose()public Dimension getValue()
ReadableProperty.getValue()public void setValue(Dimension value)
WritableProperty.setValue(Object)Copyright © 2017. All rights reserved.