Package com.decs.application.views.login
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.LoginOverlayFooterNested 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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbeforeEnter(com.vaadin.flow.router.BeforeEnterEvent event) Checks if the user is already logged in to prevent this page to be shownMethods inherited from class com.vaadin.flow.component.login.LoginOverlay
close, getClassNames, getCustomFormArea, getDescription, getFooter, getStyle, getTitle, getTitleAsText, isOpened, setClassName, setDescription, setOpened, setTitle, setTitleMethods inherited from class com.vaadin.flow.component.login.AbstractLogin
addForgotPasswordListener, addLoginListener, getAction, isError, isForgotPasswordButtonVisible, onEnabledStateChanged, setAction, setError, setForgotPasswordButtonVisible, setI18nMethods 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, setVisibleMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.vaadin.flow.component.AttachNotifier
addAttachListenerMethods inherited from interface com.vaadin.flow.component.DetachNotifier
addDetachListenerMethods inherited from interface com.vaadin.flow.component.HasElement
getElementMethods inherited from interface com.vaadin.flow.component.HasEnabled
isEnabled, setEnabledMethods inherited from interface com.vaadin.flow.component.HasStyle
addClassName, addClassNames, getClassName, hasClassName, removeClassName, removeClassNames, setClassName
-
Field Details
-
authenticatedUser
-
-
Constructor Details
-
LoginView
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:
beforeEnterin interfacecom.vaadin.flow.router.internal.BeforeEnterHandler- Parameters:
event- Event that is fired just before a user accesses the web app
-