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.StyleSupplierNested 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 TypeMethodDescriptionvoidabort()Abort this.voidclose()Close this.protected com.vaadin.flow.component.ComponentvoidDecorate the outermost component if required.voidexecute()Execute this by displaying it in a View.voidviewConstructed(View view) This will be invoked when theViewis constructed for the first time.Methods inherited from class com.storedobject.ui.TemplateView
getComponent, getView, setCaptionMethods inherited from class com.storedobject.ui.TemplateLayout
centerMethods inherited from class com.storedobject.ui.util.HtmlTemplate
build, clearCache, createComponentForId, isCreated, onAttach, setComponentCreator, setViewMethods 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, setVisibleMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.vaadin.flow.component.AttachNotifier
addAttachListenerMethods inherited from interface com.storedobject.vaadin.ClickHandler
clicked, doubleClicked, onComponentEvent, rightClickedMethods inherited from interface com.vaadin.flow.component.DetachNotifier
addDetachListenerMethods 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, warningMethods inherited from interface com.vaadin.flow.component.HasElement
getElementMethods 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, setWidthFullMethods inherited from interface com.vaadin.flow.component.HasStyle
addClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassNameMethods inherited from interface com.storedobject.vaadin.ValueChangeHandler
valueChanged
-
Constructor Details
-
LoginForm
public LoginForm() -
LoginForm
-
-
Method Details
-
viewConstructed
Description copied from class:TemplateViewThis will be invoked when theViewis constructed for the first time.- Overrides:
viewConstructedin classTemplateView- Parameters:
view- View that is constructed now.
-
abort
public void abort()Description copied from interface:ExecutableViewAbort this.- Specified by:
abortin interfaceExecutableView
-
close
public void close()Description copied from interface:ExecutableViewClose this.- Specified by:
closein interfaceExecutableView
-
execute
public void execute()Description copied from interface:ExecutableViewExecute this by displaying it in a View.- Specified by:
executein interfaceExecutableView
-
decorateComponent
public void decorateComponent()Description copied from class:TemplateViewDecorate the outermost component if required. (This will be invoked after applying theView.decorateComponent().- Overrides:
decorateComponentin classTemplateView
-
createComponentForId
- Overrides:
createComponentForIdin classHtmlTemplate
-