Main Page | Features | Central Services | csv-Files | Types | Transfer | Access | API-C | API-.NET | API-Java | Examples | Downloads
page generated on 31.05.2023 - 04:45
Public Member Functions | List of all members
de.desy.tine.client.TAwtSyncCallback Class Referenceabstract

A TLink callback which is executed synchronously on the AWT event dispatching thread. More...

Inheritance diagram for de.desy.tine.client.TAwtSyncCallback:
de.desy.tine.client.TLinkCallback

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...
 

Detailed Description

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.

Author
jwlg

Member Function Documentation

◆ getLinkStatus()

final int de.desy.tine.client.TAwtSyncCallback.getLinkStatus ( )

Returns the link status.

Returns

References de.desy.tine.client.TLink.getLinkStatus().

◆ onCallback()

abstract void de.desy.tine.client.TAwtSyncCallback.onCallback ( TLink  link)
abstract

Replaces TLinkCallback.callback().

This method to be implemented by derived classes.

Parameters
linkThe TLink which fired this callback.

Referenced by de.desy.tine.client.TAwtSyncCallback.run().


The documentation for this class was generated from the following file: