|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.rad.genui.UIResource<C>
javax.rad.genui.UIComponent<C>
javax.rad.genui.UIContainer<C>
javax.rad.genui.container.AbstractWindow<C>
javax.rad.genui.container.AbstractFrame<IInternalFrame>
javax.rad.genui.container.UIInternalFrame
com.sibvisions.rad.application.Login
public class Login
The Login creates and layouts the UI components for
the login screen of the Application application.
| Field Summary | |
|---|---|
static int |
MODE_CHANGE_PASSWORD
the mode for password change UI. |
static int |
MODE_LOGIN
the mode for standard login UI. |
| Fields inherited from class javax.rad.genui.container.AbstractFrame |
|---|
iconImage, menuBar |
| Fields inherited from class javax.rad.genui.UIContainer |
|---|
allComponents, components |
| Fields inherited from class javax.rad.genui.UIComponent |
|---|
bTranslate, lLastTranslationModified, parent, popupMenu |
| Fields inherited from class javax.rad.genui.UIResource |
|---|
uiResource |
| Fields inherited from interface javax.rad.ui.container.IFrame |
|---|
ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, NORMAL |
| Fields inherited from interface javax.rad.ui.container.IToolBarPanel |
|---|
AREA_BOTTOM, AREA_LEFT, AREA_RIGHT, AREA_TOP |
| Constructor Summary | |
|---|---|
Login(UIDesktopPanel pDesktop,
IConnectable pConnectable)
Creates a new instance of the login UI. |
|
| Method Summary | |
|---|---|
java.lang.String |
getError()
Gets the current error text, if set. |
IImage |
getInfoImage()
Gets the login-info image. |
int |
getMode()
Returns the current mode. |
java.lang.String |
getNewPassword()
Gets the new password. |
java.lang.String |
getPassword()
Gets the password. |
java.lang.String |
getUserName()
Gets the user name. |
protected void |
init()
Initializes the UI components. |
void |
setError(java.lang.String pError)
Sets an error text instead of the welcome text. |
void |
setInfoImage(IImage pImage)
Sets the login-info image. |
void |
setMode(int pMode)
Sets the mode for the login. |
void |
setPassword(java.lang.String pPassword)
Sets the password. |
void |
setUserName(java.lang.String pUserName)
Sets the user name. |
| Methods inherited from class javax.rad.genui.container.UIInternalFrame |
|---|
close, dispose, isClosable, isClosed, isGlobalActive, isIconifiable, isMaximizable, isModal, setClosable, setIconifiable, setMaximizable, setModal, toBack, toFront, topLevelAddNotify |
| Methods inherited from class javax.rad.genui.container.AbstractFrame |
|---|
addNotify, addToolBar, addToolBar, beforeAddNotify, getIconImage, getMenuBar, getState, getTitle, getToolBar, getToolBarArea, getToolBarCount, indexOfToolBar, isResizable, isToolBarMovable, removeAllToolBars, removeNotify, removeToolBar, removeToolBar, setIconImage, setMenuBar, setResizable, setState, setTitle, setToolBarArea, setToolBarMovable, updateTranslation |
| Methods inherited from class javax.rad.genui.container.AbstractWindow |
|---|
centerRelativeTo, eventWindowActivated, eventWindowClosed, eventWindowClosing, eventWindowDeactivated, eventWindowDeiconified, eventWindowIconified, eventWindowOpened, isActive, isDisposed, pack, setVisible |
| Methods inherited from class javax.rad.genui.UIContainer |
|---|
add, add, add, add, addInternal, checkAdd, contains, getComponent, getComponentCount, getComponents, getInsets, getLayout, getUIResourceContainer, indexOf, remove, remove, removeAll, removeInternal, setLayout, setUIResourceContainer, setZOrder |
| Methods inherited from class javax.rad.genui.UIResource |
|---|
eventResourceChanged, eventResourceChanged, fireResourceChanged, getObject, getObjectNames, getUIResource, hasResourceHandler, putObject, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface javax.rad.ui.container.IFrame |
|---|
getIconImage, getMenuBar, getState, getTitle, isResizable, setIconImage, setMenuBar, setResizable, setState, setTitle |
| Methods inherited from interface javax.rad.ui.container.IWindow |
|---|
centerRelativeTo, eventWindowActivated, eventWindowClosed, eventWindowClosing, eventWindowDeactivated, eventWindowDeiconified, eventWindowIconified, eventWindowOpened, getTranslation, isActive, isDisposed, pack, setTranslation |
| Methods inherited from interface javax.rad.ui.container.IToolBarPanel |
|---|
addToolBar, addToolBar, getToolBar, getToolBarArea, getToolBarCount, indexOfToolBar, removeAllToolBars, removeToolBar, removeToolBar, setToolBarArea |
| Methods inherited from interface javax.rad.ui.IContainer |
|---|
add, add, add, add, getComponent, getComponentCount, getLayout, indexOf, remove, remove, removeAll, setLayout |
| Methods inherited from interface javax.rad.ui.IResource |
|---|
getResource |
| Field Detail |
|---|
public static final int MODE_LOGIN
public static final int MODE_CHANGE_PASSWORD
| Constructor Detail |
|---|
public Login(UIDesktopPanel pDesktop,
IConnectable pConnectable)
pDesktop - the desktop for showing the framepConnectable - the main connection| Method Detail |
|---|
protected void init()
public void setUserName(java.lang.String pUserName)
pUserName - the user namepublic java.lang.String getUserName()
public void setPassword(java.lang.String pPassword)
pPassword - the passwordpublic java.lang.String getPassword()
public java.lang.String getNewPassword()
null if ther is no new password
java.lang.SecurityException - if the new password is invalidpublic void setInfoImage(IImage pImage)
pImage - the imagepublic IImage getInfoImage()
public void setError(java.lang.String pError)
pError - the error textpublic java.lang.String getError()
null if no text is setpublic void setMode(int pMode)
pMode - the mode can be one of the following: MODE_CHANGE_PASSWORD or MODE_LOGINpublic int getMode()
MODE_CHANGE_PASSWORD or MODE_LOGIN
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||