java.lang.Object | |
↳ | com.google.gwt.layout.client.Layout.Layer |
This class is used to set the position and size of child elements.
Each child element has three values associated with each axis: {left, right, width} on the horizontal axis, and {top, bottom, height} on the vertical axis. Precisely two of three values may be set at a time, or the system will be over- or under-contrained. For this reason, the following methods are provided for setting these values:
setLeftRight(double, Style.Unit, double, Style.Unit)
setLeftWidth(double, Style.Unit, double, Style.Unit)
setRightWidth(double, Style.Unit, double, Style.Unit)
setTopBottom(double, Style.Unit, double, Style.Unit)
setTopHeight(double, Style.Unit, double, Style.Unit)
setBottomHeight(double, Style.Unit, double, Style.Unit)
By default, each layer is set to fill the entire parent (i.e., {left, top, right, bottom} = {0, 0, 0, 0}).
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Gets the container element associated with this layer.
| |||||||||||
Gets the user-data associated with this layer.
| |||||||||||
Sets the layer's bottom and height values.
| |||||||||||
Sets the child element's horizontal position within the layer.
| |||||||||||
Sets the child element's vertical position within the layer.
| |||||||||||
Sets the layer's left and right values.
| |||||||||||
Sets the layer's left and width values.
| |||||||||||
Sets the layer's right and width values.
| |||||||||||
Sets the layer's top and bottom values.
| |||||||||||
Sets the layer's top and height values.
| |||||||||||
Sets the layer's visibility.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Gets the container element associated with this layer.
This is the element that sits between the parent and child elements. It is normally necessary to operate on this element only when you need to modify CSS properties that are not directly modeled by the Layer class.
Gets the user-data associated with this layer.
Sets the layer's bottom and height values.
Sets the child element's horizontal position within the layer.
Sets the child element's vertical position within the layer.
Sets the layer's left and right values.
Sets the layer's left and width values.
Sets the layer's right and width values.
Sets the layer's top and bottom values.
Sets the layer's top and height values.
Sets the layer's visibility.