V
- type of value in grid.abstract class CellGridImpl<V> extends Grid
Modifier and Type | Class and Description |
---|---|
(package private) class |
CellGridImpl.Cell |
HTMLTable.CellFormatter, HTMLTable.ColumnFormatter, HTMLTable.RowFormatter
UIObject.DebugIdImpl, UIObject.DebugIdImplEnabled
HasWidgets.ForIsWidget
numColumns, numRows
DEBUG_ID_PREFIX
Modifier | Constructor and Description |
---|---|
protected |
CellGridImpl() |
Modifier and Type | Method and Description |
---|---|
CellGridImpl.Cell |
getCell(Element element) |
CellGridImpl.Cell |
getCell(Event e) |
CellGridImpl.Cell |
getCell(int i) |
java.util.Iterator |
getCells() |
CellGridImpl.Cell |
getHighlightedCell() |
int |
getNumCells() |
CellGridImpl.Cell |
getSelectedCell() |
V |
getSelectedValue() |
V |
getValue(CellGridImpl.Cell cell) |
void |
onBrowserEvent(Event event)
Fired whenever a browser event is received.
|
protected abstract void |
onSelected(CellGridImpl.Cell lastSelected,
CellGridImpl.Cell cell) |
void |
onUnload()
This method is called immediately before a widget will be detached from the
browser's document.
|
void |
setHighlighted(CellGridImpl.Cell nextHighlighted) |
void |
setSelected(CellGridImpl.Cell cell) |
clearCell, createCell, getCellCount, getColumnCount, getRowCount, insertRow, prepareCell, prepareColumn, prepareRow, removeRow, resize, resizeColumns, resizeRows
addClickHandler, addDoubleClickHandler, addDragEndHandler, addDragEnterHandler, addDragHandler, addDragLeaveHandler, addDragOverHandler, addDragStartHandler, addDropHandler, addTableListener, checkCellBounds, checkRowBounds, clear, clear, getBodyElement, getCellForEvent, getCellFormatter, getCellPadding, getCellSpacing, getColumnFormatter, getDOMCellCount, getDOMCellCount, getDOMCellCount, getDOMRowCount, getDOMRowCount, getDOMRowCount, getEventTargetCell, getHTML, getRowFormatter, getText, getWidget, insertCell, insertCells, internalClearCell, internalClearCell, isCellPresent, iterator, onEnsureDebugId, remove, removeCell, 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, onDetach, onLoad, 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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
fireEvent
public CellGridImpl.Cell getCell(Element element)
public CellGridImpl.Cell getCell(Event e)
public CellGridImpl.Cell getCell(int i)
public java.util.Iterator getCells()
public CellGridImpl.Cell getHighlightedCell()
public int getNumCells()
public CellGridImpl.Cell getSelectedCell()
public V getSelectedValue()
public V getValue(CellGridImpl.Cell cell)
public void onBrowserEvent(Event event)
EventListener
onBrowserEvent
in interface EventListener
onBrowserEvent
in class Widget
event
- the event receivedpublic void onUnload()
Widget
public final void setHighlighted(CellGridImpl.Cell nextHighlighted)
public final void setSelected(CellGridImpl.Cell cell)
protected abstract void onSelected(CellGridImpl.Cell lastSelected, CellGridImpl.Cell cell)