Class JmixLoginForm
java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.login.AbstractLogin
com.vaadin.flow.component.login.LoginForm
io.jmix.flowui.kit.component.loginform.EnhancedLoginForm
io.jmix.flowui.component.loginform.JmixLoginForm
- 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
,org.springframework.beans.factory.Aware
,org.springframework.beans.factory.InitializingBean
,org.springframework.context.ApplicationContextAware
public class JmixLoginForm
extends EnhancedLoginForm
implements org.springframework.context.ApplicationContextAware, org.springframework.beans.factory.InitializingBean
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class io.jmix.flowui.kit.component.loginform.EnhancedLoginForm
EnhancedLoginForm.JmixLocaleChangedEvent, EnhancedLoginForm.JmixRememberMeChangedEvent, EnhancedLoginForm.LocaleChangedEvent, EnhancedLoginForm.RememberMeChangedEvent
Nested classes/interfaces inherited from class com.vaadin.flow.component.login.AbstractLogin
com.vaadin.flow.component.login.AbstractLogin.ForgotPasswordEvent, com.vaadin.flow.component.login.AbstractLogin.LoginEvent
-
Field Summary
Modifier and TypeFieldDescriptionprotected org.springframework.context.ApplicationContext
protected MessageTools
Fields inherited from class io.jmix.flowui.kit.component.loginform.EnhancedLoginForm
localeItemLabelGenerator, locales, rememberMe, selectedLocale
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
protected String
applyDefaultValueFormat
(Locale locale) protected void
protected Locale
localeFromString
(String locale) protected String
localeToString
(Locale locale) void
setApplicationContext
(org.springframework.context.ApplicationContext applicationContext) protected void
setupLocale
(Locale locale) Methods inherited from class io.jmix.flowui.kit.component.loginform.EnhancedLoginForm
addLocaleChangedListener, addRememberMeChangedListener, fireLocaleChangedEvent, generateItemLabel, getLocaleItemLabelGenerator, getPassword, getSelectedLocale, getUsername, handleLocaleChanged, handleRememberMeChanged, isLocaleChanged, isLocalesVisible, isRememberMe, isRememberMeChanged, isRememberMeVisible, onLocaleChangedEvent, onRememberMeChangedEvent, setLocaleItemLabelGenerator, setLocaleItems, setLocalesVisible, setPassword, setRememberMe, setRememberMeVisible, setSelectedLocale, setUsername
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, removeFromParent, scrollIntoView, scrollIntoView, set, setElement, setId, setVisible
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.vaadin.flow.component.AttachNotifier
addAttachListener
Methods inherited from interface com.vaadin.flow.component.DetachNotifier
addDetachListener
Methods inherited from interface com.vaadin.flow.component.HasElement
getElement
Methods inherited from interface com.vaadin.flow.component.HasEnabled
isEnabled, setEnabled
Methods inherited from interface com.vaadin.flow.component.HasStyle
addClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName
-
Field Details
-
applicationContext
protected org.springframework.context.ApplicationContext applicationContext -
messageTools
-
-
Constructor Details
-
JmixLoginForm
public JmixLoginForm()
-
-
Method Details
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException - Specified by:
setApplicationContext
in interfaceorg.springframework.context.ApplicationContextAware
- Throws:
org.springframework.beans.BeansException
-
afterPropertiesSet
- Specified by:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
- Throws:
Exception
-
autowireDependencies
protected void autowireDependencies() -
setupLocale
- Overrides:
setupLocale
in classEnhancedLoginForm
-
localeToString
- Overrides:
localeToString
in classEnhancedLoginForm
-
localeFromString
- Overrides:
localeFromString
in classEnhancedLoginForm
-
applyDefaultValueFormat
- Overrides:
applyDefaultValueFormat
in classEnhancedLoginForm
-