Main Page   Packages   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members  

OutputStreamArea Class Reference

An area for textual output. More...

Inheritance diagram for OutputStreamArea::

AppletOutputStreamArea List of all members.

Public Methods

 OutputStreamArea (int rows, int columns)
 Constructor. More...

 OutputStreamArea (int rows, int columns, boolean capture)
 Constructor. More...

void capture ()
 capture redirects all the output to the TextArea. More...

void actionPerformed (ActionEvent e)
 Implementation of ActionListener. More...


Static Public Methods

void print (String str)
 Displays the given string (without printing a newline). More...

void println (String str)
 Displays the given string and a newline. More...

void clear ()
 Clears the output area. More...


Protected Methods

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

Detailed Description

An area for textual output.


Constructor & Destructor Documentation

OutputStreamArea::OutputStreamArea int    rows,
int    columns
[inline]
 

Constructor.

OutputStreamArea::OutputStreamArea int    rows,
int    columns,
boolean    capture
[inline]
 

Constructor.


Member Function Documentation

void OutputStreamArea::capture   [inline]
 

capture redirects all the output to the TextArea.

This method is helpful when an OutputStreamArea is created and you wait till the containing frame is shown to redirect the output (in the meantime all the output goes to the console).

void OutputStreamArea::actionPerformed ActionEvent    e [inline]
 

Implementation of ActionListener.

void OutputStreamArea::print String    str [inline, static]
 

Displays the given string (without printing a newline).

void OutputStreamArea::println String    str [inline, static]
 

Displays the given string and a newline.

void OutputStreamArea::clear   [inline, static]
 

Clears the output area.

native void OutputStreamArea::initGuiOutputStream   [protected]
 

Reimplemented in AppletOutputStreamArea.

void OutputStreamArea::doPrint String    str [inline, protected]
 

void OutputStreamArea::doPrintln String    str [inline, protected]
 

void OutputStreamArea::doClear   [inline, protected]
 

Reimplemented in AppletOutputStreamArea.


The documentation for this class was generated from the following file:
Generated on Tue Jan 8 14:14:26 2002 for JavaReference by doxygen1.2.12 written by Dimitri van Heesch, © 1997-2001