|
||||||||||
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.widgetideas.table.client.overrides.HTMLTable
com.google.gwt.widgetideas.table.client.overrides.FlexTable
public class FlexTable
This class should replace the actual class of the same name. TODO: Incorporate changes into actual class.
Nested Class Summary | |
---|---|
class |
FlexTable.FlexCellFormatter
FlexTable-specific implementation of HTMLTable.CellFormatter . |
Nested classes/interfaces inherited from class com.google.gwt.widgetideas.table.client.overrides.HTMLTable |
---|
HTMLTable.CellFormatter, HTMLTable.ColumnFormatter, HTMLTable.RowFormatter, HTMLTable.WidgetMapper |
Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject |
---|
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.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. |
protected void |
addCells(int row,
int num)
Add cells to the specified row. |
int |
getCellCount(int row)
Gets the number of cells on a given row. |
int |
getColumnIndex(int row,
int column)
Gets the overall column index of this cell as if this table were a grid, as determined by the rowspan and colspan of other cells in the table. |
FlexTable.FlexCellFormatter |
getFlexCellFormatter()
Explicitly gets the FlexTable.FlexCellFormatter . |
int |
getRowCount()
Gets the number of rows. |
com.google.gwt.user.client.Element |
insertCell(int beforeRow,
int beforeColumn)
Inserts a cell into the FlexTable. |
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. |
void |
removeCell(int row,
int column)
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.widgetideas.table.client.overrides.HTMLTable |
---|
addTableListener, checkCellBounds, checkRowBounds, cleanCell, clear, clearAll, clearCell, createCell, getBodyElement, getCellContainer, getCellContainer, getCellFormatter, getCellPadding, getCellSpacing, getColumnFormatter, getDOMCellCount, getDOMCellCount, getDOMRowCount, getDOMRowCount, getEventTargetCell, getEventTargetRow, getHTML, getRowFormatter, getRowIndex, getText, getWidget, getWidgetMap, insertCells, internalClearCell, isCellPresent, iterator, onBrowserEvent, prepareColumn, remove, removeTableListener, setBodyElement, setBorderWidth, setCellFormatter, setCellPadding, setCellSpacing, setClearText, setColumnFormatter, setElement, setHTML, setRowFormatter, setText, setWidget |
Methods inherited from class com.google.gwt.user.client.ui.Panel |
---|
add, adopt, adopt, disown, doAttachChildren, doDetachChildren, onLoad, onUnload, orphan |
Methods inherited from class com.google.gwt.user.client.ui.Widget |
---|
getParent, isAttached, onAttach, onDetach, removeFromParent, setElement |
Methods inherited from class com.google.gwt.user.client.ui.UIObject |
---|
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setHeight, setPixelSize, setSize, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkEvents, toString, unsinkEvents |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public FlexTable()
Method Detail |
---|
public void addCell(int row)
row
- the row to which the new cell will be added
java.lang.IndexOutOfBoundsException
public int getCellCount(int row)
getCellCount
in class HTMLTable
row
- the row whose cells are to be counted
java.lang.IndexOutOfBoundsException
public int getColumnIndex(int row, int column)
row
- the cell's rowcolumn
- the cell's column
java.lang.IndexOutOfBoundsException
public 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 com.google.gwt.user.client.Element insertCell(int beforeRow, int beforeColumn)
insertCell
in class HTMLTable
beforeRow
- the cell's rowbeforeColumn
- the cell's column
public int insertRow(int beforeRow)
insertRow
in class HTMLTable
beforeRow
- the row to insert
public void removeCell(int row, int column)
removeCell
in class HTMLTable
row
- the row of the cell to removecolumn
- the column of cell to remove
java.lang.IndexOutOfBoundsException
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.IndexOutOfBoundsException
public void removeRow(int row)
HTMLTable
removeRow
in class HTMLTable
row
- the index of the row to be removedprotected void addCells(int row, int num)
row
- the row to affectnum
- the number of cells to addprotected void prepareCell(int row, int column)
prepareCell
in class HTMLTable
row
- the row to prepare.column
- the column to prepare.
java.lang.IndexOutOfBoundsException
- if the row is negativeprotected void prepareRow(int row)
prepareRow
in class HTMLTable
row
- The row to prepare.
java.lang.IndexOutOfBoundsException
- if the row is negative
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |