P - presenter typeF - editable data typepublic abstract class AbstractViewWithErrorHandling<P,F> extends com.gwtplatform.mvp.client.ViewImpl implements EditorWithErrorHandling<P,F>
| Modifier and Type | Field and Description |
|---|---|
protected BeanValidationEditorDriver<F,AbstractViewWithErrorHandling<P,F>> |
driver |
protected P |
presenter |
| Constructor and Description |
|---|
AbstractViewWithErrorHandling(BeanValidationEditorDriver<F,? extends AbstractViewWithErrorHandling<P,F>> pdriver)
constructor with injected parameters.
|
| Modifier and Type | Method and Description |
|---|---|
void |
fillForm(F pformData)
fill the form with data.
|
P |
getPresenter() |
void |
setConstraintViolations(Iterable<javax.validation.ConstraintViolation<?>> pvalidationErrorSet)
display validation errors.
|
void |
setFocusOnFirstWidget()
set focus on first widget.
|
void |
setPresenter(P ppresenter)
set a reference to the presenter/activity.
|
abstract void |
showMessage(String pmessage)
display a message on the screen.
|
addToSlot, asWidget, bindSlot, bindSlot, bindSlot, initWidget, onAttach, onDetach, removeFromSlot, setInSlotclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitprotected P presenter
protected final BeanValidationEditorDriver<F,AbstractViewWithErrorHandling<P,F>> driver
public AbstractViewWithErrorHandling(BeanValidationEditorDriver<F,? extends AbstractViewWithErrorHandling<P,F>> pdriver)
pdriver - editor driverpublic void setPresenter(P ppresenter)
EditorWithErrorHandlingsetPresenter in interface EditorWithErrorHandling<P,F>ppresenter - reference to setpublic final P getPresenter()
public void fillForm(F pformData)
EditorWithErrorHandlingfillForm in interface EditorWithErrorHandling<P,F>pformData - data to fill into the formpublic abstract void showMessage(String pmessage)
HasShowMessageshowMessage in interface HasShowMessagepmessage - the message to displaypublic void setFocusOnFirstWidget()
EditorWithErrorHandlingsetFocusOnFirstWidget in interface EditorWithErrorHandling<P,F>public void setConstraintViolations(Iterable<javax.validation.ConstraintViolation<?>> pvalidationErrorSet)
EditorWithErrorHandlingsetConstraintViolations in interface EditorWithErrorHandling<P,F>pvalidationErrorSet - list of violationsCopyright © 2015–2018. All rights reserved.