| java.lang.Object de.jwic.base.Control de.jwic.base.ControlContainer de.jwic.controls.layout.TableLayoutContainer
TableLayoutContainer | public class TableLayoutContainer extends ControlContainer (Code) | | The TableLayoutContainer is a special form of a IControlContainer.
This Container follows a simple layoutstructure in form of a table.
The Controls are added in sequence and are displayed in the given columns partition.
The columns can be set through constructor or setter.
TableLayoutContainer.vtl is the template for this container.
The template simply uses table tags to form the layout of the control.
This container also has its own layoutdata like alignment, width, height and border.
author: Ronny Pfretzschner author: Florian Lippisch |
TableLayoutContainer | public TableLayoutContainer(IControlContainer container)(Code) | | Constructs a new TableLayoutContainer with a default name.
|
TableLayoutContainer | public TableLayoutContainer(IControlContainer container, String name)(Code) | | Constructs a new TableLayoutContainer with the specified name.
|
TableLayoutContainer | public TableLayoutContainer(IControlContainer container, String name, int columnCount)(Code) | | Constructor.
Parameters: cols - Amount of columns, which the Container will be devided in. |
getBorderSize | public int getBorderSize()(Code) | | Returns the borderSize. |
getCSSClass | public String getCSSClass()(Code) | | Returns the sCSSClass. |
getCellPadding | public int getCellPadding()(Code) | | Returns the cellPadding. |
getCellSpacing | public int getCellSpacing()(Code) | | Returns the cellSpacing. |
getCells | public Cell[] getCells(Row row)(Code) | | Returns the cells to the specified row.
Parameters: row - |
getChildNames | public List getChildNames()(Code) | | Returns the list of childs.
|
getColumnCount | public int getColumnCount()(Code) | | Returns the cols amount as an int.
int The amount of columns |
getHeight | public String getHeight()(Code) | | Returns the height. |
getLayoutData | public TableData getLayoutData(String controlName)(Code) | | Get the TableData of a specific name of a control.
null is only returned, if the controls name is belonging to a GridLayoutContainer.
Parameters: controlName - GridData |
getRows | public Row[] getRows()(Code) | | Returns the rows required to render this table.
|
layout | public void layout()(Code) | | Calculates the layout of the table.
|
removeControl | public void removeControl(String controlName)(Code) | | Removes a control from the container with the given controlName.
Parameters: String - controlName |
setAlign | public void setAlign(String align)(Code) | | Parameters: align - The align to set. |
setBorderSize | public void setBorderSize(int borderSize)(Code) | | The size of the border. If set to -1, the border property will
not be specified on the table.
Parameters: borderSize - The borderSize to set. |
setCSSClass | public void setCSSClass(String cssClass)(Code) | | Parameters: class1 - The sCSSClass to set. |
setCellPadding | public void setCellPadding(int cellPadding)(Code) | | Set the cellpadding property. If set to -1, the cellpadding
will not be specified on the table. (default)
Parameters: cellPadding - The cellPadding to set. |
setCellSpacing | public void setCellSpacing(int cellSpacing)(Code) | | Set the cellspacing property. If set to -1, the cellspacing
will not be specified on the table. (default)
Parameters: cellSpacing - The cellSpacing to set. |
setColWidth | public void setColWidth(int col, int width)(Code) | | Set the width of a specified column. Set a column width to -1 if you do not want
to specify a size.
Parameters: col - Parameters: width - |
setColumnCount | public void setColumnCount(int cols)(Code) | | Sets the amount of available columns of the GridLayoutContainer.
The default value is 1. Do not use negative values. An IllegalArgumentException
is thrown in that case.
Parameters: cols - The amount of columns of the GridLayoutContainer |
setHeight | public void setHeight(String height)(Code) | | Parameters: height - The height to set. |
setLayoutData | public void setLayoutData(Control control, TableData layoutData)(Code) | | Set the layout of a control inside of this container.
If null is used for the GridData and the Control is NOT a GridLayoutContainer,
a default GridData is set with left alignment.
GridLayoutContainers can also be added. In this case, use null for layoutData.
This is anyway the only possible setting, if you do not use null, null will be set automatically.
GridLayoutContainers should use their own layoutproperties.
Parameters: IControl - control The control, which will be added in proper sequence to the LayoutContainer Parameters: TableData - layoutData The layoutData of the specific control. null, if it is a GridLayoutContainer |
setWidth | public void setWidth(String width)(Code) | | Parameters: width - The width to set. |
unregisterControl | public void unregisterControl(Control control)(Code) | | |
|
|