Class LoginForm

java.lang.Object
com.vaadin.flow.component.Component
All Implemented Interfaces:
ClickHandler, ExecutableView, FullScreen, HomeView, ValueChangeHandler, com.vaadin.flow.component.AttachNotifier, com.vaadin.flow.component.ComponentEventListener<com.vaadin.flow.component.ClickEvent<? extends com.vaadin.flow.component.Component>>, com.vaadin.flow.component.DetachNotifier, com.vaadin.flow.component.HasElement, com.vaadin.flow.component.HasSize, com.vaadin.flow.component.HasStyle, com.vaadin.flow.component.HasValue.ValueChangeListener, Serializable, Runnable, EventListener

public class LoginForm extends TemplateView implements HomeView, FullScreen
This is a template-based login screen and its template can be defined in the TextContent named "com.storedobject.ui.LoginForm". If this template exists, this will be used for rendering the login view instead of the default one. Following id-values are used to map the necessary fields in the template:

id = "layout" (Should be an HTML div tag. Represents the outermost layout in which the whole login form is wrapped. This is optional.)

id = "login" (Should be a vaadin-combo-box tag. Represents user-name field. Not working due to a bug, use "user" instead.)

id = "user" (Should be a vaadin-text-field tag. Represents user-name field.)

id = "remember" (Should be a vaadin-checkbox tag. Used to remember the user-name. This is optional.)

id = "password" (Should be a vaadin-password-field tag.)

id = "authCode" (Authenticator code. Should be a vaadin-custom-field tag. This is optional.)

id = "cram" (Should be a vaadin-custom-field tag. This is optional.)

id = "biometric" (Should be a so-auth tag. Used for showing biometric option. This is optional.)

id = "ok" ('OK' or 'Sign in' button. This should be a vaadin-button tag.)

id = "cancel" ('Cancel' button. This should be a vaadin-button tag.)

id = "forgot" ('Forgot Password' button. This should be a vaadin-button tag. This is optional.)

id = "forgotLink" ('Forgot Password' link. This should be an HTML a tag. This is optional.)

id = "terms" (Should be a vaadin-checkbox tag. User needs to click this always. This is optional.)

id = "year" (Should be a span tag. Value of the current year will be set to this. This is optional.)

id = "viewX" (The value of X can be anything. Should be an HTML a tag with href attribute set to empty string. Typically used for providing static content views. This is optional.)

Additional attributes can be defined for certain id values:

id = "terms" A "message" attribute can be specified for the message to show if it is not checked.

id = "viewX" A "file" attribute must be specified with the name of the file to view. A "caption" attribute may be specified if you want to show the caption as something other than the file name.

Author:
Syam
See Also: