|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.io.OutputStream
org.fraid.io.gui.DialogOutpStream
public class DialogOutpStream
A stream which writes to a dialog.
| Field Summary | |
|---|---|
protected java.lang.StringBuffer |
mBuffer
|
protected javax.swing.JDialog |
mDialog
|
protected javax.swing.JTextArea |
mDialogText
|
protected javax.swing.JButton |
mDlgClearButton
|
protected javax.swing.JButton |
mDlgOKButton
|
protected boolean |
mIsIncremental
|
protected boolean |
mIsPanelVisible
|
int |
mMaxSize
The maximum size of the buffer, when exceeded the first 20% are deleted. |
protected javax.swing.JPanel |
mStreamPanel
|
protected javax.swing.JScrollPane |
mTextScroller
|
protected java.lang.String |
mTitle
|
| Constructor Summary | |
|---|---|
DialogOutpStream(java.lang.String aTitle,
boolean aIsIncremental,
boolean aShowButtons)
Creates a new DialogOutpStream instance. |
|
| Method Summary | |
|---|---|
void |
close()
The close method of the stream. |
void |
flush()
The flush method of the stream. |
javax.swing.JPanel |
getPanel()
|
javax.swing.JScrollPane |
getScrollPane()
|
javax.swing.JTextArea |
getTextArea()
Returns the current text area. |
void |
showDialog()
Shows the dialog if it is invisible. |
void |
write(int c)
The write method of the stream. |
| Methods inherited from class java.io.OutputStream |
|---|
write, write |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected javax.swing.JPanel mStreamPanel
protected java.lang.StringBuffer mBuffer
protected javax.swing.JButton mDlgOKButton
protected javax.swing.JButton mDlgClearButton
protected javax.swing.JTextArea mDialogText
protected javax.swing.JDialog mDialog
protected boolean mIsIncremental
protected boolean mIsPanelVisible
protected java.lang.String mTitle
protected javax.swing.JScrollPane mTextScroller
public int mMaxSize
| Constructor Detail |
|---|
public DialogOutpStream(java.lang.String aTitle,
boolean aIsIncremental,
boolean aShowButtons)
DialogOutpStream instance.
aTitle - a String valueaIsIncremental - true for info stream, false for err.| Method Detail |
|---|
public javax.swing.JTextArea getTextArea()
JTextArea valuepublic javax.swing.JScrollPane getScrollPane()
public javax.swing.JPanel getPanel()
public void showDialog()
public void write(int c)
write in class java.io.OutputStreamc - an int valuepublic void close()
close method of the stream. Doesn't do anything.
close in interface java.io.Closeableclose in class java.io.OutputStreampublic void flush()
flush method of the stream.
flush in interface java.io.Flushableflush in class java.io.OutputStream
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||