|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.Container | +--javax.swing.JComponent | +--javax.swing.JOptionPane | +--uk.ac.starlink.table.gui.SQLDialog
A popup dialog for eliciting a JDBC access type URL string from the user.
This class itself could be used on its own to get a JDBC connection,
but to get the URL-like string for reading or writing a table see its
subclasses SQLReadDialog
and SQLWriteDialog
, which
know about the 'ref' part of the URLs used by
JDBCFormatter
and
JDBCHandler
.
Field Summary |
Fields inherited from class javax.swing.JComponent |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
SQLDialog(String refString)
Constructs an SQLDialog using a given annotation for the 'ref' part of the URL (the part after the '#' character). |
Method Summary | |
String |
getBaseURL()
Returns the basic URL which the user has specified by filling in the boxes. |
Connector |
getConnector()
Returns a Connector object which will make connections based on the information entered in this dialog. |
String |
getFullURL()
Returns the full URL specified by the user in this box (including the 'ref' part if there is one). |
String |
getRef()
Returns the 'ref' part of the URL, if a ref string was specified in the constructor. |
boolean |
isAvailable()
|
void |
useAuthenticator(JDBCAuthenticator auth)
Initialises this dialog's fields in accordance with a given JDBCAuthenticator object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public SQLDialog(String refString)
refString
- the string used for annotatingMethod Detail |
public void useAuthenticator(JDBCAuthenticator auth)
JDBCAuthenticator.authenticate()
and fill the user and password fields with the result.
However, if auth
is a
TextModelsAuthenticator
, it
will actually use its models in the user and password fields.
auth
- authenticator object to configure frompublic Connector getConnector()
public String getBaseURL()
public String getRef()
public String getFullURL()
public boolean isAvailable()
|
Copyright © 2004 CLRC: Central Laboratory of the Research Councils. All rights reserved. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |