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 type
F - 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
    Modifier and Type
    Field
    Description
    protected final de.knightsoftnet.validators.client.editor.BeanValidationEditorDriver<F,AbstractViewWithErrorHandling<P,F>>
     
    protected P
     
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    AbstractViewWithErrorHandling(de.knightsoftnet.validators.client.editor.BeanValidationEditorDriver<F,? extends AbstractViewWithErrorHandling<P,F>> driver)
    constructor with injected parameters.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    fillForm(F formData)
    fill the form with data.
    final P
     
    void
    setConstraintViolations(Iterable<jakarta.validation.ConstraintViolation<?>> validationErrorSet)
    display validation errors.
    void
    set focus on first widget.
    void
    setPresenter(P presenter)
    set a reference to the presenter/activity.
    abstract void
    display a message on the screen.

    Methods inherited from class com.gwtplatform.mvp.client.ViewImpl

    addToSlot, asWidget, bindSlot, bindSlot, bindSlot, initWidget, onAttach, onDetach, removeFromSlot, setInSlot

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.google.gwt.user.client.ui.IsWidget

    asWidget

    Methods inherited from interface com.gwtplatform.mvp.client.View

    addToSlot, removeFromSlot, setInSlot
  • Field Details

    • presenter

      protected P presenter
    • driver

      protected final de.knightsoftnet.validators.client.editor.BeanValidationEditorDriver<F,AbstractViewWithErrorHandling<P,F>> driver
  • 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