|
||||||||||
| 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
weka.gui.sql.ConnectionPanel
public class ConnectionPanel
Enables the user to insert a database URL, plus user/password to connect to this database.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.BaselineResizeBehavior |
| Field Summary | |
|---|---|
static String |
HISTORY_NAME
the name of the history. |
| Fields inherited from class javax.swing.JComponent |
|---|
TOOL_TIP_TEXT_KEY, 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 | |
|---|---|
ConnectionPanel(JFrame parent)
initializes the panel. |
|
| Method Summary | |
|---|---|
void |
addConnectionListener(ConnectionListener l)
adds the given listener to the list of listeners. |
void |
addHistoryChangedListener(HistoryChangedListener l)
adds the given listener to the list of listeners. |
void |
caretUpdate(CaretEvent event)
Called when the caret position is updated. |
void |
clear()
sets the parameters back to standard. |
DefaultListModel |
getHistory()
returns the history. |
String |
getPassword()
returns the current Password. |
String |
getURL()
returns the current URL. |
String |
getUser()
returns the current User. |
void |
removeConnectionListener(ConnectionListener l)
removes the given listener from the list of listeners. |
void |
removeHistoryChangedListener(HistoryChangedListener l)
removes the given listener from the list of listeners. |
void |
setFocus()
sets the focus in a designated control. |
void |
setHistory(DefaultListModel history)
sets the local history to the given one. |
void |
setPassword(String pw)
sets the Password. |
void |
setURL(String url)
sets the URL. |
void |
setUser(String user)
sets the User. |
void |
showHistory()
displays the query history. |
| Methods inherited from class javax.swing.JPanel |
|---|
getAccessibleContext, getUI, getUIClassID, setUI, updateUI |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String HISTORY_NAME
| Constructor Detail |
|---|
public ConnectionPanel(JFrame parent)
parent - the parent of this panel| Method Detail |
|---|
public void clear()
public void setFocus()
public void setURL(String url)
url - the new value of the URLpublic String getURL()
public void setUser(String user)
user - the new value of the Userpublic String getUser()
public void setPassword(String pw)
pw - the new value of the Passwordpublic String getPassword()
public void setHistory(DefaultListModel history)
history - the history to usepublic DefaultListModel getHistory()
public void showHistory()
public void addConnectionListener(ConnectionListener l)
l - the listener to add to the listpublic void removeConnectionListener(ConnectionListener l)
l - the listener to removepublic void addHistoryChangedListener(HistoryChangedListener l)
l - the listener to add to the listpublic void removeHistoryChangedListener(HistoryChangedListener l)
l - the listener to removepublic void caretUpdate(CaretEvent event)
caretUpdate in interface CaretListenerevent - the event to process
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||