au.edu.jcu.hermes.ui.swing
Class Console

java.lang.Object
  extended by java.awt.event.WindowAdapter
      extended by au.edu.jcu.hermes.ui.swing.Console
All Implemented Interfaces:
java.awt.datatransfer.ClipboardOwner, java.awt.event.ActionListener, java.awt.event.WindowFocusListener, java.awt.event.WindowListener, java.awt.event.WindowStateListener, java.lang.Runnable, java.util.EventListener

public class Console
extends java.awt.event.WindowAdapter
implements java.awt.event.WindowListener, java.awt.event.ActionListener, java.lang.Runnable, java.awt.datatransfer.ClipboardOwner


Constructor Summary
Console()
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent evt)
           
 java.io.PrintStream getError()
           
 java.io.PrintStream getOut()
           
 void lostOwnership(java.awt.datatransfer.Clipboard clipboard, java.awt.datatransfer.Transferable transferable)
           
 void onApplicationEvent(ApplicationEvent event)
           
 java.lang.String readLine(java.io.PipedInputStream in)
           
 void run()
           
 void setVisible(boolean visible)
           
 void startReaders()
           
 void windowClosed(java.awt.event.WindowEvent evt)
           
 void windowClosing(java.awt.event.WindowEvent evt)
           
 
Methods inherited from class java.awt.event.WindowAdapter
windowActivated, windowDeactivated, windowDeiconified, windowGainedFocus, windowIconified, windowLostFocus, windowOpened, windowStateChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.awt.event.WindowListener
windowActivated, windowDeactivated, windowDeiconified, windowIconified, windowOpened
 

Constructor Detail

Console

public Console()
Method Detail

getOut

public java.io.PrintStream getOut()

getError

public java.io.PrintStream getError()

startReaders

public void startReaders()

setVisible

public void setVisible(boolean visible)

windowClosed

public void windowClosed(java.awt.event.WindowEvent evt)
Specified by:
windowClosed in interface java.awt.event.WindowListener
Overrides:
windowClosed in class java.awt.event.WindowAdapter

windowClosing

public void windowClosing(java.awt.event.WindowEvent evt)
Specified by:
windowClosing in interface java.awt.event.WindowListener
Overrides:
windowClosing in class java.awt.event.WindowAdapter

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent evt)
Specified by:
actionPerformed in interface java.awt.event.ActionListener

run

public void run()
Specified by:
run in interface java.lang.Runnable

readLine

public java.lang.String readLine(java.io.PipedInputStream in)
                          throws java.io.IOException
Throws:
java.io.IOException

onApplicationEvent

public void onApplicationEvent(ApplicationEvent event)

lostOwnership

public void lostOwnership(java.awt.datatransfer.Clipboard clipboard,
                          java.awt.datatransfer.Transferable transferable)
Specified by:
lostOwnership in interface java.awt.datatransfer.ClipboardOwner