public class FlexTable extends HTMLTable
Modifier and Type | Class and Description |
---|---|
class |
FlexTable.FlexCellFormatter
FlexTable-specific implementation of
HTMLTable.CellFormatter . |
HTMLTable.Cell, HTMLTable.CellFormatter, HTMLTable.ColumnFormatter, HTMLTable.RowFormatter
UIObject.DebugIdImpl, UIObject.DebugIdImplEnabled
HasWidgets.ForIsWidget
DEBUG_ID_PREFIX
Constructor and Description |
---|
FlexTable() |
Modifier and Type | Method and Description |
---|---|
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.
|
protected void |
prepareCell(int row,
int column)
Ensure that the cell exists.
|
protected void |
prepareRow(int row)
Ensure that the row exists.
|
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.
|
addClickHandler, addDoubleClickHandler, addDragEndHandler, addDragEnterHandler, addDragHandler, addDragLeaveHandler, addDragOverHandler, addDragStartHandler, addDropHandler, addTableListener, checkCellBounds, checkRowBounds, clear, clear, clearCell, createCell, getBodyElement, getCellForEvent, getCellFormatter, getCellPadding, getCellSpacing, getColumnFormatter, getDOMCellCount, getDOMCellCount, getDOMCellCount, getDOMRowCount, getDOMRowCount, getDOMRowCount, getEventTargetCell, getHTML, getRowFormatter, getText, getWidget, insertCells, internalClearCell, internalClearCell, isCellPresent, iterator, onEnsureDebugId, prepareColumn, remove, removeTableListener, setBorderWidth, setCellFormatter, setCellPadding, setCellSpacing, setColumnFormatter, setHTML, setHTML, setRowFormatter, setText, setWidget, setWidget
add, add, adopt, doAttachChildren, doDetachChildren, orphan, remove
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEvents
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, removeStyleDependentName, removeStyleName, resolvePotentialElement, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString
fireEvent
public void addCell(int row)
row
- the row to which the new cell will be addedIndexOutOfBoundsException
public int getCellCount(int row)
getCellCount
in class HTMLTable
row
- the row whose cells are to be countedIndexOutOfBoundsException
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 void insertCell(int beforeRow, int beforeColumn)
insertCell
in class HTMLTable
beforeRow
- the cell's rowbeforeColumn
- the cell's columnpublic int insertRow(int beforeRow)
public void removeAllRows()
public void removeCell(int row, int col)
HTMLTable
removeCell
in class HTMLTable
row
- the row of the cell to removecol
- the column of cell to removepublic 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 removedIndexOutOfBoundsException
public void removeRow(int row)
HTMLTable
protected void prepareCell(int row, int column)
prepareCell
in class HTMLTable
row
- the row to prepare.column
- the column to prepare.IndexOutOfBoundsException
- if the row is negativeprotected void prepareRow(int row)
prepareRow
in class HTMLTable
row
- The row to prepare.IndexOutOfBoundsException
- if the row is negativeCopyright © 2018. All rights reserved.