|
GWT 2.7.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.google.gwt.user.cellview.client.CellTreeNodeView.NodeCellList<C>
C
- the child item typestatic class CellTreeNodeView.NodeCellList<C>
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 Summary | |
---|---|
(package private) HasDataPresenter<C> |
presenter
|
Constructor Summary | |
---|---|
CellTreeNodeView.NodeCellList(TreeViewModel.NodeInfo<C> nodeInfo,
CellTreeNodeView<?> nodeView,
int pageSize)
|
Method Summary | |
---|---|
HandlerRegistration |
addCellPreviewHandler(CellPreviewEvent.Handler<C> handler)
Adds a CellPreviewEvent handler. |
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 SelectionModel used by this HasData . |
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 Iterable composed 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 SelectionModel used by this HasData . |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
final HasDataPresenter<C> presenter
Constructor Detail |
---|
public CellTreeNodeView.NodeCellList(TreeViewModel.NodeInfo<C> nodeInfo, CellTreeNodeView<?> nodeView, int pageSize)
Method Detail |
---|
public HandlerRegistration addCellPreviewHandler(CellPreviewEvent.Handler<C> handler)
HasCellPreviewHandlers
CellPreviewEvent
handler.
addCellPreviewHandler
in interface HasCellPreviewHandlers<C>
handler
- the handler
public HandlerRegistration addRangeChangeHandler(RangeChangeEvent.Handler handler)
HasRows
RangeChangeEvent.Handler
.
addRangeChangeHandler
in interface HasRows
handler
- the handler
HandlerRegistration
to remove the handlerpublic HandlerRegistration addRowCountChangeHandler(RowCountChangeEvent.Handler handler)
HasRows
RowCountChangeEvent.Handler
.
addRowCountChangeHandler
in interface HasRows
handler
- the handler
HandlerRegistration
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 HasHandlers
event
- the eventpublic int getDefaultPageSize()
public int getRowCount()
HasRows
getRowCount
in interface HasRows
HasRows.setRowCount(int)
public SelectionModel<? super C> getSelectionModel()
HasData
SelectionModel
used by this HasData
.
getSelectionModel
in interface HasData<C>
SelectionModel
HasData.setSelectionModel(SelectionModel)
public C getVisibleItem(int indexOnPage)
HasData
getVisibleItem
in interface HasData<C>
indexOnPage
- the index on the page
public int getVisibleItemCount()
HasData
getVisibleItemCount
in interface HasData<C>
public java.util.List<C> getVisibleItems()
HasData
Iterable
composed of all of the visible items.
getVisibleItems
in interface HasData<C>
Iterable
instancepublic Range getVisibleRange()
HasRows
getVisibleRange
in interface HasRows
HasRows.setVisibleRange(Range)
,
HasRows.setVisibleRange(int, int)
public boolean isRowCountExact()
HasRows
isRowCountExact
in interface HasRows
public final void setRowCount(int count)
HasRows
HasRows.setRowCount(int, boolean)
.
setRowCount
in interface HasRows
count
- the exact total countHasRows.getRowCount()
public void setRowCount(int size, boolean isExact)
HasRows
setRowCount
in interface HasRows
size
- 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)
HasData
Set 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)
HasData
SelectionModel
used by this HasData
.
setSelectionModel
in interface HasData<C>
selectionModel
- the SelectionModel
HasData.getSelectionModel()
public final void setVisibleRange(int start, int length)
HasRows
HasRows.setVisibleRange(Range)
.
setVisibleRange
in interface HasRows
start
- the start indexlength
- the lengthHasRows.getVisibleRange()
public void setVisibleRange(Range range)
HasRows
setVisibleRange
in interface HasRows
range
- the visible rangeHasRows.getVisibleRange()
public void setVisibleRangeAndClearData(Range range, boolean forceRangeChangeEvent)
HasData
Set 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 Range
forceRangeChangeEvent
- true to fire a RangeChangeEvent
even
if the Range
doesn't change
|
GWT 2.7.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |