|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectewe.sys.JavaBridge
| Constructor Summary | |
JavaBridge()
|
|
| Method Summary | |
static Object |
createEweObject(Object javaObject)
Create a Ewe Object that is the equivalent of a Java Object. |
static Object[] |
getNativeFileChooser()
This method returns a native file dialog box and a Task that can be used to execute the file dialog using runNativeDialog(), or null if none is available on the current platform. |
static Task |
makeBlockingTask(CallBack cb)
Create a Task that can call a full system blocking method without blocking the VM. |
static Handle |
runNativeDialog(Task nativeDialogTask)
Run a task that will display a native dialog box of some kind while it runs. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, toString |
| Constructor Detail |
public JavaBridge()
| Method Detail |
public static Task makeBlockingTask(CallBack cb)
The task should be implemented in a CallBack Object, where the callBack(Object data) method will hold the blocking code and the "data" parameter will be a Handle that the task can use to set the status of the task.
This method calls the method of the same name in ewe.sys.Vm.
public static Handle runNativeDialog(Task nativeDialogTask)
This method calls the method of the same name in ewe.sys.Vm.
public static Object[] getNativeFileChooser()
The second object in the returned array is always a Task object for running the native file dialog box.
Under a Java 1.2 system, a javax.swing.JFileChooser is returned as the first object in the returned array. Under a Java 1.1 system, a java.awt.FileDialog is returned as the first object in the array.
public static Object createEweObject(Object javaObject)
The Objects that can be converted are:
Any other type of object will throw an IllegalArgumentException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||