Class CellBrowser.BrowserCellList<T>
java.lang.Object
com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.google.gwt.user.client.ui.Composite
com.google.gwt.user.cellview.client.AbstractHasData<T>
com.google.gwt.user.cellview.client.CellList<T>
com.google.gwt.user.cellview.client.CellBrowser.BrowserCellList<T>
- Type Parameters:
T- the data type of list items
- All Implemented Interfaces:
HasAttachHandlers,HasHandlers,HasKeyboardPagingPolicy,HasKeyboardSelectionPolicy,EventListener,Focusable,HasVisibility,IsRenderable,IsWidget,HasCellPreviewHandlers<T>,HasData<T>,HasKeyProvider<T>,HasRows
- Enclosing class:
CellBrowser
A custom version of cell list used by the browser. Visible for testing.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.google.gwt.user.cellview.client.CellList
CellList.Resources, CellList.Style, CellList.TemplateNested classes/interfaces inherited from class com.google.gwt.user.cellview.client.AbstractHasData
AbstractHasData.DefaultKeyboardSelectionHandler<T>, AbstractHasData.RedrawEventNested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject
UIObject.DebugIdImpl, UIObject.DebugIdImplEnabledNested classes/interfaces inherited from interface com.google.gwt.user.cellview.client.HasKeyboardPagingPolicy
HasKeyboardPagingPolicy.KeyboardPagingPolicyNested classes/interfaces inherited from interface com.google.gwt.user.cellview.client.HasKeyboardSelectionPolicy
HasKeyboardSelectionPolicy.KeyboardSelectionPolicy -
Field Summary
Fields inherited from class com.google.gwt.user.cellview.client.AbstractHasData
isFocusedFields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected ElementgetCellParent(Element item) Get the parent element that wraps the cell from the list item.protected booleanCheck if keyboard navigation is being suppressed, such as when the user is editing a cell.protected voidonBrowserEvent2(Event event) Called afterAbstractHasData.onBrowserEvent(Event)completes.protected voidrenderRowValues(SafeHtmlBuilder sb, List<T> values, int start, SelectionModel<? super T> selectionModel) Render all row values into the specifiedSafeHtmlBuilder.protected voidsetKeyboardSelected(int index, boolean selected, boolean stealFocus) Update an element to reflect its keyboard selected state.protected voidsetSelectedValue(T value) Set the selected value in this list.Methods inherited from class com.google.gwt.user.cellview.client.CellList
dependsOnSelection, doAttachChildren, doDetachChildren, fireEventToCell, getCell, getChildContainer, getEmptyListMessage, getEmptyListWidget, getKeyboardSelectedElement, getLoadingIndicator, getRowElement, onLoadingStateChanged, resetFocusOnCell, setEmptyListMessage, setEmptyListWidget, setLoadingIndicator, setSelected, setValueUpdaterMethods inherited from class com.google.gwt.user.cellview.client.AbstractHasData
addCellPreviewHandler, addLoadingStateChangeHandler, addRangeChangeHandler, addRedrawHandler, addRowCountChangeHandler, addValueChangeHandler, adopt, cellConsumesEventType, checkRowBounds, convertToElements, convertToElements, doAttach, doDetach, getAccessKey, getChildElement, getDisplayedItem, getDisplayedItems, getKeyboardPagingPolicy, getKeyboardSelectedRow, getKeyboardSelectionPolicy, getKeyProvider, getPageSize, getPageStart, getPresenter, getRowContainer, getRowCount, getSelectionModel, getTabIndex, getValueKey, getVisibleItem, getVisibleItemCount, getVisibleItems, getVisibleRange, isRowCountExact, isRowWithinBounds, onBlur, onBrowserEvent, onFocus, onUnload, redraw, redrawRow, replaceAllChildren, replaceAllChildren, replaceChildren, replaceChildren, setAccessKey, setFocus, setFocusable, setKeyboardPagingPolicy, setKeyboardSelectedRow, setKeyboardSelectedRow, setKeyboardSelectionHandler, setKeyboardSelectionPolicy, setPageSize, setPageStart, setRowCount, setRowCount, setRowData, setRowData, setSelectionModel, setSelectionModel, setTabIndex, setVisibleRange, setVisibleRange, setVisibleRangeAndClearData, showOrHideMethods inherited from class com.google.gwt.user.client.ui.Composite
claimElement, getWidget, initializeClaimedElement, initWidget, isAttached, onAttach, onDetach, render, render, resolvePotentialElement, setWidgetMethods inherited from class com.google.gwt.user.client.ui.Widget
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, removeFromParent, setLayoutData, sinkEvents, unsinkEventsMethods inherited from class com.google.gwt.user.client.ui.UIObject
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.gwt.event.shared.HasHandlers
fireEvent
-
Constructor Details
-
BrowserCellList
-
-
Method Details
-
deselectValue
protected void deselectValue() -
getCellParent
Description copied from class:CellListGet the parent element that wraps the cell from the list item. Override this method if you add structure to the element.- Overrides:
getCellParentin classCellList<T>- Parameters:
item- the row element that wraps the list item- Returns:
- the parent element of the cell
-
onBrowserEvent2
Description copied from class:AbstractHasDataCalled afterAbstractHasData.onBrowserEvent(Event)completes.- Overrides:
onBrowserEvent2in classCellList<T>- Parameters:
event- the event that was fired
-
setKeyboardSelected
protected void setKeyboardSelected(int index, boolean selected, boolean stealFocus) Description copied from class:AbstractHasDataUpdate an element to reflect its keyboard selected state.- Overrides:
setKeyboardSelectedin classCellList<T>- Parameters:
index- the index of the elementselected- true if selected, false if notstealFocus- true if the row should steal focus, false if not
-
setSelectedValue
Set the selected value in this list. If there is already a selected value, the old value will be deselected.- Parameters:
value- the selected value
-