|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
java.awt.Window
java.awt.Dialog
javax.swing.JDialog
weka.gui.DatabaseConnectionDialog
public class DatabaseConnectionDialog
A dialog to enter URL, username and password for a database connection.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.awt.Dialog |
|---|
Dialog.ModalExclusionType, Dialog.ModalityType |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.BaselineResizeBehavior |
| Field Summary |
|---|
| Fields inherited from class java.awt.Dialog |
|---|
DEFAULT_MODALITY_TYPE |
| 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 | |
|---|---|
DatabaseConnectionDialog(Frame parentFrame)
Create database connection dialog. |
|
DatabaseConnectionDialog(Frame parentFrame,
String url,
String uname)
Create database connection dialog. |
|
DatabaseConnectionDialog(Frame parentFrame,
String url,
String uname,
boolean debug)
Create database connection dialog. |
|
| Method Summary | |
|---|---|
void |
DbConnectionDialog(String url,
String uname)
Display the database connection dialog |
void |
DbConnectionDialog(String url,
String uname,
boolean debug)
Display the database connection dialog |
boolean |
getDebug()
Returns the debug flag |
String |
getPassword()
Returns password from dialog |
int |
getReturnValue()
Returns which of OK or cancel was clicked from dialog |
String |
getURL()
Returns URL from dialog |
String |
getUsername()
Returns Username from dialog |
static void |
main(String[] args)
for testing only |
| Methods inherited from class javax.swing.JDialog |
|---|
getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isDefaultLookAndFeelDecorated, remove, repaint, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setTransferHandler, update |
| Methods inherited from class java.awt.Dialog |
|---|
addNotify, getModalityType, getTitle, hide, isModal, isResizable, isUndecorated, setModal, setModalityType, setResizable, setTitle, setUndecorated, setVisible, show, toBack |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DatabaseConnectionDialog(Frame parentFrame)
parentFrame - the parent frame of the dialog
public DatabaseConnectionDialog(Frame parentFrame,
String url,
String uname)
parentFrame - the parent frame of the dialogurl - initial text for URL fielduname - initial text for username field
public DatabaseConnectionDialog(Frame parentFrame,
String url,
String uname,
boolean debug)
parentFrame - the parent frame of the dialogurl - initial text for URL fielduname - initial text for username fielddebug - whether to display the debug checkbox| Method Detail |
|---|
public String getURL()
public String getUsername()
public String getPassword()
public boolean getDebug()
public int getReturnValue()
public void DbConnectionDialog(String url,
String uname)
url - initial text for URL fielduname - initial text for username field
public void DbConnectionDialog(String url,
String uname,
boolean debug)
url - initial text for URL fielduname - initial text for username fielddebug - whether to display the debug checkboxpublic static void main(String[] args)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||