util
Class TextAreaWindow

java.lang.Object
  |
  +--util.TextAreaWindow
All Implemented Interfaces:
ActionListener, EventListener

public class TextAreaWindow
extends Object
implements ActionListener

Wrap input of process into a text window to seperate it from the rest of the world.


Field Summary
protected  boolean autoScrolling
          Indicates if the window should automatically scroll to the bottom as new lines of text arrive
static int DEFAULT_HEIGHT
           
static int DEFAULT_WIDTH
           
protected  LauncherDemon launcher
           
protected  int maxSize
           
protected  int messageCount
           
protected  LauncherPacket packet
           
 
Constructor Summary
TextAreaWindow(LauncherDemon launcher, Process proc, LauncherPacket packet)
           
TextAreaWindow(LauncherDemon launcher, Process proc, LauncherPacket packet, int maxSize)
           
 
Method Summary
 void actionPerformed(ActionEvent ev)
           
 void addIn(InputStream os)
           
static void main(String[] args)
           
 void setLocation(Point p)
           
 void setupFrame()
           
protected  void updateDisplay(String text)
          Updates the display with a new line of text; if necessary, it will forget some of the older messages
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_HEIGHT

public static final int DEFAULT_HEIGHT

DEFAULT_WIDTH

public static final int DEFAULT_WIDTH

messageCount

protected int messageCount

maxSize

protected int maxSize

packet

protected LauncherPacket packet

launcher

protected LauncherDemon launcher

autoScrolling

protected boolean autoScrolling
Indicates if the window should automatically scroll to the bottom as new lines of text arrive
Constructor Detail

TextAreaWindow

public TextAreaWindow(LauncherDemon launcher,
                      Process proc,
                      LauncherPacket packet)

TextAreaWindow

public TextAreaWindow(LauncherDemon launcher,
                      Process proc,
                      LauncherPacket packet,
                      int maxSize)
Method Detail

setLocation

public void setLocation(Point p)

setupFrame

public void setupFrame()

actionPerformed

public void actionPerformed(ActionEvent ev)
Specified by:
actionPerformed in interface ActionListener

updateDisplay

protected void updateDisplay(String text)
Updates the display with a new line of text; if necessary, it will forget some of the older messages

addIn

public void addIn(InputStream os)

main

public static void main(String[] args)