ujap.bibi
Class EditDialog
java.lang.Object
ujap.bibi.EditDialog
- class EditDialog
- extends Object
This class reads a file, displays the contents in a JTextArea and lets
the user modify it. if the user clicks okay, the contents are returned as
a StringReader to make them available for further use. If the user
clicks cancel, null is returned.
- Author:
- Ute Platzer
Constructor Summary |
EditDialog(Reader r)
pass the reader where the text comes from. |
Method Summary |
(package private) void |
dispose()
|
(package private) Reader |
edit(String message,
int row,
int column)
edit the text and get the result as a reader (that can be put into the
parser again). |
private void |
prepare(String message,
int row,
int column)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
cancelled
private boolean cancelled
d
private JDialog d
t
private JTextArea t
msg
private JTextArea msg
filename
private String filename
okay
private final JButton okay
cancel
private final JButton cancel
buttonListener
private ActionListener buttonListener
EditDialog
public EditDialog(Reader r)
- pass the reader where the text comes from.
The text is then displayed in a textArea.
prepare
private void prepare(String message,
int row,
int column)
edit
Reader edit(String message,
int row,
int column)
- edit the text and get the result as a reader (that can be put into the
parser again).
dispose
void dispose()
Copyright ? 2002-2005 Ute Platzer. All Rights Reserved.