planetj.connections
Class AS400SignOnDialog

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--java.awt.Window
                    |
                    +--java.awt.Dialog
                          |
                          +--javax.swing.JDialog
                                |
                                +--planetj.gui.CMDialogJ
                                      |
                                      +--planetj.connections.AS400SignOnDialog
All Implemented Interfaces:
Accessible, ActionListener, CMTopLevelComponent, DocumentListener, EventListener, ImageObserver, MenuContainer, RootPaneContainer, Serializable, WindowConstants, WindowListener

public class AS400SignOnDialog
extends CMDialogJ
implements ActionListener, WindowListener, DocumentListener

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface javax.swing.WindowConstants
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, EXIT_ON_CLOSE, HIDE_ON_CLOSE
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
AS400SignOnDialog()
          Constructor
AS400SignOnDialog(CMFrameJ owner)
          AS400SignOnDialog constructor comment.
AS400SignOnDialog(CMFrameJ owner, boolean modal)
          AS400SignOnDialog constructor comment.
AS400SignOnDialog(CMFrameJ owner, String title)
          AS400SignOnDialog constructor comment.
AS400SignOnDialog(CMFrameJ owner, String title, boolean modal)
          AS400SignOnDialog constructor comment.
AS400SignOnDialog(Frame owner)
          AS400SignOnDialog constructor comment.
AS400SignOnDialog(Frame owner, boolean modal)
          AS400SignOnDialog constructor comment.
AS400SignOnDialog(Frame owner, String title)
          AS400SignOnDialog constructor comment.
AS400SignOnDialog(Frame owner, String title, boolean modal)
          AS400SignOnDialog constructor comment.
 
Method Summary
 void actionPerformed(ActionEvent e)
          Method to handle events for the ActionListener interface.
 void addAS400SignOnDialogListener(AS400SignOnDialogListener newListener)
           
 void cancelClicked()
          Comment
 void changedUpdate(DocumentEvent evt)
          Gives notification that an attribute or set of attributes changed.
 void checkTextFields()
          Checks to see if the all the spooled file information has been entered in order to enable the OK button
 String getExtraURLInfo()
          Gets extra URL info for the SQL connection.
 int getMaxConnections()
          The maximum number of connections in the connection pool
 int getMaxConnSeconds()
          The maximum amount of time a connection can be kept open.
 int getMinConnections()
          The minimum number of connections in the connection pool
 int getOrphanTimeout()
          The orphan timeout specifies the amout of time an application can hold a connection without using it.
 String getSystem()
          Gets the text in the system field
 String getSystemAlias()
          When the signon is sucessful, a connection pool is created with the system alias property.
 String getUserId()
          Gets the text in the user id field
 void insertUpdate(DocumentEvent evt)
          Gives notification that there was an insert into the document.
static void main(String[] args)
          main entrypoint - starts the part when it is run as an application
 void passwordTFKeyReleased()
          Comment
 void removeAS400SignOnDialogListener(AS400SignOnDialogListener newListener)
           
 void removeUpdate(DocumentEvent evt)
          Gives notification that a portion of the document has been removed.
 boolean resignOn()
          Signs on again with the previous signon info.
 void setExtraURLInfo(String newExtraURLInfo)
          Gets extra URL info for the SQL connection.
 void setMaxConnections(int newMaxConnections)
          The maximum number of connections in the connection pool
 void setMaxConnSeconds(int newMaxConnSeconds)
          The maximum amount of time a connection can be kept open.
 void setMinConnections(int newMinConnections)
          The minimum number of connections in the connection pool
 void setOrphanTimeout(int seconds)
          The orphan timeout specifies the amout of time an application can hold a connection without using it.
 void setSystem(String system)
          The AS400 system to connect to
 void setSystemAlias(String newAlias)
          When the signon is sucessful, a connection pool is created with the system alias property.
 void setUserID(String userID)
          Insert the method's description here.
 boolean signOn(String system, String userName, char[] pPassword)
          Signs on and connects to JMagic.
 void windowActivated(WindowEvent e)
          Method to handle events for the WindowListener interface.
 void windowClosed(WindowEvent e)
          Method to handle events for the WindowListener interface.
 void windowClosing(WindowEvent e)
          Method to handle events for the WindowListener interface.
 void windowDeactivated(WindowEvent e)
          Method to handle events for the WindowListener interface.
 void windowDeiconified(WindowEvent e)
          Method to handle events for the WindowListener interface.
 void windowIconified(WindowEvent e)
          Method to handle events for the WindowListener interface.
 void windowOpened(WindowEvent e)
          Method to handle events for the WindowListener interface.
 
