Package com.google.gwt.view.client
Interface HasRows
- All Superinterfaces:
HasHandlers
- All Known Subinterfaces:
HasData<T>
- All Known Implementing Classes:
AbstractCellTable
,AbstractHasData
,CellBrowser.BrowserCellList
,CellList
,CellTable
,CellTreeNodeView.NodeCellList
,DataGrid
,HasDataPresenter
Describes an object that displays a range of rows.
-
Method Summary
Modifier and TypeMethodDescriptionAdd aRangeChangeEvent.Handler
.Add aRowCountChangeEvent.Handler
.int
Get the total count of all rows.Get the range of visible rows.boolean
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 count, boolean isExact) Set the total count of all rows, specifying whether the count is exact or an estimate.void
setVisibleRange
(int start, int length) Set the visible range or rows.void
setVisibleRange
(Range range) Set the visible range or rows.Methods inherited from interface com.google.gwt.event.shared.HasHandlers
fireEvent
-
Method Details
-
addRangeChangeHandler
Add aRangeChangeEvent.Handler
.- Parameters:
handler
- the handler- Returns:
- a
HandlerRegistration
to remove the handler
-
addRowCountChangeHandler
Add aRowCountChangeEvent.Handler
.- Parameters:
handler
- the handler- Returns:
- a
HandlerRegistration
to remove the handler
-
getRowCount
int getRowCount()Get the total count of all rows.- Returns:
- the total row count
- See Also:
-
getVisibleRange
Range getVisibleRange()Get the range of visible rows.- Returns:
- the visible range
- See Also:
-
isRowCountExact
boolean isRowCountExact()Check if the total row count is exact, or an estimate.- Returns:
- true if exact, false if an estimate
-
setRowCount
void setRowCount(int count) Set the exact total count of all rows. This method defers tosetRowCount(int, boolean)
.- Parameters:
count
- the exact total count- See Also:
-
setRowCount
void setRowCount(int count, boolean isExact) Set the total count of all rows, specifying whether the count is exact or an estimate.- Parameters:
count
- the total countisExact
- true if the count is exact, false if an estimate- See Also:
-
setVisibleRange
void setVisibleRange(int start, int length) Set the visible range or rows. This method defers tosetVisibleRange(Range)
.- Parameters:
start
- the start indexlength
- the length- See Also:
-
setVisibleRange
Set the visible range or rows.- Parameters:
range
- the visible range- See Also:
-