|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
uk.ac.starlink.table.gui.SQLPanel
public class SQLPanel
A component for eliciting a JDBC access type URL string from the user.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JPanel |
|---|
JPanel.AccessibleJPanel |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| 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 | |
|---|---|
SQLPanel(String refString,
boolean refArea)
Constructs an SQLPanel 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. |
protected LabelledComponentStack |
getStack()
Returns the container for query components. |
boolean |
isAvailable()
|
static boolean |
isSqlAvailable()
Indicates whether JDBC is set up so that it might work. |
void |
useAuthenticator(JDBCAuthenticator auth)
Initialises this dialog's fields in accordance with a given JDBCAuthenticator object. |
| Methods inherited from class javax.swing.JPanel |
|---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SQLPanel(String refString,
boolean refArea)
refString - the string used for annotatingrefArea - true to use a multi-line text area for the ref field,
false for a one-line field| Method 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()
protected LabelledComponentStack getStack()
public static boolean isSqlAvailable()
|
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 | ||||||||