|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectchrriis.dj.nativeswing.swtimpl.NativeInterface
public class NativeInterface
The native interface, which establishes the link between the peer VM (native side) and the local side.
| Method Summary | |
|---|---|
static void |
addNativeInterfaceListener(NativeInterfaceListener listener)
Add a native interface listener. |
static void |
close()
Close the native interface, which destroys the native side (peer VM). |
static NativeInterfaceConfiguration |
getConfiguration()
Get the configuration, which allows to modify some parameters. |
static Display |
getDisplay()
Get the SWT display. |
static NativeInterfaceListener[] |
getNativeInterfaceListeners()
Get all the native interface listeners. |
static void |
initialize()
Initialize the native interface, but do not open it. |
static boolean |
isUIThread(boolean isNativeSide)
Indicate if the current thread is the user interface thread. |
static void |
main(String[] args)
The main method that is called by the native side (peer VM). |
static void |
open()
Open the native interface, which creates the peer VM that handles the native side of the native integration. Initialization takes place if the interface was not already initialized. |
static void |
removeNativeInterfaceListener(NativeInterfaceListener listener)
Remove a native interface listener. |
static void |
runEventPump()
Run the native event pump. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void close()
public static NativeInterfaceConfiguration getConfiguration()
public static void initialize()
public static void open()
public static Display getDisplay()
public static boolean isUIThread(boolean isNativeSide)
IllegalStateException - when the native interface is not alive.public static void runEventPump()
public static void addNativeInterfaceListener(NativeInterfaceListener listener)
listener - the native listener to add.public static void removeNativeInterfaceListener(NativeInterfaceListener listener)
listener - the native listener to remove.public static NativeInterfaceListener[] getNativeInterfaceListeners()
public static void main(String[] args)
throws Exception
args - the arguments that are passed to the peer VM.
Exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||