Methods inherited from class planetj.gui.CMDialogJ
debugMessage, debugMessage, debugMessage, dispose, getClientProperties, getTimeInMills, getTranslation, getTranslationId, hide, isAlwaysOnTop, newCMDialogJ, putClientProperty, setAlwaysOnTop, setTimeInMills, setTitle, setTranslation, setVisible, show, showBusyCursor, showDefaultCursor, showException, showException
 
Methods inherited from class javax.swing.JDialog
getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getJMenuBar, getLayeredPane, getRootPane, isDefaultLookAndFeelDecorated, remove, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setJMenuBar, setLayeredPane, setLayout, update
 
Methods inherited from class java.awt.Dialog
addNotify, getTitle, isModal, isResizable, isUndecorated, setModal, setResizable, setUndecorated
 
Methods inherited from class java.awt.Window
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getGraphicsConfiguration, getInputContext, getListeners, getLocale, getMostRecentFocusOwner, getOwnedWindows, getOwner, getToolkit, getWarningString, getWindowFocusListeners, getWindowListeners, getWindowStateListeners, isActive, isFocusableWindow, isFocusCycleRoot, isFocused, isShowing, pack, postEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, setCursor, setFocusableWindowState, setFocusCycleRoot, setLocationRelativeTo, toBack, toFront
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, remove, removeAll, removeContainerListener, removeNotify, setFocusTraversalKeys, setFocusTraversalPolicy, setFont, transferFocusBackward, transferFocusDownCycle, validate
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, dispatchEvent, enable, enable, enableInputMethods, getBackground, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isOpaque, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AS400SignOnDialog

public AS400SignOnDialog()
Constructor


AS400SignOnDialog

public AS400SignOnDialog(Frame owner)
AS400SignOnDialog constructor comment.

Parameters:
owner - java.awt.Frame

AS400SignOnDialog

public AS400SignOnDialog(Frame owner,
                         String title)
AS400SignOnDialog constructor comment.

Parameters:
owner - java.awt.Frame
title - java.lang.String

AS400SignOnDialog

public AS400SignOnDialog(Frame owner,
                         String title,
                         boolean modal)
AS400SignOnDialog constructor comment.

Parameters:
owner - java.awt.Frame
title - java.lang.String
modal - boolean

AS400SignOnDialog

public AS400SignOnDialog(Frame owner,
                         boolean modal)
AS400SignOnDialog constructor comment.

Parameters:
owner - java.awt.Frame
modal - boolean

AS400SignOnDialog

public AS400SignOnDialog(CMFrameJ owner)
AS400SignOnDialog constructor comment.

Parameters:
owner - planetj.gui.CMFrameJ

AS400SignOnDialog

public AS400SignOnDialog(CMFrameJ owner,
                         String title)
AS400SignOnDialog constructor comment.

Parameters:
owner - planetj.gui.CMFrameJ
title - java.lang.String

AS400SignOnDialog

public AS400SignOnDialog(CMFrameJ owner,
                         String title,
                         boolean modal)
AS400SignOnDialog constructor comment.

Parameters:
owner - planetj.gui.CMFrameJ
title - java.lang.String
modal - boolean

AS400SignOnDialog

public AS400SignOnDialog(CMFrameJ owner,
                         boolean modal)
AS400SignOnDialog constructor comment.

Parameters:
owner - planetj.gui.CMFrameJ
modal - boolean
Method Detail

actionPerformed

public void actionPerformed(ActionEvent e)
Method to handle events for the ActionListener interface.

Specified by:
actionPerformed in interface ActionListener
Parameters:
e - java.awt.event.ActionEvent

addAS400SignOnDialogListener

public void addAS400SignOnDialogListener(AS400SignOnDialogListener newListener)
Parameters:
newListener - planetj.connections.AS400SignOnDialogListener

cancelClicked

public void cancelClicked()
Comment


changedUpdate

public void changedUpdate(DocumentEvent evt)
Gives notification that an attribute or set of attributes changed.

Specified by:
changedUpdate in interface DocumentListener
Parameters:
evt - javax.swing.event.DocumentEvent

checkTextFields

public void checkTextFields()
Checks to see if the all the spooled file information has been entered in order to enable the OK button


getExtraURLInfo

public String getExtraURLInfo()
Gets extra URL info for the SQL connection. For example, you might set this to "tracing=true" to turn on full tracing.


getMaxConnections

public int getMaxConnections()
The maximum number of connections in the connection pool


getMaxConnSeconds

