tcl.lang
Class TclEvent

java.lang.Object
  extended by tcl.lang.TclEvent
Direct Known Subclasses:
FileEvent, SocketConnectionEvent

public abstract class TclEvent
extends Object

This is an abstract class that describes an event in the Jacl implementation of the notifier. It contains package protected fields and methods that are accessed by the Jacl notifier. Tcl Blend needs a different implementation of the TclEvent base class. The only public methods in this class are processEvent() and sync(). These methods must appear in both the Jacl and Tcl Blend versions of this class.


Constructor Summary
TclEvent()
           
 
Method Summary
abstract  int processEvent(int flags)
          Process the event.
 void sync()
          Wait until this event has been processed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TclEvent

public TclEvent()
Method Detail

processEvent

public abstract int processEvent(int flags)
Process the event. Override this method to implement new types of events. Note: this method is called by the primary thread of the notifier.

Parameters:
flags - Miscellaneous flag values: may be any combination of TCL.DONT_WAIT, TCL.WINDOW_EVENTS, TCL.FILE_EVENTS, TCL.TIMER_EVENTS, TCL.IDLE_EVENTS, or others defined by event sources - this is the same as the flags passed to Notifier.doOneEvent()
Returns:
1 means the event has been processed and can be removed from the event queue. 0 means the event should be deferred for processing later.

sync

public final void sync()
Wait until this event has been processed.



Copyright © 2015. All rights reserved.