|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.extjs.gxt.ui.client.event.BaseObservable
com.extjs.gxt.ui.client.widget.Layout
com.extjs.gxt.ui.client.widget.layout.TableLayout
public class TableLayout
TableLayout allows you to easily render content into an HTML
table. The total number of columns can be specified.
| Constructor Summary | |
|---|---|
TableLayout()
Creates a new table layout. |
|
TableLayout(int columns)
Creates a new table layout. |
|
| Method Summary | |
|---|---|
int |
getBorder()
Returns the border width. |
Style.HorizontalAlignment |
getCellHorizontalAlign()
Returns the cell horizontal alignment. |
int |
getCellPadding()
Returns the table cell's padding. |
Style.VerticalAlignment |
getCellVerticalAlign()
Returns the cell's vertical alignment. |
int |
getColumns()
Returns the number of columns. |
java.lang.String |
getHeight()
Returns the table's height. |
boolean |
getInsertSpacer()
Returns true if spacers are being inserted. |
java.lang.String |
getTableStyle()
Returns the table style. |
java.lang.String |
getWidth()
Returns the table's width. |
void |
setBorder(int border)
Sets the table's border property (defaults to 0). |
void |
setCellHorizontalAlign(Style.HorizontalAlignment cellHorizontalAlign)
Sets the cell's horizontal alignment. |
void |
setCellPadding(int padding)
Sets the amount that will be applied to each table cell. |
void |
setCellSpacing(int spacing)
Sets the table's cell spacing. |
void |
setCellVerticalAlign(Style.VerticalAlignment cellVerticalAlign)
Sets the cell's vertical alignment. |
void |
setColumns(int columns)
Sets the number of columns (defaults to 1). |
void |
setHeight(java.lang.String height)
Sets the table's height. |
void |
setInsertSpacer(boolean insertSpacer)
True to insert a spacer cell into each row with 100% width so that all other cells are right aligned (defaults to false). |
void |
setTableStyle(java.lang.String tableStyle)
Custom CSS styles to be applied to the table in the format expected by El.applyStyles(java.lang.String). |
void |
setWidth(java.lang.String width)
Sets the table's width. |
| Methods inherited from class com.extjs.gxt.ui.client.widget.Layout |
|---|
getExtraStyle, getResizeDelay, isRenderHidden, layout, setContainer, setExtraStyle, setRenderHidden, setResizeDelay |
| Methods inherited from class com.extjs.gxt.ui.client.event.BaseObservable |
|---|
addListener, fireEvent, fireEvent, getFiresEvents, getListeners, hasActiveEvent, hasListeners, hasListeners, removeAllListeners, removeListener, setFiresEvents |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TableLayout()
public TableLayout(int columns)
columns - the number of columns| Method Detail |
|---|
public int getBorder()
public Style.HorizontalAlignment getCellHorizontalAlign()
public int getCellPadding()
public Style.VerticalAlignment getCellVerticalAlign()
public int getColumns()
public java.lang.String getHeight()
public boolean getInsertSpacer()
public java.lang.String getTableStyle()
public java.lang.String getWidth()
public void setBorder(int border)
border - the borderpublic void setCellHorizontalAlign(Style.HorizontalAlignment cellHorizontalAlign)
cellHorizontalAlign - the horizontal alignmentpublic void setCellPadding(int padding)
padding - the cell paddingpublic void setCellSpacing(int spacing)
spacing - the cell spacingpublic void setCellVerticalAlign(Style.VerticalAlignment cellVerticalAlign)
cellVerticalAlign - the vertical alignmentpublic void setColumns(int columns)
columns - the number of columnspublic void setHeight(java.lang.String height)
height - the table heightpublic void setInsertSpacer(boolean insertSpacer)
insertSpacer - true to add a spacerpublic void setTableStyle(java.lang.String tableStyle)
El.applyStyles(java.lang.String).
tableStyle - the table stylepublic void setWidth(java.lang.String width)
width - the table width
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||