LoginForm is a Muntjac component to handle common problem among Ajax
applications: browsers password managers don't fill dynamically created
forms like all those UI elements created by Muntjac.
For developer it is easy to use: add component to a desired place in
you UI and add ILoginListener 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.
Note, this is a new Ajax terminal specific component and is likely to
change.
|
|
|
|
|
attach(self)
Notifies all contained components that the container is attached to a
window. |
source code
|
|
|
detach(self)
Notifies all contained components that the container is detached from
a window. |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
getUsernameCaption(self)
Returns the caption for the user name field. |
source code
|
|
|
|
|
getPasswordCaption(self)
Returns the caption for the password field. |
source code
|
|
|
|
|
getLoginButtonCaption(self)
Returns the caption for the login button. |
source code
|
|
|
|
Inherited from custom_component.CustomComponent :
addComponent ,
getComponentCount ,
getComponentIterator ,
getComponentType ,
getCompositionRoot ,
moveComponentsFrom ,
paintContent ,
removeAllComponents ,
removeComponent ,
replaceComponent ,
setComponentType ,
setCompositionRoot
Inherited from abstract_component_container.AbstractComponentContainer :
fireComponentAttachEvent ,
fireComponentDetachEvent ,
getInvalidSizedChildren ,
repaintChangedChildTrees ,
repaintChildTrees ,
requestRepaintAll ,
setEnabled
Inherited from abstract_component.AbstractComponent :
__getstate__ ,
__setstate__ ,
addStyleName ,
changeVariables ,
childRequestedRepaint ,
fireComponentErrorEvent ,
fireComponentEvent ,
fireEvent ,
fireRequestRepaintEvent ,
focus ,
getApplication ,
getCSSHeight ,
getCSSWidth ,
getCaption ,
getComponentError ,
getData ,
getDebugId ,
getDescription ,
getErrorHandler ,
getErrorMessage ,
getHeight ,
getHeightUnits ,
getIcon ,
getListeners ,
getLocale ,
getParent ,
getStyle ,
getStyleName ,
getWidth ,
getWidthUnits ,
getWindow ,
handleError ,
hasListeners ,
isEnabled ,
isImmediate ,
isReadOnly ,
isVisible ,
paint ,
parseStringSize ,
registerCallback ,
registerListener ,
removeStyleName ,
requestRepaint ,
requestRepaintRequests ,
setCaption ,
setComponentError ,
setData ,
setDebugId ,
setDescription ,
setErrorHandler ,
setHeightUnits ,
setIcon ,
setImmediate ,
setLocale ,
setParent ,
setReadOnly ,
setSizeFull ,
setSizeUndefined ,
setStyle ,
setStyleName ,
setVisible ,
setWidthUnits ,
withdrawCallback ,
withdrawListener
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__sizeof__ ,
__str__ ,
__subclasshook__
|