|
|||||||||
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.Dialog | +--com.ibm.db.LogonDialog
LogonDialog represents a dialog to obtain the userID and password prior to making a connection to the database.
Inner classes inherited from class java.awt.Component |
java.awt.Component.AWTTreeLock |
Field Summary | |
private java.awt.Button |
buttonCancel
|
private java.awt.Button |
buttonOK
|
private boolean |
cancelPrompt
|
private static java.lang.String |
copyright
|
private java.awt.Component |
parentRef
|
private java.lang.String |
pwd
|
private java.awt.TextField |
textFieldLogonID
|
private java.awt.TextField |
textFieldPassword
|
private java.lang.String |
uid
|
Fields inherited from class java.awt.Dialog |
base,
keepBlocking,
modal,
nameCounter,
resizable,
serialVersionUID,
title |
Fields inherited from class java.awt.Window |
active,
base,
focusMgr,
inputContext,
nameCounter,
nativeActive,
OPENED,
ownedWindowList,
serialVersionUID,
state,
warningString,
weakThis,
windowListener,
windowSerializedDataVersion |
Fields inherited from class java.awt.Container |
component,
containerListener,
containerSerializedDataVersion,
dispatcher,
layoutMgr,
maxSize,
ncomponents,
serialVersionUID |
Fields inherited from class java.awt.Component |
actionListenerK,
adjustmentListenerK,
appContext,
assert,
background,
BOTTOM_ALIGNMENT,
CENTER_ALIGNMENT,
changeSupport,
componentListener,
componentListenerK,
componentOrientation,
componentSerializedDataVersion,
containerListenerK,
cursor,
dropTarget,
enabled,
eventMask,
focusListener,
focusListenerK,
font,
foreground,
hasFocus,
height,
incRate,
inputMethodListener,
inputMethodListenerK,
isInc,
isPacked,
itemListenerK,
keyListener,
keyListenerK,
LEFT_ALIGNMENT,
locale,
LOCK,
minSize,
mouseListener,
mouseListenerK,
mouseMotionListener,
mouseMotionListenerK,
name,
nameExplicitlySet,
newEventsOnly,
ownedWindowK,
parent,
peer,
peerFont,
popups,
prefSize,
RIGHT_ALIGNMENT,
serialVersionUID,
textListenerK,
TOP_ALIGNMENT,
valid,
visible,
width,
windowListenerK,
x,
y |
Constructor Summary | |
LogonDialog(java.awt.Component c)
Constructs a new LogonDialog. |
Method Summary | |
void |
actionPerformed(java.awt.event.ActionEvent e)
Handles actionPerformed events. |
protected static void |
buildCons(java.awt.GridBagConstraints gbc,
int gx,
int gy,
int gw,
int gh,
int wx,
int wy)
|
protected static void |
centerWindowOnComponent(java.awt.Window w,
java.awt.Component c)
|
protected static void |
centerWindowOnRectangle(java.awt.Window w,
java.awt.Rectangle r)
|
private void |
connButtonOK()
|
protected boolean |
getCancelPrompt()
|
static java.awt.Frame |
getFrameForComponent(java.awt.Component parentComponent)
Returns the specified component's Frame. |
java.awt.Insets |
getInsets()
Returns the insets for the dialog. |
protected java.lang.String |
getPwd()
|
private java.awt.TextField |
getTextFieldLogonID()
|
private java.awt.TextField |
getTextFieldPassword()
|
protected java.lang.String |
getUid()
|
void |
keyPressed(java.awt.event.KeyEvent e)
|
void |
keyReleased(java.awt.event.KeyEvent e)
|
void |
keyTyped(java.awt.event.KeyEvent e)
|
boolean |
promptAndSetUID(DatabaseConnectionSpec c)
Displays a logon dialog to obtain the userid and password. |
boolean |
promptAndSetUID(java.lang.String[] uid,
java.lang.String[] pwd)
Displays a logon dialog to obtain the userid and password. |
private void |
setCancelPrompt(boolean c)
|
protected void |
setPwd(java.lang.String s)
|
protected void |
setUid(java.lang.String s)
|
protected void |
showDialog()
|
void |
windowActivated(java.awt.event.WindowEvent e)
Method to handle events for the WindowListener interface. |
void |
windowClosed(java.awt.event.WindowEvent e)
Method to handle events for the WindowListener interface. |
void |
windowClosing(java.awt.event.WindowEvent e)
Method to handle events for the WindowListener interface. |
void |
windowDeactivated(java.awt.event.WindowEvent e)
Method to handle events for the WindowListener interface. |
void |
windowDeiconified(java.awt.event.WindowEvent e)
Method to handle events for the WindowListener interface. |
void |
windowIconified(java.awt.event.WindowEvent e)
Method to handle events for the WindowListener interface. |
void |
windowOpened(java.awt.event.WindowEvent e)
Method to handle events for the WindowListener interface. |
Methods inherited from class java.awt.Dialog |
|
Methods inherited from class java.awt.Window |
addOwnedWindow,
addWindowListener,
applyResourceBundle,
applyResourceBundle,
connectOwnedWindow,
dispatchEventImpl,
eventEnabled,
finalize,
getFocusOwner,
getInputContext,
getLocale,
getOwnedWindows,
getOwner,
getToolkit,
getWarningString,
isActive,
isShowing,
nextFocus,
ownedInit,
pack,
postEvent,
postProcessKeyEvent,
postWindowEvent,
preProcessKeyEvent,
processEvent,
processWindowEvent,
readObject,
removeOwnedWindow,
removeWindowListener,
setCursor,
setFocusOwner,
setWarningString,
toBack,
toFront,
transferFocus,
writeObject |
Methods inherited from class java.awt.Container |
add,
add,
add,
add,
add,
addContainerListener,
addImpl,
applyOrientation,
countComponents,
deliverEvent,
dispatchEventToSelf,
doLayout,
findComponentAt,
findComponentAt,
getAlignmentX,
getAlignmentY,
getComponent,
getComponentAt,
getComponentAt,
getComponentCount,
getComponents_NoClientCode,
getComponents,
getCursorTarget,
getLayout,
getMaximumSize,
getMinimumSize,
getMouseEventTarget,
getPreferredSize,
getWindow,
insets,
invalidate,
invalidateTree,
isAncestorOf,
layout,
lightweightPrint,
list,
list,
locate,
minimumSize,
paint,
paintComponents,
postsOldMouseEvents,
preferredSize,
print,
printComponents,
printOneComponent,
processContainerEvent,
proxyEnableEvents,
proxyRequestFocus,
remove,
remove,
removeAll,
removeContainerListener,
removeNotify,
setFont,
setLayout,
update,
updateCursor,
validate,
validateTree |
Methods inherited from class java.awt.Component |
action,
add,
addComponentListener,
addFocusListener,
addInputMethodListener,
addKeyListener,
addMouseListener,
addMouseMotionListener,
addPropertyChangeListener,
addPropertyChangeListener,
areInputMethodsEnabled,
bounds,
checkImage,
checkImage,
coalesceEvents,
contains,
contains,
createImage,
createImage,
disable,
disableEvents,
dispatchEvent,
enable,
enable,
enableEvents,
enableInputMethods,
firePropertyChange,
getBackground,
getBounds,
getBounds,
getColorModel,
getComponentOrientation,
getCursor,
getDropTarget,
getFont_NoClientCode,
getFont,
getFontMetrics,
getForeground,
getGraphics,
getHeight,
getInputMethodRequests,
getIntrinsicCursor,
getLocation,
getLocation,
getLocationOnScreen,
getName,
getNativeContainer,
getParent_NoClientCode,
getParent,
getPeer,
getSize,
getSize,
getToolkitImpl,
getTreeLock,
getWidth,
getWindowForObject,
getX,
getY,
gotFocus,
handleEvent,
hasFocus,
imageUpdate,
inside,
isDisplayable,
isDoubleBuffered,
isEnabled,
isEnabledImpl,
isFocusTraversable,
isLightweight,
isOpaque,
isValid,
isVisible,
keyDown,
keyUp,
list,
list,
list,
location,
lostFocus,
mouseDown,
mouseDrag,
mouseEnter,
mouseExit,
mouseMove,
mouseUp,
move,
nextFocus,
paintAll,
prepareImage,
prepareImage,
printAll,
processComponentEvent,
processFocusEvent,
processInputMethodEvent,
processKeyEvent,
processMouseEvent,
processMouseMotionEvent,
remove,
removeComponentListener,
removeFocusListener,
removeInputMethodListener,
removeKeyListener,
removeMouseListener,
removeMouseMotionListener,
removePropertyChangeListener,
removePropertyChangeListener,
repaint,
repaint,
repaint,
repaint,
requestFocus,
reshape,
resize,
resize,
setBackground,
setBounds,
setBounds,
setComponentOrientation,
setDropTarget,
setEnabled,
setForeground,
setLocale,
setLocation,
setLocation,
setName,
setSize,
setSize,
setVisible,
show,
size,
toString,
transferFocus |
Methods inherited from class java.lang.Object |
clone,
equals,
getClass,
hashCode,
notify,
notifyAll,
registerNatives,
wait,
wait,
wait |
Field Detail |
private java.awt.TextField textFieldLogonID
private java.awt.TextField textFieldPassword
private java.awt.Button buttonOK
private java.awt.Button buttonCancel
private java.awt.Component parentRef
private java.lang.String uid
private java.lang.String pwd
private boolean cancelPrompt
private static final java.lang.String copyright
Constructor Detail |
public LogonDialog(java.awt.Component c)
Method Detail |
public void actionPerformed(java.awt.event.ActionEvent e)
e
- ActionPerformed eventprotected static void buildCons(java.awt.GridBagConstraints gbc, int gx, int gy, int gw, int gh, int wx, int wy)
protected static void centerWindowOnComponent(java.awt.Window w, java.awt.Component c)
protected static void centerWindowOnRectangle(java.awt.Window w, java.awt.Rectangle r)
private void connButtonOK()
protected boolean getCancelPrompt()
public static java.awt.Frame getFrameForComponent(java.awt.Component parentComponent)
parentComponent
- the Component to check for a Framepublic java.awt.Insets getInsets()
protected java.lang.String getPwd()
private java.awt.TextField getTextFieldLogonID()
private java.awt.TextField getTextFieldPassword()
protected java.lang.String getUid()
public void keyPressed(java.awt.event.KeyEvent e)
public void keyReleased(java.awt.event.KeyEvent e)
public void keyTyped(java.awt.event.KeyEvent e)
public boolean promptAndSetUID(java.lang.String[] uid, java.lang.String[] pwd)
uid
- the useridpwd
- passwordpublic boolean promptAndSetUID(DatabaseConnectionSpec c) throws DataException
c
- the DatabaseConnectionSpecprivate void setCancelPrompt(boolean c)
protected void setPwd(java.lang.String s)
protected void setUid(java.lang.String s)
protected void showDialog()
public void windowActivated(java.awt.event.WindowEvent e)
e
- java.awt.event.WindowEventpublic void windowClosed(java.awt.event.WindowEvent e)
e
- java.awt.event.WindowEventpublic void windowClosing(java.awt.event.WindowEvent e)
e
- java.awt.event.WindowEventpublic void windowDeactivated(java.awt.event.WindowEvent e)
e
- java.awt.event.WindowEventpublic void windowDeiconified(java.awt.event.WindowEvent e)
e
- java.awt.event.WindowEventpublic void windowIconified(java.awt.event.WindowEvent e)
e
- java.awt.event.WindowEventpublic void windowOpened(java.awt.event.WindowEvent e)
e
- java.awt.event.WindowEvent
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |