| java.lang.Object net.mygwt.ui.client.widget.Layout net.mygwt.ui.client.widget.layout.FillLayout
FillLayout | public class FillLayout extends Layout (Code) | | FillLayout lays out widgets in a single row or column, forcing
them to be the same size.
|
Constructor Summary | |
public | FillLayout() Creates a new layout instance. | public | FillLayout(int margin) Creates a new instance with the given margin. |
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 number of pixels between the edge of one cell and the edge of its
neighbouring cell. | public void | setType(int type) Sets how widgets will be positioned within the layout. |
FillLayout | public FillLayout()(Code) | | Creates a new layout instance.
|
FillLayout | public FillLayout(int margin)(Code) | | Creates a new instance with the given margin.
Parameters: margin - the margin in pixels |
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 in pixels |
setSpacing | public void setSpacing(int spacing)(Code) | | Sets the number of pixels between the edge of one cell and the edge of its
neighbouring cell. The default value is 0.
Parameters: spacing - the spacing in pixels. |
setType | public void setType(int type)(Code) | | Sets how widgets will be positioned within the layout. The default value is
HORIZONTAL.
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)
|
|
|