com.isti.util.database
Class IstiConnectionInfoDialog

java.lang.Object
  extended by com.isti.util.gui.IstiDialogPopup
      extended by com.isti.util.database.IstiConnectionInfoDialog
All Implemented Interfaces:
IstiDialogInterface, javax.swing.WindowConstants

public class IstiConnectionInfoDialog
extends IstiDialogPopup

Class IstiConnectionInfoDialog defines a connection information dialog.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.isti.util.gui.IstiDialogPopup
IstiDialogPopup.CloseListener
 
Field Summary
static java.lang.String LOGIN_DIALOG_DEFAULT_TITLE_STRING
          Login dialog default title string.
 
Fields inherited from class com.isti.util.gui.IstiDialogPopup
CANCEL_OPTION, CLOSED_OPTION, DEFAULT_OPTION, DISPOSE_ON_CLOSE, disposeDialogOnButtonFlag, dlgObj, DO_NOTHING_ON_CLOSE, enforceDispatchThreadFlag, ERROR_MESSAGE, HIDE_ON_CLOSE, hideDialogOnButtonFlag, INFORMATION_MESSAGE, initialFocusCompObj, initialFocusFlag, maxHeightLimitFlag, messageString, NO_AUTOBUTTONS_OPTION, NO_OPTION, OK_CANCEL_OPTION, OK_OPTION, optionsArr, packNeededFlag, paneObj, parentHeightLimitFlag, PLAIN_MESSAGE, QUESTION_MESSAGE, repackCheckLocationObj, repackNeededFlag, staticEnforceDispatchThreadFlag, staticMaxHeightLimitFlag, staticParentHeightLimitFlag, waitingForShowFlag, WARNING_MESSAGE, YES_NO_CANCEL_OPTION, YES_NO_OPTION, YES_OPTION
 
Fields inherited from interface javax.swing.WindowConstants
EXIT_ON_CLOSE
 
Constructor Summary
IstiConnectionInfoDialog(java.awt.Component parentComp)
          Creates the connection information dialog.
IstiConnectionInfoDialog(java.awt.Component parentComp, IstiConnectionInfoPanel infoPanel, java.lang.String titleStr, IstiDialogUtil dialogUtilObj)
          Creates the connection information dialog.
 
Method Summary
 java.sql.Connection createMySQLConnection(java.lang.String hostName, java.lang.String port, java.lang.String userName, java.lang.String password, java.lang.String dataBase)
          Create the connection.
 java.sql.Connection getConnection()
          Get the connection.
 IstiConnectionInfoPanel getConnectionInfoPanel()
          Gets the connection information panel.
 IstiDialogUtil getDialogUtil()
          Gets the dialog utility object for popup messages.
 void showErrorMessage(java.lang.String msgStr)
          Show the error message.
 
Methods inherited from class com.isti.util.gui.IstiDialogPopup
addCloseListener, addComponentListener, addPropertyChangeListener, addPropertyChangeListener, addWindowListener, allowDialogClose, allowDialogClose, close, close, closeWithWait, closeWithWait, createDialog, createDialog, dispose, doDelayedRepack, doPack, doSetDialogVisible, doSetVisible, getBackground, getDialogObj, getDisposeDialogOnButtonFlag, getEnforceDispatchThreadFlag, getForeground, getHideDialogOnButtonFlag, getInputValue, getMaxHeightLimit, getMessageObj, getMessageStr, getOptionPaneObj, getParentHeightLimit, getRepackNeededFlag, getStaticEnforceDispatchThreadFlag, getStaticMaxHeightLimit, getStaticParentHeightLimit, getTitleStr, getUserMessageString, getValue, getWindowForComponent, hide, invalidate, isModal, isShowing, isVisible, pack, removeCloseListener, removeComponentListener, removePropertyChangeListener, removePropertyChangeListener, removeWindowListener, repaint, requestFocus, selectAndShow, setBackground, setDefaultCloseOperation, setDisposeDialogOnButtonFlag, setEnforceDispatchThreadFlag, setForeground, setHideDialogOnButtonFlag, setInitialFocus, setInitialFocusComponent, setLocation, setLocation, setLocationRelativeTo, setMaxHeightLimit, setMessageObj, setMessageStr, setModal, setOptionPaneValue, setParentHeightLimit, setRepackNeededFlag, setResizable, setSize, setSize, setStaticEnforceDispatchThreadFlag, setStaticMaxHeightLimit, setStaticParentHeightLimit, setTitleStr, setUserMessageString, setVisible, setVisibleViaInvokeLater, show, showAndReturnIndex, showAndWait, showMessageDialog, showMessageDialog, showOptionDialog, showOptionDialog, showOptionDialog, showOptionDialog, showOptionDialog, showOptionDialog, showOptionDialog, showOptionDialog, validate, waitForDialogVisible
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOGIN_DIALOG_DEFAULT_TITLE_STRING

public static java.lang.String LOGIN_DIALOG_DEFAULT_TITLE_STRING
Login dialog default title string.

Constructor Detail

IstiConnectionInfoDialog

public IstiConnectionInfoDialog(java.awt.Component parentComp)
Creates the connection information dialog.

Parameters:
parentComp - the parent component for the popup.

IstiConnectionInfoDialog

public IstiConnectionInfoDialog(java.awt.Component parentComp,
                                IstiConnectionInfoPanel infoPanel,
                                java.lang.String titleStr,
                                IstiDialogUtil dialogUtilObj)
Creates the connection information dialog.

Parameters:
parentComp - the parent component for the popup.
infoPanel - the connection information panel.
dialogUtilObj - the dialog utility object or null if none.
titleStr - the title string for popup window.
Method Detail

createMySQLConnection

public java.sql.Connection createMySQLConnection(java.lang.String hostName,
                                                 java.lang.String port,
                                                 java.lang.String userName,
                                                 java.lang.String password,
                                                 java.lang.String dataBase)
Create the connection.

Parameters:
hostName - the host name.
port - the port or null for the default.
userName - the user name.
password - the password.
dataBase - the database.
Returns:
the connection or null if error.

getConnectionInfoPanel

public IstiConnectionInfoPanel getConnectionInfoPanel()
Gets the connection information panel.

Returns:
the connection information panel.

getDialogUtil

public IstiDialogUtil getDialogUtil()
Gets the dialog utility object for popup messages.

Returns:
the dialog utility object for popup messages.

getConnection

public java.sql.Connection getConnection()
Get the connection.

Returns:
the connection or null if none.

showErrorMessage

public void showErrorMessage(java.lang.String msgStr)
Show the error message.

Parameters:
msgStr - the error message text to display.