Horus Doc || Java GUI Reference || Doxygen's quick Index  

AppletOutputStreamArea Class Reference

Inheritance diagram for AppletOutputStreamArea::

OutputStreamArea List of all members.

Public Methods

 AppletOutputStreamArea (JTextArea area)

Protected Methods

void initGuiOutputStream ()
void doPrint (final String str)
void doPrintln (final String str)
void doClear ()

Constructor & Destructor Documentation

AppletOutputStreamArea::AppletOutputStreamArea JTextArea    area [inline]
 

00021 {
00022     super(10,10,true);
00023     _text = area;
00024 }


Member Function Documentation

void AppletOutputStreamArea::initGuiOutputStream   [inline, protected]
 

Reimplemented from OutputStreamArea.

00027 {
00028 }

void AppletOutputStreamArea::doPrint final String    str [inline, protected]
 

00031 {
00032     if(SwingUtilities.isEventDispatchThread())
00033         _text.append(str);
00034     else {
00035         Runnable doMessage = new Runnable() {
00036             public void run() { doPrint(str); }
00037         };
00038         SwingUtilities.invokeLater(doMessage);
00039     }
00040 }

void AppletOutputStreamArea::doPrintln final String    str [inline, protected]
 

00043 {
00044     if(SwingUtilities.isEventDispatchThread())
00045         _text.append(str + "\n");
00046     else {
00047         Runnable doMessage = new Runnable() {
00048             public void run() { doPrintln(str); }
00049         };
00050         SwingUtilities.invokeLater(doMessage);
00051     }
00052 }

void AppletOutputStreamArea::doClear   [inline, protected]
 

Reimplemented from OutputStreamArea.

00055 {
00056     if(SwingUtilities.isEventDispatchThread())
00057         _text.setText("");
00058     else {
00059         Runnable doMessage = new Runnable() {
00060             public void run() { doClear(); }
00061         };
00062         SwingUtilities.invokeLater(doMessage);
00063     }
00064 }


The documentation for this class was generated from the following file:
Generated on Mon Jan 27 15:11:13 2003 for JavaReference by doxygen1.2.12 written by Dimitri van Heesch, © 1997-2001