Class LoginView

java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.login.AbstractLogin
com.vaadin.flow.component.login.LoginOverlay
com.decs.application.views.login.LoginView
All Implemented Interfaces:
com.vaadin.flow.component.AttachNotifier, com.vaadin.flow.component.DetachNotifier, com.vaadin.flow.component.HasElement, com.vaadin.flow.component.HasEnabled, com.vaadin.flow.component.HasStyle, com.vaadin.flow.router.BeforeEnterObserver, com.vaadin.flow.router.internal.BeforeEnterHandler, Serializable

@Route("login") public class LoginView extends com.vaadin.flow.component.login.LoginOverlay implements com.vaadin.flow.router.BeforeEnterObserver
Login View Class

This class implements the web application login page. It is responsible for all visual components and their behavior.

Version:
1.0
Author:
Bruno Guiomar
See Also:
  • Nested Class Summary

    Nested classes/interfaces inherited from class com.vaadin.flow.component.login.LoginOverlay

    com.vaadin.flow.component.login.LoginOverlay.LoginOverlayCustomFormArea, com.vaadin.flow.component.login.LoginOverlay.LoginOverlayFooter

    Nested classes/interfaces inherited from class com.vaadin.flow.component.login.AbstractLogin

    com.vaadin.flow.component.login.AbstractLogin.ForgotPasswordEvent, com.vaadin.flow.component.login.AbstractLogin.LoginEvent
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final AuthenticatedUser
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    LoginView(AuthenticatedUser authenticatedUser)
    Class Constructor
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    beforeEnter(com.vaadin.flow.router.BeforeEnterEvent event)
    Checks if the user is already logged in to prevent this page to be shown

    Methods inherited from class com.vaadin.flow.component.login.LoginOverlay

    close, getClassNames, getCustomFormArea, getDescription, getFooter, getStyle, getTitle, getTitleAsText, isOpened, setClassName, setDescription, setOpened, setTitle, setTitle

    Methods inherited from class com.vaadin.flow.component.login.AbstractLogin

    addForgotPasswordListener, addLoginListener, getAction, isError, isForgotPasswordButtonVisible, onEnabledStateChanged, setAction, setError, setForgotPasswordButtonVisible, setI18n

    Methods inherited from class com.vaadin.flow.component.Component

    addListener, findAncestor, fireEvent, from, get, getChildren, getElement, getEventBus, getId, getListeners, getLocale, getParent, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onAttach, onDetach, removeFromParent, scrollIntoView, scrollIntoView, set, setElement, setId, setVisible

    Methods inherited from class java.lang.Object

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

    Methods inherited from interface com.vaadin.flow.component.AttachNotifier

    addAttachListener

    Methods inherited from interface com.vaadin.flow.component.DetachNotifier

    addDetachListener

    Methods inherited from interface com.vaadin.flow.component.HasElement

    getElement

    Methods inherited from interface com.vaadin.flow.component.HasEnabled

    isEnabled, setEnabled

    Methods inherited from interface com.vaadin.flow.component.HasStyle

    addClassName, addClassNames, getClassName, hasClassName, removeClassName, removeClassNames, setClassName
  • Field Details

  • Constructor Details

    • LoginView

      public LoginView(AuthenticatedUser authenticatedUser)
      Class Constructor
      Parameters:
      authenticatedUser - User to be authenticated
  • Method Details

    • beforeEnter

      public void beforeEnter(com.vaadin.flow.router.BeforeEnterEvent event)
      Checks if the user is already logged in to prevent this page to be shown
      Specified by:
      beforeEnter in interface com.vaadin.flow.router.internal.BeforeEnterHandler
      Parameters:
      event - Event that is fired just before a user accesses the web app