private class UiWidgetAdapterGwtTree.TreeNodeAdapter.SizeImpl extends AbstractSize
Size
for UiWidgetAdapterGwtTree.TreeNodeAdapter
.Modifier | Constructor and Description |
---|---|
private |
SizeImpl() |
Modifier and Type | Method and Description |
---|---|
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 length)
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
public void setLength(LengthProperty property, Length length)
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.length
- is the new length
to set.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 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.Copyright © 2001–2014 mmm-Team. All rights reserved.