A TLink callback which is executed synchronously on the AWT event dispatching thread. More...
Public Member Functions | |
final void | callback (TLink link) |
The original TINE callback method. | |
final void | run () |
Called from the AWT event thread. | |
final int | getLinkStatus () |
Returns the link status. More... | |
final String | getErrorString () |
Returns the error string. | |
abstract void | onCallback (TLink link) |
Replaces TLinkCallback.callback(). More... | |
A TLink callback which is executed synchronously on the AWT event dispatching thread.
This callback is useful for programs with an AWT or Swing GUI. It is not advisable to make any GUI modifications directly from TLinkCallback.callback(), since different threads are involved. An indirection via the AWT event queue has to be implemented.
This class simplifies GUI callbacks for client programmers. The programmer simply replaces TLinkCallback with TAwtSyncCallback and implements onCallback() instead of callback. From onCallback(), GUI components can be accessed safely.
In this class, the inherited TINE callback() method calls SwingUtilities.invokeAndWait(). It does not return until onCallback() and the subsequent AWT events have been processed. Compared to TAwtAsyncCallback, this is the safer, but slower way to use TINE callbacks in GUI applications.
final int de.desy.tine.client.TAwtSyncCallback.getLinkStatus | ( | ) |
|
abstract |
Replaces TLinkCallback.callback().
This method to be implemented by derived classes.
link | The TLink which fired this callback. |
Referenced by de.desy.tine.client.TAwtSyncCallback.run().