| java.lang.Object net.mygwt.ui.client.widget.Layout net.mygwt.ui.client.widget.layout.BorderLayout
BorderLayout | public class BorderLayout extends Layout (Code) | | A border layout lays out it children, arranging and resizing its widgets to
fit in five regions: north, south, east, west, and center. Each region may
contain no more than one widget, and is identified by a corresponding
constant: NORTH, SOUTH, EAST, WEST, and CENTER.
Note: Only regions containing a component can be resized.
|
Constructor Summary | |
public | BorderLayout() Creates a new border layout. |
BorderLayout | public BorderLayout()(Code) | | Creates a new border layout.
|
getMargin | public int getMargin()(Code) | | Returns the margin.
the margin in pixels |
getMinimumSize | public int getMinimumSize()(Code) | | Returns the minimum size.
the minimum size |
getSpacing | public int getSpacing()(Code) | | Returns the spacing.
the spacing in pixels |
setMargin | public void setMargin(int margin)(Code) | | Sets the number of pixels of indentation that will be placed along the
sides of the panel. Default value is 4.
Parameters: margin - the margin |
setMinimumSize | public void setMinimumSize(int minimumSize)(Code) | | Sets the minimum size of a region when resizing. Default value is 100.
Parameters: minimumSize - the new minimumSize |
setSpacing | public void setSpacing(int spacing)(Code) | | Sets the amount of spacing between regions. Default value is 4.
Parameters: spacing - the spacing in pixels |
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)
|
|
|