|
||||||||||
| 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
public class 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.
| Nested Class Summary | |
|---|---|
class |
FlexTable.FlexCellFormatter
FlexTable-specific implementation of HTMLTable.CellFormatter. |
| Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.HTMLTable |
|---|
HTMLTable.Cell, HTMLTable.CellFormatter, HTMLTable.ColumnFormatter, HTMLTable.RowFormatter |
| Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
UIObject.DebugIdImpl, UIObject.DebugIdImplEnabled |
| Field Summary |
|---|
| Fields inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
DEBUG_ID_PREFIX |
| 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 beforeRow,
int beforeColumn)
Inserts a cell into the FlexTable. |
int |
insertRow(int beforeRow)
Inserts a row into the FlexTable. |
void |
removeAllRows()
Remove all rows in this table. |
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 |
|---|
addClickHandler, addTableListener, clear, clear, clearCell, getCellForEvent, getCellFormatter, getCellPadding, getCellSpacing, getColumnFormatter, getHTML, getRowFormatter, getText, getWidget, isCellPresent, iterator, remove, removeTableListener, setBorderWidth, setCellPadding, setCellSpacing, setHTML, setText, setWidget |
| Methods inherited from class com.google.gwt.user.client.ui.Panel |
|---|
add |
| Methods inherited from class com.google.gwt.user.client.ui.Widget |
|---|
fireEvent, getLayoutData, getParent, isAttached, onBrowserEvent, removeFromParent, setLayoutData, sinkEvents |
| Methods inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleName, getStylePrimaryName, getTitle, isVisible, isVisible, removeStyleDependentName, removeStyleName, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, toString, unsinkEvents |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.google.gwt.event.shared.HasHandlers |
|---|
fireEvent |
| Constructor Detail |
|---|
public FlexTable()
| Method Detail |
|---|
public void addCell(int row)
row - the row to which the new cell will be added
java.lang.IndexOutOfBoundsExceptionpublic int getCellCount(int row)
getCellCount in class HTMLTablerow - the row whose cells are to be counted
java.lang.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 beforeRow,
int beforeColumn)
beforeRow - the cell's rowbeforeColumn - the cell's columnpublic int insertRow(int beforeRow)
beforeRow - the row to insert
public void removeAllRows()
public void removeCell(int row,
int col)
HTMLTable
row - 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
java.lang.IndexOutOfBoundsExceptionpublic void removeRow(int row)
HTMLTable
row - the index of the row to be removed
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||