@Tag(value="vaadin-login-overlay") @NpmPackage(value="@vaadin/vaadin-login", version="1.3.0") @JsModule(value="@vaadin/vaadin-login/src/vaadin-login-overlay.js") public class LoginOverlay extends AbstractLogin
<vaadin-login-overlay>
component.
On LoginForm.LoginEvent
component becomes disabled. Disabled
component stops to process login events, however the
LoginForm.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.AbstractLogin.ForgotPasswordEvent, AbstractLogin.LoginEvent
Constructor and Description |
---|
LoginOverlay() |
LoginOverlay(LoginI18n i18n) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the login overlay.
|
String |
getDescription() |
Component |
getTitle()
Returns custom title component which was set via
setTitle(Component) |
String |
getTitleAsText()
Returns the value of the title property or a text content of the title if
it was set via
setTitle(Component) |
boolean |
isOpened() |
void |
setDescription(String description)
Sets the application description.
|
void |
setOpened(boolean opened)
Opens or closes the login overlay.
|
void |
setTitle(Component title)
Sets the application title,
null to remove any previous
title and to display title set via setTitle(String) . |
void |
setTitle(String title)
Sets the application title.
|
addForgotPasswordListener, addLoginListener, getAction, isError, isForgotPasswordButtonVisible, onEnabledStateChanged, setAction, setError, setForgotPasswordButtonVisible, setI18n
addListener, fireEvent, from, get, getChildren, getElement, getEventBus, getId, getLocale, getParent, getTranslation, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onAttach, onDetach, set, setElement, setId, setVisible
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isEnabled, setEnabled
getElement
addAttachListener
addDetachListener
public LoginOverlay()
public LoginOverlay(LoginI18n i18n)
public void close()
Note: This method also removes the overlay component from the DOM after closing it, unless you have added the component manually.
@Synchronize(property="opened", value="opened-changed") public boolean isOpened()
public void setOpened(boolean opened)
HasEnabled.setEnabled(boolean)
Note: Overlay will be attached or detached from the DOM automatically, if it was not added manually.
opened
- true
to open the login overlay, false
to close
itpublic void setTitle(String title)
setTitle(Component)
, which will
reset the custom title, if it was set. Custom title can be reset only
when the overlay is closed.
Title is a part of the I18n object. See AbstractLogin.setI18n(LoginI18n)
.getTitleAsText()
@Synchronize(property="title", value="title-changed") public String getTitleAsText()
setTitle(Component)
public void setTitle(Component title)
null
to remove any previous
title and to display title set via setTitle(String)
. Note: the
title component has to be set when the overlay is closed.title
- the title component to set, or null
to remove any
previously set titlegetTitle()
public Component getTitle()
setTitle(Component)
null
if nothing was setpublic void setDescription(String description)
AbstractLogin.setI18n(LoginI18n)
.description
- the description stringgetDescription()
@Synchronize(property="description", value="description-changed") public String getDescription()
Copyright © 2025. All rights reserved.