|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.vaadin.server.AbstractClientConnector
com.vaadin.ui.AbstractComponent
com.vaadin.ui.CustomComponent
com.vaadin.ui.LoginForm
VerticalLayout with two
TextFields can be used instead.
@Deprecated public class LoginForm
LoginForm is a Vaadin component to handle common problem among Ajax applications: browsers password managers don't fill dynamically created forms like all those UI elements created by Vaadin.
For developer it is easy to use: add component to a desired place in you UI and add LoginListener to validate form input. Behind the curtain LoginForm creates an iframe with static html that browsers detect.
Login form is by default 100% width and height, so consider using it inside a
sized Panel or Window.
Login page html can be overridden by replacing protected getLoginHTML method. As the login page is actually an iframe, styles must be handled manually. By default component tries to guess the right place for theme css.
| Nested Class Summary | |
|---|---|
static class |
LoginForm.LoginEvent
Deprecated. This event is sent when login form is submitted. |
static interface |
LoginForm.LoginListener
Deprecated. Login listener is a class capable to listen LoginEvents sent from LoginBox |
| Nested classes/interfaces inherited from interface com.vaadin.ui.HasComponents |
|---|
HasComponents.ComponentAttachDetachNotifier, HasComponents.ComponentAttachEvent, HasComponents.ComponentAttachListener, HasComponents.ComponentDetachEvent, HasComponents.ComponentDetachListener |
| Nested classes/interfaces inherited from interface com.vaadin.ui.Component |
|---|
Component.ErrorEvent, Component.Event, Component.Focusable, Component.Listener |
| Nested classes/interfaces inherited from interface com.vaadin.server.ClientConnector |
|---|
ClientConnector.AttachEvent, ClientConnector.AttachListener, ClientConnector.ConnectorErrorEvent, ClientConnector.DetachEvent, ClientConnector.DetachListener |
| Nested classes/interfaces inherited from interface com.vaadin.server.Sizeable |
|---|
Sizeable.Unit |
| Field Summary |
|---|
| Fields inherited from interface com.vaadin.server.Sizeable |
|---|
SIZE_UNDEFINED, UNITS_CM, UNITS_EM, UNITS_EX, UNITS_INCH, UNITS_MM, UNITS_PERCENTAGE, UNITS_PICAS, UNITS_PIXELS, UNITS_POINTS |
| Constructor Summary | |
|---|---|
LoginForm()
Deprecated. |
|
| Method Summary | |
|---|---|
void |
addListener(LoginForm.LoginListener listener)
Deprecated. As of 7.0, replaced by addLoginListener(LoginListener) |
void |
addLoginListener(LoginForm.LoginListener listener)
Deprecated. Adds LoginListener to handle login logic |
void |
beforeClientResponse(boolean initial)
Deprecated. Called before the shared state and RPC invocations are sent to the client. |
java.lang.String |
getLoginButtonCaption()
Deprecated. Returns the caption for the login button. |
protected java.lang.String |
getLoginHTML()
Deprecated. Returns byte array containing login page html. |
java.lang.String |
getPasswordCaption()
Deprecated. Returns the caption for the password field. |
java.lang.String |
getUsernameCaption()
Deprecated. Returns the caption for the user name field. |
boolean |
handleConnectorRequest(VaadinRequest request,
VaadinResponse response,
java.lang.String path)
Deprecated. Handle a request directed to this connector. |
void |
removeListener(LoginForm.LoginListener listener)
Deprecated. As of 7.0, replaced by removeLoginListener(LoginListener) |
void |
removeLoginListener(LoginForm.LoginListener listener)
Deprecated. Removes LoginListener |
void |
setHeight(float height,
Sizeable.Unit unit)
Deprecated. Sets the height of the object. |
void |
setLoginButtonCaption(java.lang.String loginButtonCaption)
Deprecated. Sets the caption (button text) to show for the login button. |
void |
setPasswordCaption(java.lang.String passwordCaption)
Deprecated. Sets the caption to show for the password field. |
void |
setUsernameCaption(java.lang.String usernameCaption)
Deprecated. Sets the caption to show for the user name field. |
void |
setWidth(float width,
Sizeable.Unit unit)
Deprecated. Sets the width of the object. |
| Methods inherited from class com.vaadin.ui.CustomComponent |
|---|
getComponentCount, getCompositionRoot, iterator, setCompositionRoot |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.vaadin.ui.Component |
|---|
addListener, addStyleName, attach, getCaption, getDescription, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getStyleName, getUI, isEnabled, isReadOnly, isVisible, removeListener, removeStyleName, setCaption, setEnabled, setIcon, setId, setPrimaryStyleName, setReadOnly, setStyleName, setVisible |
| Methods inherited from interface com.vaadin.server.ClientConnector |
|---|
addAttachListener, addDetachListener, detach, encodeState, getErrorHandler, getExtensions, getRpcManager, getStateType, isConnectorEnabled, markAsDirty, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler, setParent |
| Methods inherited from interface com.vaadin.shared.Connector |
|---|
getConnectorId |
| Methods inherited from interface com.vaadin.server.Sizeable |
|---|
getHeight, getHeightUnits, getWidth, getWidthUnits, setHeight, setSizeFull, setSizeUndefined, setWidth |
| Constructor Detail |
|---|
public LoginForm()
| Method Detail |
|---|
public boolean handleConnectorRequest(VaadinRequest request,
VaadinResponse response,
java.lang.String path)
throws java.io.IOException
ClientConnectorConnectorResources.
Requests to /APP/connector/[ui id]/[connector id]/ are
routed to this method with the remaining part of the requested path
available in the path parameter.
DynamicConnectorResource can be used to easily make an
appropriate URL available to the client-side code.
handleConnectorRequest in interface ClientConnectorhandleConnectorRequest in class AbstractClientConnectorrequest - the request that should be handledresponse - the response object to which the response should be writtenpath - the requested relative path
true if the request has been handled,
false if no response has been written.
java.io.IOException - if there is a problem generating a response.public void beforeClientResponse(boolean initial)
ClientConnector
This method must not alter the component hierarchy in any way. Calling
ClientConnector.markAsDirty() from this method will have no effect.
beforeClientResponse in interface ClientConnectorbeforeClientResponse in class AbstractComponentinitial - true if the client-side connector will be created
and initialized after this method has been invoked.
false if there is already an initialized
client-side connector.protected java.lang.String getLoginHTML()
public void addLoginListener(LoginForm.LoginListener listener)
listener - @Deprecated public void addListener(LoginForm.LoginListener listener)
addLoginListener(LoginListener)
public void removeLoginListener(LoginForm.LoginListener listener)
listener - @Deprecated public void removeListener(LoginForm.LoginListener listener)
removeLoginListener(LoginListener)
public void setWidth(float width,
Sizeable.Unit unit)
Sizeable
setWidth in interface SizeablesetWidth in class AbstractComponentwidth - the width of the object.unit - the unit used for the width.
public void setHeight(float height,
Sizeable.Unit unit)
Sizeable
setHeight in interface SizeablesetHeight in class AbstractComponentheight - the height of the object.unit - the unit used for the width.public java.lang.String getUsernameCaption()
public void setUsernameCaption(java.lang.String usernameCaption)
usernameCaption - public java.lang.String getPasswordCaption()
public void setPasswordCaption(java.lang.String passwordCaption)
passwordCaption - public java.lang.String getLoginButtonCaption()
public void setLoginButtonCaption(java.lang.String loginButtonCaption)
loginButtonCaption -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||