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:
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,Serializable
@Tag("vaadin-login-form") @NpmPackage(value="@vaadin/polymer-legacy-adapter",version="23.5.12") @NpmPackage(value="@vaadin/login",version="23.5.12") @NpmPackage(value="@vaadin/vaadin-login",version="23.5.12") @JsModule("@vaadin/polymer-legacy-adapter/style-modules.js") @JsModule("@vaadin/login/src/vaadin-login-form.js") public class LoginForm extends AbstractLogin implements com.vaadin.flow.component.HasStyleLogin 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.LoginEventcomponent becomes disabled. Disabled component stops to process login events, however theAbstractLogin.ForgotPasswordEventevent is processed anyway. To enable use theHasEnabled.setEnabled(boolean)method. Setting errorAbstractLogin.setError(boolean)true makes component automatically enabled for the next login attempt.- Author:
- Vaadin Ltd
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.vaadin.flow.component.login.AbstractLogin
AbstractLogin.ForgotPasswordEvent, AbstractLogin.LoginEvent
-
-
Method Summary
-
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, scrollIntoView, set, setElement, setId, setVisible
-
-
-
-
Constructor Detail
-
LoginForm
public LoginForm()
-
LoginForm
public LoginForm(LoginI18n i18n)
-
-