| java.lang.Object com.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
FlexTable | public class FlexTable extends HTMLTable (Code) | | 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.
Example
|
Inner Class :public class FlexCellFormatter extends CellFormatter | |
Method Summary | |
public void | addCell(int row) Appends a cell to the specified row. | public int | getCellCount(int row) Gets the number of cells on a given row. | public FlexCellFormatter | getFlexCellFormatter() Explicitly gets the
FlexCellFormatter . | public int | getRowCount() Gets the number of rows. | public void | insertCell(int beforeRow, int beforeColumn) Inserts a cell into the FlexTable. | public int | insertRow(int beforeRow) Inserts a row into the FlexTable. | protected void | prepareCell(int row, int column) Ensure that the cell exists. | protected void | prepareRow(int row) Ensure that the row exists. | public void | removeCell(int row, int col) | public void | removeCells(int row, int column, int num) Removes a number of cells from a row in the table. | public void | removeRow(int row) |
FlexTable | public FlexTable()(Code) | | |
addCell | public void addCell(int row)(Code) | | Appends a cell to the specified row.
Parameters: row - the row to which the new cell will be added throws: IndexOutOfBoundsException - |
getCellCount | public int getCellCount(int row)(Code) | | Gets the number of cells on a given row.
Parameters: row - the row whose cells are to be counted the number of cells present throws: IndexOutOfBoundsException - |
getFlexCellFormatter | public FlexCellFormatter getFlexCellFormatter()(Code) | | Explicitly gets the
FlexCellFormatter . The results of
HTMLTable.getCellFormatter may also be downcast to a
FlexCellFormatter .
the FlexTable's cell formatter |
getRowCount | public int getRowCount()(Code) | | Gets the number of rows.
number of rows |
insertCell | public void insertCell(int beforeRow, int beforeColumn)(Code) | | Inserts a cell into the FlexTable.
Parameters: beforeRow - the cell's row Parameters: beforeColumn - the cell's column |
insertRow | public int insertRow(int beforeRow)(Code) | | Inserts a row into the FlexTable.
Parameters: beforeRow - the row to insert |
prepareCell | protected void prepareCell(int row, int column)(Code) | | Ensure that the cell exists.
Parameters: row - the row to prepare. Parameters: column - the column to prepare. throws: IndexOutOfBoundsException - if the row is negative |
prepareRow | protected void prepareRow(int row)(Code) | | Ensure that the row exists.
Parameters: row - The row to prepare. throws: IndexOutOfBoundsException - if the row is negative |
removeCells | public void removeCells(int row, int column, int num)(Code) | | Removes a number of cells from a row in the table.
Parameters: row - the row of the cells to be removed Parameters: column - the column of the first cell to be removed Parameters: num - the number of cells to be removed throws: IndexOutOfBoundsException - |
removeRow | public void removeRow(int row)(Code) | | |
Methods inherited from com.google.gwt.user.client.ui.HTMLTable | public void addTableListener(TableListener listener)(Code)(Java Doc) protected void checkCellBounds(int row, int column)(Code)(Java Doc) protected void checkRowBounds(int row)(Code)(Java Doc) public void clear()(Code)(Java Doc) public boolean clearCell(int row, int column)(Code)(Java Doc) protected Element createCell()(Code)(Java Doc) protected Element getBodyElement()(Code)(Java Doc) abstract public int getCellCount(int row)(Code)(Java Doc) public CellFormatter getCellFormatter()(Code)(Java Doc) public int getCellPadding()(Code)(Java Doc) public int getCellSpacing()(Code)(Java Doc) public ColumnFormatter getColumnFormatter()(Code)(Java Doc) native protected int getDOMCellCount(Element tableBody, int row)(Code)(Java Doc) protected int getDOMCellCount(int row)(Code)(Java Doc) protected int getDOMRowCount()(Code)(Java Doc) native protected int getDOMRowCount(Element elem)(Code)(Java Doc) protected Element getEventTargetCell(Event event)(Code)(Java Doc) public String getHTML(int row, int column)(Code)(Java Doc) abstract public int getRowCount()(Code)(Java Doc) public RowFormatter getRowFormatter()(Code)(Java Doc) public String getText(int row, int column)(Code)(Java Doc) public Widget getWidget(int row, int column)(Code)(Java Doc) protected void insertCell(int row, int column)(Code)(Java Doc) protected void insertCells(int row, int column, int count)(Code)(Java Doc) protected int insertRow(int beforeRow)(Code)(Java Doc) protected boolean internalClearCell(Element td, boolean clearInnerHTML)(Code)(Java Doc) public boolean isCellPresent(int row, int column)(Code)(Java Doc) public Iterator<Widget> iterator()(Code)(Java Doc) public void onBrowserEvent(Event event)(Code)(Java Doc) abstract protected void prepareCell(int row, int column)(Code)(Java Doc) protected void prepareColumn(int column)(Code)(Java Doc) abstract protected void prepareRow(int row)(Code)(Java Doc) public boolean remove(Widget widget)(Code)(Java Doc) protected void removeCell(int row, int column)(Code)(Java Doc) protected void removeRow(int row)(Code)(Java Doc) public void removeTableListener(TableListener listener)(Code)(Java Doc) public void setBorderWidth(int width)(Code)(Java Doc) protected void setCellFormatter(CellFormatter cellFormatter)(Code)(Java Doc) public void setCellPadding(int padding)(Code)(Java Doc) public void setCellSpacing(int spacing)(Code)(Java Doc) protected void setColumnFormatter(ColumnFormatter formatter)(Code)(Java Doc) public void setHTML(int row, int column, String html)(Code)(Java Doc) protected void setRowFormatter(RowFormatter rowFormatter)(Code)(Java Doc) public void setText(int row, int column, String text)(Code)(Java Doc) public void setWidget(int row, int column, Widget widget)(Code)(Java Doc)
|
|
|