protected class AbstractUiWidgetNative.SizeImpl extends AbstractSize
Length
values) of this widget.Modifier and Type | Field and Description |
---|---|
private Length[] |
lengthValues |
Constructor and Description |
---|
SizeImpl()
The constructor.
|
Modifier and Type | Method and Description |
---|---|
private void |
apply(UiWidgetAdapter adapter) |
double |
getHeightInPixel()
This method gets the height of this object in pixels.
|
Length |
getLength(LengthProperty property)
This method gets the
Length for the given LengthProperty of this object. |
double |
getWidthInPixel()
This method gets the width of this object in pixels.
|
void |
setLength(LengthProperty property,
Length value)
This method sets the specified
length of this object. |
getHeight, getMaximumHeight, getMaximumWidth, getMinimumHeight, getMinimumWidth, getWidth, setHeight, setHeightInPercent, setHeightInPixel, setMaximumHeight, setMaximumSize, setMaximumWidth, setMinimumHeight, setMinimumSize, setMinimumWidth, setSize, setSize, setWidth, setWidthInPercent, setWidthInPixel
private Length[] lengthValues
getLength(LengthProperty)
public double getWidthInPixel()
int
value. However, to be compatible with
Length.getAmount()
and with some underlying native toolkits we
use double
to prevent potential information loss.public double getHeightInPixel()
int
value. However, to be compatible with
Length.getAmount()
and with some underlying native toolkits we
use double
to prevent potential information loss.public Length getLength(LengthProperty property)
Length
for the given LengthProperty
of this object. getLength
(LengthProperty.WIDTH
)
will return the same result as AttributeReadSize.getWidth()
. Unlike AttributeReadSize
this method provides access to additional properties such as e.g. LengthProperty.MIN_WIDTH
or
LengthProperty.MAX_HEIGHT
.property
- is the LengthProperty
identifying the actual property to get.Length
. Will be Length.ZERO
if undefined (NOT set).public void setLength(LengthProperty property, Length value)
length
of this object. setLength
(LengthProperty.WIDTH
, value)
will return the same result as setWidth
(value)
.property
- is the LengthProperty
identifying the actual property to set.value
- is the new length
to set.private void apply(UiWidgetAdapter adapter)
adapter
- is the UiWidgetAdapter
where to apply all size/length properties.Copyright © 2001–2016 mmm-Team. All rights reserved.