public abstract class AbstractGUIApplication extends Object implements GUIApplication
GUIApplication
. Durch Aufruf der Methode connect(de.bsvrz.dav.daf.main.ClientDavParameters)
wird ein
Login-Dialog dargestellt, wo die TCP/IP-Adresse zum Datenverteiler, Benutzername und Passwort eingegeben werden müssen. Die letzten 20 erfolgreichen
Login-Versuche werden lokal auf dem Rechner gespeichert.Modifier and Type | Class and Description |
---|---|
private class |
AbstractGUIApplication.IpComboBoxModel |
private class |
AbstractGUIApplication.PortComboBoxModel |
private class |
AbstractGUIApplication.PreferencesModel |
Modifier and Type | Field and Description |
---|---|
private ClientDavInterface |
_connection |
private static Debug |
_debug
DebugLogger für Debug-Ausgaben
|
private JDialog |
_dialog |
private ClientDavParameters |
_parameters |
private AbstractGUIApplication.PreferencesModel |
_preferencesModel |
Constructor and Description |
---|
AbstractGUIApplication() |
Modifier and Type | Method and Description |
---|---|
ClientDavInterface |
connect(ClientDavParameters parameters)
Die Implementierung dieser Methode soll eine Verbindung zum Datenverteiler herstellen und nach erfolgreicher
Anmeldung (Login) zurückgeben.
|
private JDialog |
createDialog(String title) |
protected abstract String |
getApplicationName()
Wird von der Anwendung implementiert und liefert den Namen der Applikation.
|
ClientDavInterface |
getConnection() |
boolean |
isDavConnected() |
private static GridBagConstraints |
makegbc(int x,
int y,
int width,
int height)
Dies ist eine Hilfsmethode, die für den GridBagLayout-Manager benötigt wird.
|
void |
setConnection(ClientDavInterface connection) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
initialize, parseArguments
private static final Debug _debug
private JDialog _dialog
private ClientDavInterface _connection
private ClientDavParameters _parameters
private AbstractGUIApplication.PreferencesModel _preferencesModel
public ClientDavInterface connect(ClientDavParameters parameters)
GUIApplication
connect
in interface GUIApplication
parameters
- Parameter für die Datenverteiler-Applikationsfunktionen. Wird für den Verbindungsaufbau benötigt.protected abstract String getApplicationName()
public boolean isDavConnected()
public ClientDavInterface getConnection()
public void setConnection(ClientDavInterface connection)
private static GridBagConstraints makegbc(int x, int y, int width, int height)
x
- x-Positiony
- y-Positionwidth
- Anzahl Spalten, die die Komponente benutzen sollheight
- Anzahl Zeilen, die die Komponente benutzen soll