|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.io.Writer jess.awt.TextAreaWriter
A simple Writer, suitable for constructing a PrintWriter, which uses a TextArea as its output. This class is a convenient way to write a GUI in which Jess prints its output to a text widget. Contents are kept to a maximum of 32000 characters, assuming that no other code appends to this TextArea.
(C)2005 Sandia National Laboratories
JTextAreaWriter
,
Serialized FormField Summary |
Fields inherited from class java.io.Writer |
lock |
Constructor Summary | |
TextAreaWriter(java.awt.TextArea area)
Call this with an already constructed TextArea object, which you can put wherever you'd like. |
Method Summary | |
void |
clear()
|
void |
close()
Does nothing |
void |
flush()
Flushes pending output to the TextArea. |
void |
write(char[] b,
int off,
int len)
Writes a portion of an array of characters to the TextArea. |
Methods inherited from class java.io.Writer |
write, write, write, write |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TextAreaWriter(java.awt.TextArea area)
area
- The text areaMethod Detail |
public void clear()
public void close()
public void flush()
public void write(char[] b, int off, int len)
b
- The array of charactersoff
- The first character in the array to writelen
- The number of characters form the array to writeflush()
|
© 2006 Sandia Corporation | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |