C - the child item typestatic class CellTreeNodeView.NodeCellList<C> extends java.lang.Object implements HasData<C>
HasData used to show children. This
 class is intentionally static because we might move it to a new
 CellTreeNodeView, and we don't want non-static references to the
 old CellTreeNodeView.| Modifier and Type | Field and Description | 
|---|---|
| (package private) HasDataPresenter<C> | presenter | 
| Constructor and Description | 
|---|
| NodeCellList(TreeViewModel.NodeInfo<C> nodeInfo,
            CellTreeNodeView<?> nodeView,
            int pageSize) | 
| Modifier and Type | Method and Description | 
|---|---|
| HandlerRegistration | addCellPreviewHandler(CellPreviewEvent.Handler<C> handler)Adds a  CellPreviewEventhandler. | 
| HandlerRegistration | addRangeChangeHandler(RangeChangeEvent.Handler handler)Add a  RangeChangeEvent.Handler. | 
| HandlerRegistration | addRowCountChangeHandler(RowCountChangeEvent.Handler handler)Add a  RowCountChangeEvent.Handler. | 
| void | cleanup()Cleanup this node view. | 
| void | fireEvent(GwtEvent<?> event)Fires the given event to the handlers listening to the event's type. | 
| int | getDefaultPageSize() | 
| int | getRowCount()Get the total count of all rows. | 
| SelectionModel<? super C> | getSelectionModel()Get the  SelectionModelused by thisHasData. | 
| C | getVisibleItem(int indexOnPage)Get the row value at the specified visible index. | 
| int | getVisibleItemCount()Get the number of visible items being displayed. | 
| java.util.List<C> | getVisibleItems()Get an  Iterablecomposed of all of the visible items. | 
| Range | getVisibleRange()Get the range of visible rows. | 
| boolean | isRowCountExact()Check if the total row count is exact, or an estimate. | 
| void | setRowCount(int count)Set the exact total count of all rows. | 
| void | setRowCount(int size,
           boolean isExact)Set the total count of all rows, specifying whether the count is exact or
 an estimate. | 
| void | setRowData(int start,
          java.util.List<? extends C> values)
 Set a values associated with the rows in the visible range. | 
| void | setSelectionModel(SelectionModel<? super C> selectionModel)Set the  SelectionModelused by thisHasData. | 
| void | setVisibleRange(int start,
               int length)Set the visible range or rows. | 
| void | setVisibleRange(Range range)Set the visible range or rows. | 
| void | setVisibleRangeAndClearData(Range range,
                           boolean forceRangeChangeEvent)
 Set the visible range and clear the current visible data. | 
final HasDataPresenter<C> presenter
public NodeCellList(TreeViewModel.NodeInfo<C> nodeInfo, CellTreeNodeView<?> nodeView, int pageSize)
public HandlerRegistration addCellPreviewHandler(CellPreviewEvent.Handler<C> handler)
HasCellPreviewHandlersCellPreviewEvent handler.addCellPreviewHandler in interface HasCellPreviewHandlers<C>handler - the handlerpublic HandlerRegistration addRangeChangeHandler(RangeChangeEvent.Handler handler)
HasRowsRangeChangeEvent.Handler.addRangeChangeHandler in interface HasRowshandler - the handlerHandlerRegistration to remove the handlerpublic HandlerRegistration addRowCountChangeHandler(RowCountChangeEvent.Handler handler)
HasRowsRowCountChangeEvent.Handler.addRowCountChangeHandler in interface HasRowshandler - the handlerHandlerRegistration to remove the handlerpublic void cleanup()
public void fireEvent(GwtEvent<?> event)
HasHandlers
 Any exceptions thrown by handlers will be bundled into a
 UmbrellaException and then re-thrown after all handlers have
 completed. An exception thrown by a handler will not prevent other handlers
 from executing.
fireEvent in interface HasHandlersevent - the eventpublic int getDefaultPageSize()
public int getRowCount()
HasRowsgetRowCount in interface HasRowsHasRows.setRowCount(int)public SelectionModel<? super C> getSelectionModel()
HasDataSelectionModel used by this HasData.getSelectionModel in interface HasData<C>SelectionModelHasData.setSelectionModel(SelectionModel)public C getVisibleItem(int indexOnPage)
HasDatagetVisibleItem in interface HasData<C>indexOnPage - the index on the pagepublic int getVisibleItemCount()
HasDatagetVisibleItemCount in interface HasData<C>public java.util.List<C> getVisibleItems()
HasDataIterable composed of all of the visible items.getVisibleItems in interface HasData<C>Iterable instancepublic Range getVisibleRange()
HasRowsgetVisibleRange in interface HasRowsHasRows.setVisibleRange(Range), 
HasRows.setVisibleRange(int, int)public boolean isRowCountExact()
HasRowsisRowCountExact in interface HasRowspublic final void setRowCount(int count)
HasRowsHasRows.setRowCount(int, boolean).setRowCount in interface HasRowscount - the exact total countHasRows.getRowCount()public void setRowCount(int size,
                        boolean isExact)
HasRowssetRowCount in interface HasRowssize - the total countisExact - true if the count is exact, false if an estimateHasRows.getRowCount()public void setRowData(int start,
                       java.util.List<? extends C> values)
HasDataSet a values associated with the rows in the visible range.
 This method does not replace all rows in the display; it replaces
 the row values starting at the specified start index through the length of
 the specified values. You must call HasRows.setRowCount(int) to set
 the total number of rows in the display. You should also use
 HasRows.setRowCount(int) to remove rows when the total number of rows
 decreases.
 
setRowData in interface HasData<C>start - the start index of the datavalues - the values within the rangepublic void setSelectionModel(SelectionModel<? super C> selectionModel)
HasDataSelectionModel used by this HasData.setSelectionModel in interface HasData<C>selectionModel - the SelectionModelHasData.getSelectionModel()public final void setVisibleRange(int start,
                                  int length)
HasRowsHasRows.setVisibleRange(Range).setVisibleRange in interface HasRowsstart - the start indexlength - the lengthHasRows.getVisibleRange()public void setVisibleRange(Range range)
HasRowssetVisibleRange in interface HasRowsrange - the visible rangeHasRows.getVisibleRange()public void setVisibleRangeAndClearData(Range range, boolean forceRangeChangeEvent)
HasDataSet the visible range and clear the current visible data.
 If the second argument forceRangeChangeEvent is true, a
 RangeChangeEvent will be fired even if the range does not change.
 If false, a RangeChangeEvent will only be fired if the range
 changes.
 
setVisibleRangeAndClearData in interface HasData<C>range - the new RangeforceRangeChangeEvent - true to fire a RangeChangeEvent even
          if the Range doesn't change