Trace:
Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
de:jvx:firstapp [2018/01/29 13:44] admin |
de:jvx:firstapp [2024/11/18 10:29] (current) admin |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ~~Title: Erste Applikation~~ | + | ~~Title: Erste JVx Applikation~~ |
In den folgenden Absätzen zeigen wir Ihnen wie Sie mit wie wenig Aufwand und Code ihre erste JVx Applikation erstellen können. | In den folgenden Absätzen zeigen wir Ihnen wie Sie mit wie wenig Aufwand und Code ihre erste JVx Applikation erstellen können. | ||
Line 9: | Line 9: | ||
* [[http://sourceforge.net/projects/jvx/files/latest/download|JVx Binärpaket]] | * [[http://sourceforge.net/projects/jvx/files/latest/download|JVx Binärpaket]] | ||
* Eclipse IDE (>= 3.4) mit JDT (Empfohlen wird: Eclipse IDE für Java EE Entwickler) | * Eclipse IDE (>= 3.4) mit JDT (Empfohlen wird: Eclipse IDE für Java EE Entwickler) | ||
- | * JDK 6.0 (1.6) oder höher | + | * JDK 8.0 (1.8) oder höher |
* HSQLDB Bibliothek (http://www.hsqldb.org) | * HSQLDB Bibliothek (http://www.hsqldb.org) | ||
* [[http://sourceforge.net/projects/jvxfirstapp/files/latest/download|JVx Beispiel Eclipse Projekt]] | * [[http://sourceforge.net/projects/jvxfirstapp/files/latest/download|JVx Beispiel Eclipse Projekt]] | ||
Line 23: | Line 23: | ||
== Erstellen einer Applikation == | == Erstellen einer Applikation == | ||
- | Für den Client benötigen wir eine Applikation als Rahmen. Jede Applikation muss das Interface ''javax.rad.application.IApplication'' implementieren. Wir leiten uns in unserem Beispiel von der Standard Implementierung ''com.sibvisions.rad.application.Application'' ab, wobei wir folgenden Code verwenden: | + | Für den Client benötigen wir eine Applikation als Rahmen. Jede Applikation muss das Interface ''jvx.rad.application.IApplication'' implementieren. Wir leiten uns in unserem Beispiel von der Standard Implementierung ''com.sibvisions.rad.application.Application'' ab, wobei wir folgenden Code verwenden: |
<file java FirstApplication.java> | <file java FirstApplication.java> | ||
package apps.firstapp; | package apps.firstapp; | ||
- | import javax.rad.application.genui.UILauncher; | + | import jvx.rad.application.genui.UILauncher; |
- | import javax.rad.genui.UIImage; | + | import jvx.rad.genui.UIImage; |
- | import javax.rad.genui.component.UIButton; | + | import jvx.rad.genui.component.UIButton; |
- | import javax.rad.genui.container.UIToolBar; | + | import jvx.rad.genui.container.UIToolBar; |
- | import javax.rad.genui.menu.UIMenu; | + | import jvx.rad.genui.menu.UIMenu; |
- | import javax.rad.genui.menu.UIMenuItem; | + | import jvx.rad.genui.menu.UIMenuItem; |
- | import javax.rad.remote.IConnection; | + | import jvx.rad.remote.IConnection; |
import com.sibvisions.rad.application.Application; | import com.sibvisions.rad.application.Application; | ||
Line 41: | Line 41: | ||
/** | /** | ||
* First application with JVx, Enterprise Application Framework. | * First application with JVx, Enterprise Application Framework. | ||
- | * <p/> | + | * |
* @author René Jahn | * @author René Jahn | ||
*/ | */ | ||
Line 53: | Line 53: | ||
* Creates a new instance of <code>FirstApplication</code> with a technology | * Creates a new instance of <code>FirstApplication</code> with a technology | ||
* dependent launcher. | * dependent launcher. | ||
- | * <p/> | + | * |
* @param pLauncher the technology dependent launcher | * @param pLauncher the technology dependent launcher | ||
+ | * @throws Exception if initialization fails | ||
*/ | */ | ||
- | public FirstApplication(UILauncher pLauncher) | + | public FirstApplication(UILauncher pLauncher) throws Exception |
{ | { | ||
super(pLauncher); | super(pLauncher); | ||
Line 124: | Line 125: | ||
/** | /** | ||
* Opens the edit screen. | * Opens the edit screen. | ||
- | * <p/> | + | * |
* @throws Throwable if the edit frame can not be opened | * @throws Throwable if the edit frame can not be opened | ||
*/ | */ | ||
Line 158: | Line 159: | ||
package apps.firstapp.frames; | package apps.firstapp.frames; | ||
- | import javax.rad.genui.container.UIGroupPanel; | + | import jvx.rad.genui.container.UIGroupPanel; |
- | import javax.rad.genui.container.UIInternalFrame; | + | import jvx.rad.genui.container.UIInternalFrame; |
- | import javax.rad.genui.control.UITable; | + | import jvx.rad.genui.control.UITable; |
- | import javax.rad.genui.layout.UIBorderLayout; | + | import jvx.rad.genui.layout.UIBorderLayout; |
- | import javax.rad.remote.AbstractConnection; | + | import jvx.rad.remote.AbstractConnection; |
- | import javax.rad.remote.MasterConnection; | + | import jvx.rad.remote.MasterConnection; |
import com.sibvisions.rad.application.Application; | import com.sibvisions.rad.application.Application; | ||
Line 171: | Line 172: | ||
/** | /** | ||
* A simple database table editor. | * A simple database table editor. | ||
- | * <p/> | + | * |
* @author René Jahn | * @author René Jahn | ||
*/ | */ | ||
Line 198: | Line 199: | ||
/** | /** | ||
* Creates a new instance of DBEditFrame for a specific application. | * Creates a new instance of DBEditFrame for a specific application. | ||
- | * <p/> | + | * |
* @param pApp the application | * @param pApp the application | ||
* @throws Throwable if the remote access fails | * @throws Throwable if the remote access fails | ||
Line 214: | Line 215: | ||
/** | /** | ||
* Initializes the model. | * Initializes the model. | ||
- | * <p/> | + | * |
* @throws Throwable if the initialization throws an error | * @throws Throwable if the initialization throws an error | ||
*/ | */ | ||
Line 236: | Line 237: | ||
/** | /** | ||
* Initializes the UI. | * Initializes the UI. | ||
- | * <p/> | + | * |
* @throws Exception if the initialization throws an error | * @throws Exception if the initialization throws an error | ||
*/ | */ | ||
Line 279: | Line 280: | ||
package apps.firstapp.frames; | package apps.firstapp.frames; | ||
- | import javax.rad.persist.IStorage; | + | import jvx.rad.persist.IStorage; |
import com.sibvisions.rad.persist.jdbc.DBStorage; | import com.sibvisions.rad.persist.jdbc.DBStorage; | ||
Line 287: | Line 288: | ||
/** | /** | ||
* The LCO for the DBEdit WorkScreen. | * The LCO for the DBEdit WorkScreen. | ||
- | * <p/> | + | * |
* @author René Jahn | * @author René Jahn | ||
*/ | */ | ||
Line 342: | Line 343: | ||
/** | /** | ||
* The LCO for the session. | * The LCO for the session. | ||
- | * <p/> | + | * |
* @author René Jahn | * @author René Jahn | ||
*/ | */ |