|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.Container | +--java.awt.Window | +--java.awt.Frame | +--javax.swing.JFrame | +--org.opennms.bb.eui.LoginFrame
LoginFrame provides the standard Bluebird login.
Inner classes inherited from class javax.swing.JFrame |
JFrame.AccessibleJFrame |
Inner classes inherited from class java.awt.Frame |
Frame.AccessibleAWTFrame |
Inner classes inherited from class java.awt.Window |
Window.AccessibleAWTWindow |
Inner classes inherited from class java.awt.Container |
Container.AccessibleAWTContainer |
Inner classes inherited from class java.awt.Component |
Component.AccessibleAWTComponent, Component.AWTTreeLock |
Field Summary | |
protected LoginParser |
loginParser
The parser to parse the user xml file. |
protected short |
m_counter
Counter to allow user to enter valid username and password five times |
protected String |
m_pass
|
protected String |
m_password
|
protected String |
m_user
|
protected boolean |
m_userExists
|
protected Hashtable |
m_users
The table to store the parsed user and password values. |
protected JPasswordField |
passwdText
|
protected JTextField |
userText
Login window variables. |
Fields inherited from class javax.swing.JFrame |
accessibleContext, defaultCloseOperation, EXIT_ON_CLOSE, rootPane, rootPaneCheckingEnabled |
Fields inherited from class java.awt.Frame |
base, CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, frameSerializedDataVersion, HAND_CURSOR, icon, ICONIFIED, mbManagement, menuBar, MOVE_CURSOR, N_RESIZE_CURSOR, nameCounter, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, ownedWindows, resizable, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, serialVersionUID, state, SW_RESIZE_CURSOR, TEXT_CURSOR, title, W_RESIZE_CURSOR, WAIT_CURSOR, weakThis |
Fields inherited from class java.awt.Window |
active, dbg, focusMgr, inputContext, inputContextLock, nativeActive, OPENED, ownedWindowList, warningString, windowListener, windowSerializedDataVersion |
Fields inherited from class java.awt.Container |
component, containerListener, containerSerializedDataVersion, dispatcher, layoutMgr, listeningBoundsChildren, listeningChildren, maxSize, ncomponents, needsPaint, printing, printingThreads |
Fields inherited from interface javax.swing.WindowConstants |
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSE |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
LoginFrame(String title)
The login frame object to enter into bluebird. |
Method Summary | |
protected void |
buildFrame()
Frame builder for this login window. |
String |
getPassword(String user)
Get the user and password from UI and validate against the XML. |
protected void |
handleCancel()
Close the login window |
protected void |
handlePasswordValidation()
Handles the userid and password validations by checking from 'users.xml' |
static void |
main(String[] args)
Creates the Login Sets the UI to be system dependant - this can be changed later by using the menu options |
void |
waitForValidation(String userPass)
Wait for user to enter correct userid and password. |
Methods inherited from class java.awt.Frame |
|
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait |
Methods inherited from interface java.awt.MenuContainer |
getFont, postEvent |
Field Detail |
protected JTextField userText
protected JPasswordField passwdText
protected LoginParser loginParser
protected Hashtable m_users
protected short m_counter
protected boolean m_userExists
protected String m_pass
protected String m_user
protected String m_password
Constructor Detail |
public LoginFrame(String title)
The login frame object to enter into bluebird.
Method Detail |
protected void buildFrame()
Frame builder for this login window.
protected void handlePasswordValidation()
protected void handleCancel()
public String getPassword(String user)
Get the user and password from UI and validate against the XML.
public void waitForValidation(String userPass)
Wait for user to enter correct userid and password. Allow only five times to enter in.
public static void main(String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |