Interface HasDataPresenter.View<T>
- Type Parameters:
- T- the data type
- Enclosing class:
- HasDataPresenter<T>
static interface HasDataPresenter.View<T>
The view that this presenter presents.
- 
Method SummaryModifier and TypeMethodDescription<H extends EventHandler>
 HandlerRegistrationaddHandler(H handler, GwtEvent.Type<H> type) Add a handler to the view.voidreplaceAllChildren(List<T> values, SelectionModel<? super T> selectionModel, boolean stealFocus) Replace all children with the specified values.voidreplaceChildren(List<T> values, int start, SelectionModel<? super T> selectionModel, boolean stealFocus) Replace existing elements starting at the specified index.voidRe-establish focus on an element within the view if the view already had focus.voidsetKeyboardSelected(int index, boolean selected, boolean stealFocus) Update an element to reflect its keyboard selected state.voidSet the current loading state of the data.
- 
Method Details
- 
replaceAllChildrenvoid replaceAllChildren(List<T> values, SelectionModel<? super T> selectionModel, boolean stealFocus) Replace all children with the specified values.- Parameters:
- values- the values of the new children
- selectionModel- the- SelectionModel
- stealFocus- true if the row should steal focus, false if not
 
- 
replaceChildrenvoid replaceChildren(List<T> values, int start, SelectionModel<? super T> selectionModel, boolean stealFocus) Replace existing elements starting at the specified index. If the number of children specified exceeds the existing number of children, the remaining children should be appended.- Parameters:
- values- the values of the new children
- start- the start index to be replaced, relative to the pageStart
- selectionModel- the- SelectionModel
- stealFocus- true if the row should steal focus, false if not
 
- 
resetFocusvoid resetFocus()Re-establish focus on an element within the view if the view already had focus.
- 
setKeyboardSelectedvoid setKeyboardSelected(int index, boolean selected, boolean stealFocus) Update an element to reflect its keyboard selected state.- Parameters:
- index- the index of the element relative to page start
- selected- true if selected, false if not
- stealFocus- true if the row should steal focus, false if not
 
- 
setLoadingStateSet the current loading state of the data.- Parameters:
- state- the loading state