Trace:
Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision | |||
|
jvx:firstapp [2021/03/22 14:09] admin |
jvx:firstapp [2024/11/18 10:27] (current) admin |
||
|---|---|---|---|
| Line 9: | Line 9: | ||
| * [[http://sourceforge.net/projects/jvx/files/latest/download|JVx Binary Package]] | * [[http://sourceforge.net/projects/jvx/files/latest/download|JVx Binary Package]] | ||
| * Eclipse IDE (>= 3.4) with JDT (recommended: Eclipse IDE for Java EE Developers) | * Eclipse IDE (>= 3.4) with JDT (recommended: Eclipse IDE for Java EE Developers) | ||
| - | * JDK 6.0 (1.6) or higher | + | * JDK 8.0 (1.8) or higher |
| * HSQLDB library (http://www.hsqldb.org) | * HSQLDB library (http://www.hsqldb.org) | ||
| - | * [[https://search.maven.org/artifact/org.swinglabs.swingx/swingx-all/1.6.4/jar|SwingX]] lib | ||
| * [[http://sourceforge.net/projects/jvxfirstapp/files/latest/download|JVx Sample Eclipse Project]] | * [[http://sourceforge.net/projects/jvxfirstapp/files/latest/download|JVx Sample Eclipse Project]] | ||
| Line 24: | Line 23: | ||
| == Create an Application == | == Create an Application == | ||
| - | We need an application as a frame for the client. Each application must implement the interface ''javax.rad.application.IApplication''. In our example, we derive from the standard implementation ''com.sibvisions.rad.application.Application'', whereby we use the following code: | + | We need an application as a frame for the client. Each application must implement the interface ''jvx.rad.application.IApplication''. In our example, we derive from the standard implementation ''com.sibvisions.rad.application.Application'', whereby we use the following code: |
| <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 42: | Line 41: | ||
| /** | /** | ||
| * First application with JVx, Enterprise Application Framework. | * First application with JVx, Enterprise Application Framework. | ||
| - | * <p/> | + | * |
| * @author René Jahn | * @author René Jahn | ||
| */ | */ | ||
| Line 54: | 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 125: | 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 159: | 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 172: | Line 172: | ||
| /** | /** | ||
| * A simple database table editor. | * A simple database table editor. | ||
| - | * <p/> | + | * |
| * @author René Jahn | * @author René Jahn | ||
| */ | */ | ||
| Line 199: | 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 215: | 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 237: | 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 280: | 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 288: | Line 288: | ||
| /** | /** | ||
| * The LCO for the DBEdit WorkScreen. | * The LCO for the DBEdit WorkScreen. | ||
| - | * <p/> | + | * |
| * @author René Jahn | * @author René Jahn | ||
| */ | */ | ||
| Line 343: | Line 343: | ||
| /** | /** | ||
| * The LCO for the session. | * The LCO for the session. | ||
| - | * <p/> | + | * |
| * @author René Jahn | * @author René Jahn | ||
| */ | */ | ||
