Package de.bsvrz.sys.funclib.application
Class AbstractGUIApplication
- java.lang.Object
-
- de.bsvrz.sys.funclib.application.AbstractGUIApplication
-
- All Implemented Interfaces:
GUIApplication,StandardApplication
public abstract class AbstractGUIApplication extends java.lang.Object implements GUIApplication
Diese abstrakte Klasse ist eine Beispielimplementierung des InterfacesGUIApplication. Durch Aufruf der Methodeconnect(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.
-
-
Constructor Summary
Constructors Constructor Description AbstractGUIApplication()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description de.bsvrz.dav.daf.main.ClientDavInterfaceconnect(de.bsvrz.dav.daf.main.ClientDavParameters parameters)Die Implementierung dieser Methode soll eine Verbindung zum Datenverteiler herstellen und nach erfolgreicher Anmeldung (Login) zurückgeben.protected abstract java.lang.StringgetApplicationName()Wird von der Anwendung implementiert und liefert den Namen der Applikation.de.bsvrz.dav.daf.main.ClientDavInterfacegetConnection()booleanisDavConnected()voidsetConnection(de.bsvrz.dav.daf.main.ClientDavInterface connection)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.bsvrz.sys.funclib.application.GUIApplication
getMainClass
-
Methods inherited from interface de.bsvrz.sys.funclib.application.StandardApplication
initialize, parseArguments
-
-
-
-
Method Detail
-
connect
public de.bsvrz.dav.daf.main.ClientDavInterface connect(de.bsvrz.dav.daf.main.ClientDavParameters parameters)
Description copied from interface:GUIApplicationDie Implementierung dieser Methode soll eine Verbindung zum Datenverteiler herstellen und nach erfolgreicher Anmeldung (Login) zurückgeben.- Specified by:
connectin interfaceGUIApplication- Parameters:
parameters- Parameter für die Datenverteiler-Applikationsfunktionen. Wird für den Verbindungsaufbau benötigt.- Returns:
- eine Verbindung zum Datenverteiler
-
getApplicationName
protected abstract java.lang.String getApplicationName()
Wird von der Anwendung implementiert und liefert den Namen der Applikation.- Returns:
- Name der Applikation
-
isDavConnected
public boolean isDavConnected()
-
getConnection
public de.bsvrz.dav.daf.main.ClientDavInterface getConnection()
-
setConnection
public void setConnection(de.bsvrz.dav.daf.main.ClientDavInterface connection)
-
-