org.fraid.io.gui
Class LineReader
java.lang.Object
java.io.Reader
org.fraid.io.gui.LineReader
- All Implemented Interfaces:
- java.io.Closeable, java.lang.Readable
public class LineReader
- extends java.io.Reader
A Reader which reads from a textField. Has command history and marks matching brackets.
Fields inherited from class java.io.Reader |
lock |
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 |
mReaderDialog
protected javax.swing.JDialog mReaderDialog
mBuffer
protected java.lang.StringBuffer mBuffer
mLine
protected javax.swing.JTextField mLine
mReadLock
protected java.lang.Object mReadLock
mReadyForRead
protected boolean mReadyForRead
m_EOL
protected char m_EOL
mCommandBuffer
protected java.util.Vector<java.lang.String> mCommandBuffer
mCommandBufferSize
protected int mCommandBufferSize
mCurrentCommandIndex
protected int mCurrentCommandIndex
mCommandString
protected java.lang.StringBuffer mCommandString
LineReader
public LineReader()
read
public int read(char[] cbuf,
int off,
int len)
- Specified by:
read
in class java.io.Reader
close
public void close()
- Specified by:
close
in interface java.io.Closeable
- Specified by:
close
in class java.io.Reader
addToCommandBuffer
protected void addToCommandBuffer()
getLine
public javax.swing.JTextField getLine()
showDialog
public void showDialog()
addBindings
protected void addBindings()
Fraid (system and language). (C) 2003-2007 Ivaylo Iliev
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.