|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.bluemarsh.jswat.ui.GraphicalOutputAdapter
Class OutputAdapter is responsible for displaying the output of a debuggee process to a text area. It reads both the standard output and standard error streams from the debuggee VM. For it to operate correctly it must be added as a session listener.
Field Summary | |
protected com.bluemarsh.jswat.ui.FancyTextArea |
outputArea
Text area displaying the messages. |
protected javax.swing.JScrollPane |
outputAreaScroller
Scroller for the output area. |
protected int |
outputCompleteCount
When this reaches 2, the output streams are finished. |
Constructor Summary | |
GraphicalOutputAdapter()
Constructs a GraphicalOutputAdapter with the default text area. |
Method Summary | |
void |
activate(Session session)
Called when the Session is about to begin an active debugging session. |
void |
close(Session session)
Called when the Session is about to close down. |
void |
deactivate(Session session)
Called when the Session is about to end an active debugging session. |
protected void |
displayOutput(java.io.InputStream is)
Create a thread that will retrieve and display any output from the given input stream. |
javax.swing.JComponent |
getUI()
Returns a reference to the UI component. |
void |
init(Session session)
Called after the Session has added this listener to the Session listener list. |
protected void |
notifyOutputComplete()
Notify any waiters that one of the reader threads has finished reading its output. |
void |
setMaxLineCount(int count)
Sets the maximum number of lines to be shown in this panel. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected com.bluemarsh.jswat.ui.FancyTextArea outputArea
protected javax.swing.JScrollPane outputAreaScroller
protected int outputCompleteCount
Constructor Detail |
public GraphicalOutputAdapter()
Method Detail |
public void activate(Session session)
activate
in interface SessionListener
session
- Session being activated.public void close(Session session)
close
in interface SessionListener
session
- Session being closed.public void deactivate(Session session)
deactivate
in interface SessionListener
session
- Session being deactivated.protected void displayOutput(java.io.InputStream is)
is
- InputStream to read from.public javax.swing.JComponent getUI()
public void init(Session session)
init
in interface SessionListener
session
- Session adding this listener.protected void notifyOutputComplete()
public void setMaxLineCount(int count)
count
- maximum number of lines to show.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |