| java.lang.Object net.mygwt.ui.client.widget.Layout net.mygwt.ui.client.widget.layout.TableLayout
TableLayout | public class TableLayout extends Layout (Code) | | TableLayout allows you to easily render content into an HTML
table. The total number of columns can be specified.
Rather than explicitly creating and nesting rows and columns as you would in
HTML, you simply specify the total column count and start adding widgets in
their natural order from left to right, top to bottom. The layout will
automatically figure out, based on the column count how to position each
panel within the table.
|
Constructor Summary | |
public | TableLayout() Creates a new table layout. | public | TableLayout(int columns) Creates a new table layout. |
cellPadding | int cellPadding(Code) | | |
cellSpacing | int cellSpacing(Code) | | |
TableLayout | public TableLayout()(Code) | | Creates a new table layout.
|
TableLayout | public TableLayout(int columns)(Code) | | Creates a new table layout.
Parameters: columns - the number of columns |
getBorder | public int getBorder()(Code) | | Returns the border.
the border |
getCellPadding | public int getCellPadding()(Code) | | Returns the table's cell padding.
the cell padding |
getCellSpacing | public int getCellSpacing()(Code) | | Returns the table's cell spacing.
the cell spacing |
getColumns | public int getColumns()(Code) | | Returns the number of columns.
the number of columns |
getNextCell | protected Element getNextCell(Widget widget)(Code) | | |
getRow | protected Element getRow(int index)(Code) | | |
isValidParent | protected boolean isValidParent(Element elem, Element parent)(Code) | | |
renderWidget | protected void renderWidget(Widget widget, int index, Element target)(Code) | | |
setBorder | public void setBorder(int border)(Code) | | Sets the table's border property. Default value is 0.
Parameters: border - the border in pixels |
setCellPadding | public void setCellPadding(int cellPadding)(Code) | | Sets the table's cellpadding property. Default value is 0.
Parameters: cellPadding - the cell padding |
setCellSpacing | public void setCellSpacing(int cellSpacing)(Code) | | Parameters: cellSpacing - |
setColumns | public void setColumns(int columns)(Code) | | Sets the number of columns. Default value is 1.
Parameters: columns - the number of columns |
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)
|
|
|