Java class and method connections
Java class and method connections
If your web application includes Java code from a previous project or has been partially developed in another IDE, you can paste your Java code and folder structure into iiziGo after creating a new IIZI Quickstart project. During deployment for distribution, all directories and libraries are packed into your iiziApp.
Having started with Quickstart, a main Java class is created for you in the src package. This has been named with your IIZI project’s name, and contains the minimal IIZI Annotations necessary for integrating your Java code into your iiziApp; you can connect your Java project through this class. At present – version 1.0 – only one Java class can serve as the annotated entry point for a VirtualSpace or a UI Panel.
@VS (ref= "MyApp:/vs/start")
public class StartNameSpaceListener {
@OnVSChange (name="fld")
public void onChange (VSChangeEvent event) {
}
@OnVSFocus (name="input")
public void onFocus (VSFocusEvent event) {
}
@OnVSAction (name="my-Action")
public void onAction (VSActionEvent event) {
}
}
A Java class annotation and three annotated Java methods
All references to IIZI elements are made using a reference path name in the following format: module:/path/name
. Java code is updated and changed using Eclipse refactoring mechanisms whenever required.
Your Java classes can be annotated to a VirtualSpace directly while your Java methods will have annotations to VirtualSpace entities. In the IIZI Platform you do not normally add the listeners
that are common in UI programming; instead, you connect a method to the place requiring the specific functionality.
Java class and method connections
VirtualSpace Actions and Java methods
Attaching methods to VirtualSpace entities
Attaching methods to VirtualSpace events
Back reference problems
UI Annotations
Location of code
Available APIs in iiziGo
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.