T
- the data typestatic interface HasDataPresenter.View<T>
Modifier and Type | Method and Description |
---|---|
<H extends EventHandler> |
addHandler(H handler,
GwtEvent.Type<H> type)
Add a handler to the view.
|
void |
replaceAllChildren(java.util.List<T> values,
SelectionModel<? super T> selectionModel,
boolean stealFocus)
Replace all children with the specified values.
|
void |
replaceChildren(java.util.List<T> values,
int start,
SelectionModel<? super T> selectionModel,
boolean stealFocus)
Replace existing elements starting at the specified index.
|
void |
resetFocus()
Re-establish focus on an element within the view if the view already had
focus.
|
void |
setKeyboardSelected(int index,
boolean selected,
boolean stealFocus)
Update an element to reflect its keyboard selected state.
|
void |
setLoadingState(LoadingStateChangeEvent.LoadingState state)
Set the current loading state of the data.
|
<H extends EventHandler> HandlerRegistration addHandler(H handler, GwtEvent.Type<H> type)
H
- the handler typehandler
- the handler to addtype
- the event typevoid replaceAllChildren(java.util.List<T> values, SelectionModel<? super T> selectionModel, boolean stealFocus)
values
- the values of the new childrenselectionModel
- the SelectionModel
stealFocus
- true if the row should steal focus, false if notvoid replaceChildren(java.util.List<T> values, int start, SelectionModel<? super T> selectionModel, boolean stealFocus)
values
- the values of the new childrenstart
- the start index to be replaced, relative to the pageStartselectionModel
- the SelectionModel
stealFocus
- true if the row should steal focus, false if notvoid resetFocus()
void setKeyboardSelected(int index, boolean selected, boolean stealFocus)
index
- the index of the element relative to page startselected
- true if selected, false if notstealFocus
- true if the row should steal focus, false if notvoid setLoadingState(LoadingStateChangeEvent.LoadingState state)
state
- the loading state