|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.openadaptor.hospital.listeners.HATKeyListener
public class HATKeyListener
class to provide a key stroke listener for the login dialog. This is used when we are using Database authorisation of the user and whatever username and password they type is copied over to the database username and password.
| Field Summary | |
|---|---|
(package private) javax.swing.JTextField |
_destPassword
|
(package private) javax.swing.JTextField |
_destText
|
(package private) boolean |
_isPassword
flag to indicate that we are dealing with JPasswordField's rather than JTextField's |
(package private) javax.swing.JTextField |
_sourcePassword
reference to the source and destination password fields which we are monitoring for keystrokes |
(package private) javax.swing.JTextField |
_sourceText
reference to the source and destination text fields which we are monitoring for keystrokes |
| Constructor Summary | |
|---|---|
HATKeyListener(javax.swing.JPasswordField source,
javax.swing.JPasswordField dest)
constructor. |
|
HATKeyListener(javax.swing.JTextField source,
javax.swing.JTextField dest)
constructor. |
|
| Method Summary | |
|---|---|
void |
keyPressed(java.awt.event.KeyEvent evt)
|
void |
keyReleased(java.awt.event.KeyEvent evt)
|
void |
keyTyped(java.awt.event.KeyEvent evt)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
javax.swing.JTextField _sourceText
javax.swing.JTextField _destText
javax.swing.JTextField _sourcePassword
javax.swing.JTextField _destPassword
boolean _isPassword
| Constructor Detail |
|---|
public HATKeyListener(javax.swing.JTextField source,
javax.swing.JTextField dest)
source - the source componentdest - the destination component
public HATKeyListener(javax.swing.JPasswordField source,
javax.swing.JPasswordField dest)
source - the source componentdest - the destination component| Method Detail |
|---|
public void keyPressed(java.awt.event.KeyEvent evt)
keyPressed in interface java.awt.event.KeyListenerpublic void keyReleased(java.awt.event.KeyEvent evt)
keyReleased in interface java.awt.event.KeyListenerpublic void keyTyped(java.awt.event.KeyEvent evt)
keyTyped in interface java.awt.event.KeyListener
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||