| java.lang.Object net.mygwt.ui.client.widget.Layout net.mygwt.ui.client.widget.layout.FlowLayout
FlowLayout | public class FlowLayout extends Layout (Code) | | Layout that positions its children using normal HTML layout
behavior. The margin and spacing can be specified. The layout method will be
called to any child widgets that are containers. Recalculate will be called
on any child widgets that are components.
|
Constructor Summary | |
public | FlowLayout() Creates a new layout instance. | public | FlowLayout(int margin) Creates a new layout instance with the given margin. |
Method Summary | |
public int | getMargin() Returns the margin. | public int | getSpacing() Returns the spacing value. | protected void | onLayout(WidgetContainer container, Element target) | protected void | renderWidget(Widget widget, int index, 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. |
FlowLayout | public FlowLayout()(Code) | | Creates a new layout instance.
|
FlowLayout | public FlowLayout(int margin)(Code) | | Creates a new layout instance with the given margin.
Parameters: margin - the margin |
getMargin | public int getMargin()(Code) | | Returns the margin.
the margin |
getSpacing | public int getSpacing()(Code) | | Returns the spacing value.
the spacing in pixels |
renderWidget | protected void renderWidget(Widget widget, int index, Element target)(Code) | | |
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 |
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)
|
|
|