|
|||||||||
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.
Field Summary | |
---|---|
protected Style.HorizontalAlignment |
cellHorizontalAlign
|
protected java.util.List<java.util.List<java.lang.Boolean>> |
cells
|
protected Style.VerticalAlignment |
cellVerticalAlign
|
protected int |
currentColumn
|
protected int |
currentRow
|
protected com.google.gwt.dom.client.TableElement |
table
|
protected com.google.gwt.user.client.Element |
tbody
|
Fields inherited from class com.extjs.gxt.ui.client.widget.Layout |
---|
activeItem, componentStyleName, container, monitorResize, renderHidden, target, targetStyleName |
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. |
protected com.google.gwt.user.client.Element |
getNextCell(Component widget)
|
protected int[] |
getNextNonSpan(int colIndex,
int rowIndex)
|
protected El |
getRow(int index)
|
java.lang.String |
getTableStyle()
Returns the table style. |
java.lang.String |
getWidth()
Returns the table's width. |
protected boolean |
isValidParent(com.google.gwt.user.client.Element elem,
com.google.gwt.user.client.Element parent)
|
protected void |
onLayout(Container<?> container,
El target)
|
protected void |
renderComponent(Component component,
int index,
El target)
|
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) . |
protected void |
setupList(int rowIndex)
|
void |
setWidth(java.lang.String width)
Sets the table's width. |
Methods inherited from class com.extjs.gxt.ui.client.widget.Layout |
---|
applyMargins, applyPadding, callLayout, fly, fly, getExtraStyle, getLayoutData, getResizeDelay, getSideMargins, initTarget, isLayoutExecuted, isLayoutNeeded, isRenderHidden, isRunning, layout, layoutContainer, onAdd, onComponentHide, onComponentShow, onRemove, onResize, renderAll, setBounds, setContainer, setExtraStyle, setLayoutData, setLayoutNeeded, setLayoutOnChange, setPosition, setRenderHidden, setResizeDelay, setSize |
Methods inherited from class com.extjs.gxt.ui.client.event.BaseObservable |
---|
addListener, callListener, fireEvent, fireEvent, getFiresEvents, getListeners, hasActiveEvent, hasListeners, hasListeners, removeAllListeners, removeListener, setFiresEvents |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected com.google.gwt.dom.client.TableElement table
protected com.google.gwt.user.client.Element tbody
protected int currentColumn
protected int currentRow
protected Style.HorizontalAlignment cellHorizontalAlign
protected Style.VerticalAlignment cellVerticalAlign
protected java.util.List<java.util.List<java.lang.Boolean>> cells
Constructor Detail |
---|
public TableLayout()
public TableLayout(int columns)
columns
- the number of columnsMethod 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 widthprotected com.google.gwt.user.client.Element getNextCell(Component widget)
protected int[] getNextNonSpan(int colIndex, int rowIndex)
protected void setupList(int rowIndex)
protected El getRow(int index)
protected boolean isValidParent(com.google.gwt.user.client.Element elem, com.google.gwt.user.client.Element parent)
isValidParent
in class Layout
protected void onLayout(Container<?> container, El target)
onLayout
in class Layout
protected void renderComponent(Component component, int index, El target)
renderComponent
in class Layout
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |