|
dLife Home Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.Observable
dlife.gui.connectiondialog.Connection
public abstract class Connection
A Connection is a model (in MVC sense) of a connection. It holds the connection information necessary for making a particular type of connection (e.g. serial / bluetooth / socket / etc...). Each Connection also returns a GUI panel that allows the user to enter connection information. Connections are Observable so that the ConnectionDialog can check if the "Connect" button should be enabled any time a change is made.
| Constructor Summary | |
|---|---|
Connection()
|
|
| Method Summary | |
|---|---|
abstract boolean |
canConnect()
Return's true if this Connection . |
abstract boolean |
connectNow()
Return's true if the user has made a final selection (e.g. |
protected abstract GUIPanel |
createGUIPanel()
Every concrete implementation must implement this method that crates the GUI view (in MVC sense) for the Connection. |
GUIPanel |
getGUIPanel()
Return a JPanel containing the GUI components for this ConnectionDialogPanel. |
| Methods inherited from class java.util.Observable |
|---|
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Connection()
| Method Detail |
|---|
public abstract boolean canConnect()
public abstract boolean connectNow()
protected abstract GUIPanel createGUIPanel()
public GUIPanel getGUIPanel()
|
dLife Home Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||