| java.lang.Object net.mygwt.ui.client.widget.Layout net.mygwt.ui.client.widget.layout.RowLayout
RowLayout | public class RowLayout extends Layout (Code) | | RowLayouts determine the size and position of the children of a
Container by placing them either in horizontal row or a
vertical column within the parent Container .
RowLayout aligns all widgets in one row if the type is set to horizontal, and
one column if it is set to vertical. Provides configurable margins and
spacing.
This layout is designed to work with containers with an explicit size and
will not render properly without a size.
|
Constructor Summary | |
public | RowLayout() Creates a new vertical row layout. | public | RowLayout(int type) Constructs a new row layout given the type. |
Method Summary | |
public int | getMargin() Returns the margin. | public int | getSpacing() Returns the spacing. | public int | getType() Returns the type. | protected void | onLayout(WidgetContainer container, Element target) | public void | setMargin(int margin) Sets the number of pixels of margin that will be placed along the edges of
the layout. | public void | setSpacing(int spacing) Sets the amount of space between widgets. | public void | setType(int type) Sets whether the layout places controls in rows or columns. |
RowLayout | public RowLayout()(Code) | | Creates a new vertical row layout.
|
RowLayout | public RowLayout(int type)(Code) | | Constructs a new row layout given the type.
Parameters: type - the type of row layout |
getMargin | public int getMargin()(Code) | | Returns the margin.
the margin |
getSpacing | public int getSpacing()(Code) | | Returns the spacing.
the spacing in pixels |
getType | public int getType()(Code) | | Returns the type.
the type |
setMargin | public void setMargin(int margin)(Code) | | Sets the number of pixels of margin that will be placed along the edges of
the layout. The default value is 0.
Parameters: margin - the margin |
setSpacing | public void setSpacing(int spacing)(Code) | | Sets the amount of space between widgets.
Parameters: spacing - the spacing value |
setType | public void setType(int type)(Code) | | Sets whether the layout places controls in rows or columns. The default
value is VERTICAL.
Valid values are:
- HORIZONTAL: Position the controls horizontally from left to right
- VERTICAL: Position the controls vertically from top to bottom
Parameters: type - the type |
Methods inherited from net.mygwt.ui.client.widget.Layout | protected boolean isValidParent(Element elem, Element parent)(Code)(Java Doc) public void layout(WidgetContainer container)(Code)(Java Doc) protected void onLayout(WidgetContainer container, Element target)(Code)(Java Doc) protected void renderAll(Container container, Element target)(Code)(Java Doc) protected void renderWidget(Widget widget, int index, Element target)(Code)(Java Doc) protected void setBounds(Widget w, int x, int y, int width, int height)(Code)(Java Doc) protected void setSize(Widget w, int width, int height)(Code)(Java Doc)
|
|
|