|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.io.Reader
org.fraid.io.gui.BoxReader
public class BoxReader
A Reader which reads from a textArea. Has command history and marks matching brackets.
| Field Summary | |
|---|---|
protected javax.swing.JTextArea |
mBox
|
protected java.lang.StringBuffer |
mBuffer
|
protected java.util.Vector<java.lang.String> |
mCommandBuffer
|
protected int |
mCommandBufferSize
|
protected int |
mCurrentCommandIndex
|
protected javax.swing.JPanel |
mPanel
|
protected javax.swing.JDialog |
mReaderDialog
|
protected java.lang.Object |
mReadLock
|
protected boolean |
mReadyForRead
|
protected javax.swing.JScrollPane |
mTextScroller
|
| Fields inherited from class java.io.Reader |
|---|
lock |
| Constructor Summary | |
|---|---|
BoxReader()
Creates a new BoxReader instance. |
|
| Method Summary | |
|---|---|
protected void |
addBindings()
Bind keys. |
void |
addToCommandBuffer(java.lang.String aCommand)
Describe addToCommandBuffer method here. |
void |
close()
The stream's close method. |
void |
consumeText(java.lang.String aText)
Display and send aText. |
javax.swing.JTextArea |
getBox()
Get the text area. |
javax.swing.JPanel |
getPanel()
Get the panel. |
javax.swing.JScrollPane |
getScrollPane()
Get the scroll pane. |
javax.swing.JTextArea |
getTextArea()
Returns the current text area. |
void |
help()
Show a help dialog. |
int |
read(char[] cbuf,
int off,
int len)
The stream's read method. |
void |
sendContent(java.lang.String aText)
Send the buffer's content. |
void |
showDialog()
Show a dialog with a BoxReader. |
| Methods inherited from class java.io.Reader |
|---|
mark, markSupported, read, read, read, ready, reset, skip |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected javax.swing.JDialog mReaderDialog
protected javax.swing.JPanel mPanel
protected javax.swing.JScrollPane mTextScroller
protected java.lang.StringBuffer mBuffer
protected javax.swing.JTextArea mBox
protected java.lang.Object mReadLock
protected boolean mReadyForRead
protected java.util.Vector<java.lang.String> mCommandBuffer
protected int mCommandBufferSize
protected int mCurrentCommandIndex
| Constructor Detail |
|---|
public BoxReader()
BoxReader instance.
| Method Detail |
|---|
public javax.swing.JTextArea getTextArea()
JTextArea valuepublic javax.swing.JScrollPane getScrollPane()
JScrollPane valuepublic javax.swing.JPanel getPanel()
JPanel value
public int read(char[] cbuf,
int off,
int len)
read in class java.io.Readercbuf - a char[] valueoff - an int valuelen - an int value
int valuepublic void close()
close in interface java.io.Closeableclose in class java.io.Readerpublic void addToCommandBuffer(java.lang.String aCommand)
addToCommandBuffer method here.
aCommand - a String valuepublic javax.swing.JTextArea getBox()
JTextArea valuepublic void consumeText(java.lang.String aText)
aText - a String valuepublic void help()
public void sendContent(java.lang.String aText)
public void showDialog()
protected void addBindings()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||