Class CellTreeNodeView.NodeCellList<C>
java.lang.Object
com.google.gwt.user.cellview.client.CellTreeNodeView.NodeCellList<C>
- Type Parameters:
- C- the child item type
- All Implemented Interfaces:
- HasHandlers,- HasCellPreviewHandlers<C>,- HasData<C>,- HasRows
- Enclosing class:
- CellTreeNodeView<T>
The 
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.- 
Field SummaryFields
- 
Constructor SummaryConstructorsConstructorDescriptionNodeCellList(TreeViewModel.NodeInfo<C> nodeInfo, CellTreeNodeView<?> nodeView, int pageSize) 
- 
Method SummaryModifier and TypeMethodDescriptionaddCellPreviewHandler(CellPreviewEvent.Handler<C> handler) Adds aCellPreviewEventhandler.Add aRangeChangeEvent.Handler.Add aRowCountChangeEvent.Handler.voidcleanup()Cleanup this node view.voidFires the given event to the handlers listening to the event's type.intintGet the total count of all rows.SelectionModel<? super C> Get theSelectionModelused by thisHasData.getVisibleItem(int indexOnPage) Get the row value at the specified visible index.intGet the number of visible items being displayed.Get anIterablecomposed of all of the visible items.Get the range of visible rows.booleanCheck if the total row count is exact, or an estimate.final voidsetRowCount(int count) Set the exact total count of all rows.voidsetRowCount(int size, boolean isExact) Set the total count of all rows, specifying whether the count is exact or an estimate.voidsetRowData(int start, List<? extends C> values) Set a values associated with the rows in the visible range.voidsetSelectionModel(SelectionModel<? super C> selectionModel) Set theSelectionModelused by thisHasData.final voidsetVisibleRange(int start, int length) Set the visible range or rows.voidsetVisibleRange(Range range) Set the visible range or rows.voidsetVisibleRangeAndClearData(Range range, boolean forceRangeChangeEvent) Set the visible range and clear the current visible data.
- 
Field Details- 
presenter
 
- 
- 
Constructor Details- 
NodeCellList
 
- 
- 
Method Details- 
addCellPreviewHandlerDescription copied from interface:HasCellPreviewHandlersAdds aCellPreviewEventhandler.- Specified by:
- addCellPreviewHandlerin interface- HasCellPreviewHandlers<C>
- Parameters:
- handler- the handler
- Returns:
- the registration for the event
 
- 
addRangeChangeHandlerDescription copied from interface:HasRowsAdd aRangeChangeEvent.Handler.- Specified by:
- addRangeChangeHandlerin interface- HasRows
- Parameters:
- handler- the handler
- Returns:
- a HandlerRegistrationto remove the handler
 
- 
addRowCountChangeHandlerDescription copied from interface:HasRowsAdd aRowCountChangeEvent.Handler.- Specified by:
- addRowCountChangeHandlerin interface- HasRows
- Parameters:
- handler- the handler
- Returns:
- a HandlerRegistrationto remove the handler
 
- 
cleanuppublic void cleanup()Cleanup this node view.
- 
getDefaultPageSizepublic int getDefaultPageSize()
- 
getRowCountpublic int getRowCount()Description copied from interface:HasRowsGet the total count of all rows.- Specified by:
- getRowCountin interface- HasRows
- Returns:
- the total row count
- See Also:
 
- 
getSelectionModelDescription copied from interface:HasDataGet theSelectionModelused by thisHasData.- Specified by:
- getSelectionModelin interface- HasData<C>
- Returns:
- the SelectionModel
- See Also:
 
- 
getVisibleItemDescription copied from interface:HasDataGet the row value at the specified visible index. Index 0 corresponds to the first item on the page.- Specified by:
- getVisibleItemin interface- HasData<C>
- Parameters:
- indexOnPage- the index on the page
- Returns:
- the row value
 
- 
getVisibleItemCountpublic int getVisibleItemCount()Description copied from interface:HasDataGet the number of visible items being displayed. Note that this value might be less than the page size if there is not enough data to fill the page.- Specified by:
- getVisibleItemCountin interface- HasData<C>
- Returns:
- the number of visible items on the page
 
- 
getVisibleItemsDescription copied from interface:HasDataGet anIterablecomposed of all of the visible items.- Specified by:
- getVisibleItemsin interface- HasData<C>
- Returns:
- an Iterableinstance
 
- 
getVisibleRangeDescription copied from interface:HasRowsGet the range of visible rows.- Specified by:
- getVisibleRangein interface- HasRows
- Returns:
- the visible range
- See Also:
 
- 
isRowCountExactpublic boolean isRowCountExact()Description copied from interface:HasRowsCheck if the total row count is exact, or an estimate.- Specified by:
- isRowCountExactin interface- HasRows
- Returns:
- true if exact, false if an estimate
 
- 
setRowCountpublic final void setRowCount(int count) Description copied from interface:HasRowsSet the exact total count of all rows. This method defers toHasRows.setRowCount(int, boolean).- Specified by:
- setRowCountin interface- HasRows
- Parameters:
- count- the exact total count
- See Also:
 
- 
setRowCountpublic void setRowCount(int size, boolean isExact) Description copied from interface:HasRowsSet the total count of all rows, specifying whether the count is exact or an estimate.- Specified by:
- setRowCountin interface- HasRows
- Parameters:
- size- the total count
- isExact- true if the count is exact, false if an estimate
- See Also:
 
- 
setRowDataDescription copied from interface: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 useHasRows.setRowCount(int)to remove rows when the total number of rows decreases.- Specified by:
- setRowDatain interface- HasData<C>
- Parameters:
- start- the start index of the data
- values- the values within the range
 
- 
setSelectionModelDescription copied from interface:HasDataSet theSelectionModelused by thisHasData.- Specified by:
- setSelectionModelin interface- HasData<C>
- Parameters:
- selectionModel- the- SelectionModel
- See Also:
 
- 
setVisibleRangepublic final void setVisibleRange(int start, int length) Description copied from interface:HasRowsSet the visible range or rows. This method defers toHasRows.setVisibleRange(Range).- Specified by:
- setVisibleRangein interface- HasRows
- Parameters:
- start- the start index
- length- the length
- See Also:
 
- 
setVisibleRangeDescription copied from interface:HasRowsSet the visible range or rows.- Specified by:
- setVisibleRangein interface- HasRows
- Parameters:
- range- the visible range
- See Also:
 
- 
setVisibleRangeAndClearDataDescription copied from interface:HasDataSet the visible range and clear the current visible data. If the second argument forceRangeChangeEventis true, aRangeChangeEventwill be fired even if the range does not change. If false, aRangeChangeEventwill only be fired if the range changes.- Specified by:
- setVisibleRangeAndClearDatain interface- HasData<C>
- Parameters:
- range- the new- Range
- forceRangeChangeEvent- true to fire a- RangeChangeEventeven if the- Rangedoesn't change
 
 
-