|
||||||||||
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 |
---|
components |
Fields inherited from class javax.rad.genui.UIComponent |
---|
lLastTranslationModified, parent |
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 | |
---|---|
String |
getError()
Gets the current error text, if set. |
IImage |
getInfoImage()
Gets the login-info image. |
int |
getMode()
Returns the current mode. |
String |
getNewPassword()
Gets the new password. |
String |
getPassword()
Gets the password. |
String |
getUserName()
Gets the user name. |
protected void |
init()
Initializes the UI components. |
void |
setError(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(String pPassword)
Sets the password. |
void |
setUserName(String pUserName)
Sets the user name. |
Methods inherited from class javax.rad.genui.container.UIInternalFrame |
---|
close, dispose, isClosable, isClosed, 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, checkAdd, getComponent, getComponentCount, getLayout, indexOf, remove, remove, removeAll, setLayout, setZOrder |
Methods inherited from class javax.rad.genui.UIResource |
---|
equals, getUIResource, hashCode, 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, isActive, isDisposed, pack |
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 connectionMethod Detail |
---|
protected void init()
public void setUserName(String pUserName)
pUserName
- the user namepublic String getUserName()
public void setPassword(String pPassword)
pPassword
- the passwordpublic String getPassword()
public String getNewPassword()
null
if ther is no new password
SecurityException
- if the new password is invalidpublic void setInfoImage(IImage pImage)
pImage
- the imagepublic IImage getInfoImage()
public void setError(String pError)
pError
- the error textpublic 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_LOGIN
public int getMode()
MODE_CHANGE_PASSWORD
or MODE_LOGIN
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |