|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdirk_krause.jtools.LogContents
public class LogContents
This class can be used to transfer log output from external commands in a background thread to a log viewer window in the main thread.
Field Summary | |
---|---|
protected boolean |
showAlways
Show contents always or on error only. |
protected boolean |
success
Flag to indicate whether or not a program was run successfully. |
protected java.util.ArrayList<java.lang.String> |
textLines
Collection of all input lines already found. |
protected java.lang.String[] |
theTexts
Texts to be used while building the log text. |
Constructor Summary | |
---|---|
LogContents()
Default constructor. |
Method Summary | |
---|---|
void |
add(java.lang.String s)
Add a line of text. |
void |
cleanup()
Cleanup procedure. |
java.lang.String |
getContents()
Retrieve the contents (a text to show in the LogWindow class). |
boolean |
getShowAlways()
|
boolean |
getSuccess()
Check whether or not all commands have been executed successfully. |
void |
setShowAlways(boolean b)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.lang.String[] theTexts
protected java.util.ArrayList<java.lang.String> textLines
protected boolean success
protected boolean showAlways
Constructor Detail |
---|
public LogContents()
Method Detail |
---|
public java.lang.String getContents()
public void add(java.lang.String s)
s
- The text line to add.public boolean getSuccess()
public boolean getShowAlways()
public void setShowAlways(boolean b)
public void cleanup()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |