|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.google.gwt.user.client.ui.Panel
com.google.gwt.user.client.ui.HTMLTable
com.google.gwt.user.client.ui.FlexTable
A flexible table that creates cells on demand. It can be jagged (that is, each row can contain a different number of cells) and individual cells can be set to span multiple rows or columns.
code
| Nested Class Summary | |
class |
FlexTable.FlexCellFormatter
FlexTable-specific implementation of CellFormatter. |
| Nested classes inherited from class com.google.gwt.user.client.ui.HTMLTable |
HTMLTable.CellFormatter, HTMLTable.RowFormatter |
| Field Summary |
| Fields inherited from class java.lang.Object |
typeId, typeName |
| Constructor Summary | |
FlexTable()
|
|
| Method Summary | |
void |
addCell(int row)
Appends a cell to the specified row. |
int |
getCellCount(int row)
Gets the number of cells on a given row. |
FlexTable.FlexCellFormatter |
getFlexCellFormatter()
Explicitly gets the FlexTable.FlexCellFormatter. |
int |
getRowCount()
Gets the number of rows |
void |
insertCell(int row,
int column)
Inserts a new cell into the specified row. |
int |
insertRow(int beforeRow)
Inserts a new row into the table. |
protected void |
prepareCell(int row,
int column)
Ensure that the cell exists. |
protected void |
prepareRow(int row)
Ensure that the row exists. |
void |
removeCell(int row,
int col)
Removes the specified cell from the table. |
void |
removeCells(int row,
int column,
int num)
Removes a number of cells from a row in the table. |
void |
removeRow(int row)
Removes the specified row from the table. |
| Methods inherited from class com.google.gwt.user.client.ui.HTMLTable |
add, addTableListener, checkCellBounds, checkRowBounds, clear, clearCell, computeKey, createCell, getBodyElement, getCellFormatter, getCellPadding, getCellSpacing, getDOMCellCount, getDOMRowCount, getHTML, getRowFormatter, getText, getWidget, insertCells, internalClearCell, isCellPresent, iterator, onBrowserEvent, remove, removeTableListener, setBorderWidth, setCellFormatter, setCellPadding, setCellSpacing, setHTML, setRowFormatter, setText, setWidget |
| Methods inherited from class com.google.gwt.user.client.ui.Panel |
adopt, disown, onAttach, onDetach |
| Methods inherited from class com.google.gwt.user.client.ui.Widget |
getParent, isAttached, onLoad |
| Methods inherited from class com.google.gwt.user.client.ui.UIObject |
addStyleName, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleName, isVisible, isVisible, removeStyleName, setElement, setHeight, setPixelSize, setSize, setStyleName, setStyleName, setVisible, setVisible, setWidth, sinkEvents, toString, unsinkEvents |
| Methods inherited from class java.lang.Object |
equals, finalize, hashCode |
| Constructor Detail |
public FlexTable()
| Method Detail |
public void addCell(int row)
row - the row to which the new cell will be added
IndexOutOfBoundsExceptionpublic int getCellCount(int row)
getCellCount in class HTMLTablerow - the row whose cells are to be counted
IndexOutOfBoundsExceptionpublic FlexTable.FlexCellFormatter getFlexCellFormatter()
FlexTable.FlexCellFormatter. The results of
HTMLTable.getCellFormatter() may also be downcast to a
FlexTable.FlexCellFormatter.
public int getRowCount()
getRowCount in class HTMLTable
public void insertCell(int row,
int column)
HTMLTable
insertCell in class HTMLTablerow - the row into which the new cell will be insertedcolumn - the column before which the cell will be insertedpublic int insertRow(int beforeRow)
HTMLTable
insertRow in class HTMLTablebeforeRow - the index before which the new row will be inserted
public void removeCell(int row,
int col)
HTMLTable
removeCell in class HTMLTablerow - the row of the cell to removecol - the column of cell to remove
public void removeCells(int row,
int column,
int num)
row - the row of the cells to be removedcolumn - the column of the first cell to be removednum - the number of cells to be removed
IndexOutOfBoundsExceptionpublic void removeRow(int row)
HTMLTable
removeRow in class HTMLTablerow - the index of the row to be removed
protected void prepareCell(int row,
int column)
prepareCell in class HTMLTablerow - the row to prepare.column - the column to prepare.
IndexOutOfBoundsException - if the row is negativeprotected void prepareRow(int row)
prepareRow in class HTMLTablerow - The row to prepare.
IndexOutOfBoundsException - if the row is negative
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||