public int getMaxConnSeconds()
The maximum amount of time a connection can be kept open. The connection pool will monitor connections, closing them and then reopening them after this amount of time.


getMinConnections

public int getMinConnections()
The minimum number of connections in the connection pool


getOrphanTimeout

public int getOrphanTimeout()
The orphan timeout specifies the amout of time an application can hold a connection without using it. After an application holds a connection for this long without using it, the connection is automatically returned to the pool. The default value is 1000 seconds.


getSystem

public String getSystem()
Gets the text in the system field


getSystemAlias

public String getSystemAlias()
When the signon is sucessful, a connection pool is created with the system alias property. If no system alias is specified, the connection pool uses the system name as its system alias.


getUserId

public String getUserId()
Gets the text in the user id field


insertUpdate

public void insertUpdate(DocumentEvent evt)
Gives notification that there was an insert into the document.

Specified by:
insertUpdate in interface DocumentListener
Parameters:
evt - javax.swing.event.DocumentEvent

main

public static void main(String[] args)
main entrypoint - starts the part when it is run as an application

Parameters:
args - java.lang.String[]

passwordTFKeyReleased

public void passwordTFKeyReleased()
Comment


removeAS400SignOnDialogListener

public void removeAS400SignOnDialogListener(AS400SignOnDialogListener newListener)
Parameters:
newListener - planetj.connections.AS400SignOnDialogListener

removeUpdate

public void removeUpdate(DocumentEvent evt)
Gives notification that a portion of the document has been removed.

Specified by:
removeUpdate in interface DocumentListener
Parameters:
evt - javax.swing.event.DocumentEvent

resignOn

public boolean resignOn()
Signs on again with the previous signon info. Returns true if successful.


setExtraURLInfo

public void setExtraURLInfo(String newExtraURLInfo)
Gets extra URL info for the SQL connection. For example, you might set this to "tracing=true" to turn on full tracing.


setMaxConnections

public void setMaxConnections(int newMaxConnections)
The maximum number of connections in the connection pool


setMaxConnSeconds

public void setMaxConnSeconds(int newMaxConnSeconds)
The maximum amount of time a connection can be kept open. The connection pool will monitor connections, closing them and then reopening them after this amount of time.


setMinConnections

public void setMinConnections(int newMinConnections)
The minimum number of connections in the connection pool


setOrphanTimeout

public void setOrphanTimeout(int seconds)
The orphan timeout specifies the amout of time an application can hold a connection without using it. After an application holds a connection for this long without using it, the connection is automatically returned to the pool. The default value is 1000 seconds.


setSystem

public void setSystem(String system)
The AS400 system to connect to


setSystemAlias

public void setSystemAlias(String newAlias)
When the signon is sucessful, a connection pool is created with the system alias property. If no system alias is specified, the connection pool uses the system name as its system alias.


setUserID

public void setUserID(String userID)
Insert the method's description here. Creation date: (8/27/01 10:25:59 AM)


signOn

public boolean signOn(String system,
                      String userName,
                      char[] pPassword)
Signs on and connects to JMagic. True is returned if the connection is successful


windowActivated

public void windowActivated(WindowEvent e)
Method to handle events for the WindowListener interface.

Specified by:
windowActivated in interface WindowListener
Parameters:
e - java.awt.event.WindowEvent

windowClosed

public void windowClosed(WindowEvent e)
Method to handle events for the WindowListener interface.

Specified by:
windowClosed in interface WindowListener
Parameters:
e - java.awt.event.WindowEvent

windowClosing

public void windowClosing(WindowEvent e)
Method to handle events for the WindowListener interface.

Specified by:
windowClosing in interface WindowListener
Parameters:
e - java.awt.event.WindowEvent

windowDeactivated

public void windowDeactivated(WindowEvent e)
Method to handle events for the WindowListener interface.

Specified by:
windowDeactivated in interface WindowListener
Parameters:
e - java.awt.event.WindowEvent

windowDeiconified

public void windowDeiconified(WindowEvent e)
Method to handle events for the WindowListener interface.

Specified by:
windowDeiconified in interface WindowListener
Parameters:
e - java.awt.event.WindowEvent

windowIconified

public void windowIconified(WindowEvent e)
Method to handle events for the WindowListener interface.

Specified by:
windowIconified in interface WindowListener
Parameters:
e - java.awt.event.WindowEvent

windowOpened

public void windowOpened(WindowEvent e)
Method to handle events for the WindowListener interface.

Specified by:
windowOpened in interface WindowListener
Parameters:
e - java.awt.event.WindowEvent