Package com.vaadin.flow.component.login
Class LoginForm
java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.login.AbstractLogin
com.vaadin.flow.component.login.LoginForm
- All Implemented Interfaces:
AttachNotifier,DetachNotifier,HasElement,HasEnabled,HasStyle,Serializable
@Tag("vaadin-login-form")
@NpmPackage(value="@vaadin/login",
version="25.0.2")
@JsModule("@vaadin/login/src/vaadin-login-form.js")
public class LoginForm
extends AbstractLogin
implements HasStyle
Login is a component that contains a login form. You can use it for
authenticating the user with a username and password. It is compatible with
password managers, supports internationalization and works on all device
sizes.
The basic Login component consists of a title (Log in), two input fields (Username and Password), and two buttons (Log in and Forgot password). You can customize the form?s title, descriptions, labels, and messages using internationalization.
On AbstractLogin.LoginEvent component becomes disabled. Disabled
component stops to process login events, however the
AbstractLogin.ForgotPasswordEvent event is processed anyway. To enable
use the HasEnabled.setEnabled(boolean)
method. Setting error AbstractLogin.setError(boolean) true makes component
automatically enabled for the next login attempt.
- Author:
- Vaadin Ltd
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.vaadin.flow.component.login.AbstractLogin
AbstractLogin.ForgotPasswordEvent, AbstractLogin.LoginEvent -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.vaadin.flow.component.login.AbstractLogin
addForgotPasswordListener, addLoginListener, getAction, isError, isForgotPasswordButtonVisible, onEnabledStateChanged, setAction, setError, setForgotPasswordButtonVisible, setI18n, showErrorMessageMethods 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, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName
-
Constructor Details
-
LoginForm
public LoginForm() -
LoginForm
-