|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttcl.lang.TclEvent
tcl.lang.channel.FileEvent
public class FileEvent
This class is the handles the transient event that executes a 'fileevent' script exactly once. It schedules a duplicate of itself for the next fileevent script execution. It is closely tied with FileEventScript.
Field Summary | |
---|---|
static int |
READABLE
Indicates a READ file event |
static int |
WRITABLE
Indicates a WRITE file event |
Method Summary | |
---|---|
static boolean |
isStdinUsedForCommandInput()
|
int |
processEvent(int flags)
Process the event. |
static void |
queueFileEvent(Interp interp,
Channel channel,
int type)
Create a new FileEvent and add it to the TclEvent queue. |
static boolean |
setStdinUsedForCommandInput(boolean stdinUsedForCommandInput)
|
Methods inherited from class tcl.lang.TclEvent |
---|
sync |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int READABLE
public static final int WRITABLE
Method Detail |
---|
public static void queueFileEvent(Interp interp, Channel channel, int type)
interp
- interpreter in which to create the file eventchannel
- Channel on which to create the file eventtype
- either READABLE or WRITABLEpublic int processEvent(int flags)
TclEvent
processEvent
in class TclEvent
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()
public static boolean isStdinUsedForCommandInput()
public static boolean setStdinUsedForCommandInput(boolean stdinUsedForCommandInput)
stdinUsedForCommandInput
- the stdinUsedForCommandInput to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |