Class AbstractViewWithErrorHandling<P,F>
java.lang.Object
com.gwtplatform.mvp.client.ViewImpl
de.knightsoftnet.gwtp.spring.client.rest.helper.AbstractViewWithErrorHandling<P,F>
- Type Parameters:
P- presenter typeF- editable data type
- All Implemented Interfaces:
com.google.gwt.user.client.ui.IsWidget,com.gwtplatform.mvp.client.View,EditorWithErrorHandling<P,,F> HasShowMessage,org.gwtproject.editor.client.Editor<F>
public abstract class AbstractViewWithErrorHandling<P,F>
extends com.gwtplatform.mvp.client.ViewImpl
implements EditorWithErrorHandling<P,F>
abstract editor implementation with default functionality used in forms.
- Author:
- Manfred Tremmel
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.gwtproject.editor.client.Editor
org.gwtproject.editor.client.Editor.Ignore, org.gwtproject.editor.client.Editor.Path -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractViewWithErrorHandling(de.knightsoftnet.validators.client.editor.BeanValidationEditorDriver<F, ? extends AbstractViewWithErrorHandling<P, F>> driver) constructor with injected parameters. -
Method Summary
Modifier and TypeMethodDescriptionvoidfill the form with data.final PvoidsetConstraintViolations(Iterable<jakarta.validation.ConstraintViolation<?>> validationErrorSet) display validation errors.voidset focus on first widget.voidsetPresenter(P presenter) set a reference to the presenter/activity.abstract voidshowMessage(String message) display a message on the screen.Methods inherited from class com.gwtplatform.mvp.client.ViewImpl
addToSlot, asWidget, bindSlot, bindSlot, bindSlot, initWidget, onAttach, onDetach, removeFromSlot, setInSlotMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.google.gwt.user.client.ui.IsWidget
asWidgetMethods inherited from interface com.gwtplatform.mvp.client.View
addToSlot, removeFromSlot, setInSlot
-
Field Details
-
presenter
-
driver
protected final de.knightsoftnet.validators.client.editor.BeanValidationEditorDriver<F,AbstractViewWithErrorHandling<P, driverF>>
-
-
Constructor Details
-
AbstractViewWithErrorHandling
protected AbstractViewWithErrorHandling(de.knightsoftnet.validators.client.editor.BeanValidationEditorDriver<F, ? extends AbstractViewWithErrorHandling<P, F>> driver) constructor with injected parameters.- Parameters:
driver- editor driver
-
-
Method Details
-
setPresenter
Description copied from interface:EditorWithErrorHandlingset a reference to the presenter/activity.- Specified by:
setPresenterin interfaceEditorWithErrorHandling<P,F> - Parameters:
presenter- reference to set
-
getPresenter
-
fillForm
Description copied from interface:EditorWithErrorHandlingfill the form with data.- Specified by:
fillFormin interfaceEditorWithErrorHandling<P,F> - Parameters:
formData- data to fill into the form
-
showMessage
Description copied from interface:HasShowMessagedisplay a message on the screen.- Specified by:
showMessagein interfaceHasShowMessage- Parameters:
message- the message to display
-
setFocusOnFirstWidget
public void setFocusOnFirstWidget()Description copied from interface:EditorWithErrorHandlingset focus on first widget.- Specified by:
setFocusOnFirstWidgetin interfaceEditorWithErrorHandling<P,F>
-
setConstraintViolations
public void setConstraintViolations(Iterable<jakarta.validation.ConstraintViolation<?>> validationErrorSet) Description copied from interface:EditorWithErrorHandlingdisplay validation errors.- Specified by:
setConstraintViolationsin interfaceEditorWithErrorHandling<P,F> - Parameters:
validationErrorSet- list of violations
-