@Tag(value="vaadin-login-overlay") @HtmlImport(value="frontend://bower_components/vaadin-login/src/vaadin-login-overlay.html") @HtmlImport(value="flow-component-renderer.html") public class LoginOverlay extends AbstractLogin
<vaadin-login-overlay> component.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() |
com.vaadin.flow.component.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(com.vaadin.flow.component.Component title)
Sets the application title,
null to remove any previously |
void |
setTitle(String title)
Sets the application title
|
addForgotPasswordListener, addLoginListener, getAction, isError, isForgotPasswordButtonVisible, onEnabledStateChanged, setAction, setError, setForgotPasswordButtonVisible, setI18naddListener, fireEvent, from, get, getChildren, getElement, getEventBus, getId, getLocale, getParent, getTranslation, getTranslation, getUI, hasListener, isTemplateMapped, isVisible, onAttach, onDetach, set, setElement, setId, setVisiblepublic 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)
getTitleAsText()@Synchronize(property="title",
value="title-changed")
public String getTitleAsText()
setTitle(Component)public void setTitle(com.vaadin.flow.component.Component title)
null to remove any previouslytitle - the title component to set, or null to remove
any previously set titlegetTitle()public com.vaadin.flow.component.Component getTitle()
setTitle(Component)null if nothing was setpublic void setDescription(String description)
description - the description stringgetDescription()@Synchronize(property="description",
value="description-changed")
public String getDescription()
Copyright © 2018–2019 Vaadin Ltd. All rights reserved.