Class LoginForm
- All Implemented Interfaces:
ClickHandler
,ExecutableView
,FullScreen
,HomeView
,ValueChangeHandler
,com.vaadin.flow.component.AttachNotifier
,com.vaadin.flow.component.ComponentEventListener<com.vaadin.flow.component.ClickEvent<? extends com.vaadin.flow.component.Component>>
,com.vaadin.flow.component.DetachNotifier
,com.vaadin.flow.component.HasElement
,com.vaadin.flow.component.HasSize
,com.vaadin.flow.component.HasStyle
,com.vaadin.flow.component.HasValue.ValueChangeListener
,Serializable
,Runnable
,EventListener
TextContent
named
"com.storedobject.ui.LoginForm". If this template exists, this will be used for rendering the login view
instead of the default one. Following id-values are used to map the necessary fields in the template:
id = "layout" (Should be an HTML div tag. Represents the outermost layout in which the whole login form is wrapped. This is optional.)
id = "login" (Should be a vaadin-combo-box tag. Represents user-name field. Not working due to a bug, use "user" instead.)
id = "user" (Should be a vaadin-text-field tag. Represents user-name field.)
id = "remember" (Should be a vaadin-checkbox tag. Used to remember the user-name. This is optional.)
id = "password" (Should be a vaadin-password-field tag.)
id = "authCode" (Authenticator code. Should be a vaadin-custom-field tag. This is optional.)
id = "cram" (Should be a vaadin-custom-field tag. This is optional.)
id = "biometric" (Should be a so-auth tag. Used for showing biometric option. This is optional.)
id = "ok" ('OK' or 'Sign in' button. This should be a vaadin-button tag.)
id = "cancel" ('Cancel' button. This should be a vaadin-button tag.)
id = "forgot" ('Forgot Password' button. This should be a vaadin-button tag. This is optional.)
id = "forgotLink" ('Forgot Password' link. This should be an HTML a tag. This is optional.)
id = "terms" (Should be a vaadin-checkbox tag. User needs to click this always. This is optional.)
id = "year" (Should be a span tag. Value of the current year will be set to this. This is optional.)
id = "viewX" (The value of X can be anything. Should be an HTML a tag with href attribute set to empty string. Typically used for providing static content views. This is optional.)
Additional attributes can be defined for certain id values:
id = "terms" A "message" attribute can be specified for the message to show if it is not checked.
id = "viewX" A "file" attribute must be specified with the name of the file to view. A "caption" attribute may be specified if you want to show the caption as something other than the file name.
- Author:
- Syam
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.storedobject.ui.util.HtmlTemplate
HtmlTemplate.ComponentCreator, HtmlTemplate.StreamSupplier, HtmlTemplate.StyleSupplier
Nested classes/interfaces inherited from interface com.storedobject.vaadin.ClickHandler
ClickHandler.ModifiedClickEvent<C extends com.vaadin.flow.component.Component>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
abort()
Abort this.void
close()
Close this.protected com.vaadin.flow.component.Component
void
Decorate the outermost component if required.void
execute()
Execute this by displaying it in a View.void
viewConstructed
(View view) This will be invoked when theView
is constructed for the first time.Methods inherited from class com.storedobject.ui.TemplateView
getComponent, getView, setCaption
Methods inherited from class com.storedobject.ui.TemplateLayout
center
Methods inherited from class com.storedobject.ui.util.HtmlTemplate
build, clearCache, createComponentForId, isCreated, onAttach, setComponentCreator, setView
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, onDetach, onEnabledStateChanged, 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.storedobject.vaadin.ClickHandler
clicked, doubleClicked, onComponentEvent, rightClicked
Methods inherited from interface com.vaadin.flow.component.DetachNotifier
addDetachListener
Methods inherited from interface com.storedobject.vaadin.ExecutableView
clean, clearAlerts, clicked, createMenuItem, error, execute, getApplication, getCaption, getMenuIconName, getMenuItem, getView, invoke, isCloseable, isFullScreen, isHomeView, log, log, message, returnedFrom, run, setClickable, speak, trackValueChange, tray, valueChanged, warning
Methods inherited from interface com.vaadin.flow.component.HasElement
getElement
Methods inherited from interface com.vaadin.flow.component.HasSize
getHeight, getHeightUnit, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getWidth, getWidthUnit, setHeight, setHeight, setHeightFull, setMaxHeight, setMaxHeight, setMaxWidth, setMaxWidth, setMinHeight, setMinHeight, setMinWidth, setMinWidth, setSizeFull, setSizeUndefined, setWidth, setWidth, setWidthFull
Methods inherited from interface com.vaadin.flow.component.HasStyle
addClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName
Methods inherited from interface com.storedobject.vaadin.ValueChangeHandler
valueChanged
-
Constructor Details
-
LoginForm
public LoginForm() -
LoginForm
-
-
Method Details
-
viewConstructed
Description copied from class:TemplateView
This will be invoked when theView
is constructed for the first time.- Overrides:
viewConstructed
in classTemplateView
- Parameters:
view
- View that is constructed now.
-
abort
public void abort()Description copied from interface:ExecutableView
Abort this.- Specified by:
abort
in interfaceExecutableView
-
close
public void close()Description copied from interface:ExecutableView
Close this.- Specified by:
close
in interfaceExecutableView
-
execute
public void execute()Description copied from interface:ExecutableView
Execute this by displaying it in a View.- Specified by:
execute
in interfaceExecutableView
-
decorateComponent
public void decorateComponent()Description copied from class:TemplateView
Decorate the outermost component if required. (This will be invoked after applying theView.decorateComponent()
.- Overrides:
decorateComponent
in classTemplateView
-
createComponentForId
- Overrides:
createComponentForId
in classHtmlTemplate
-