Bibi
19 Oct 2005 21:04

ujap.bibi
Class EditDialog

java.lang.Object
  extended byujap.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

Field Summary
private  ActionListener buttonListener
           
private  JButton cancel
           
private  boolean cancelled
           
private  JDialog d
           
private  String filename
           
private  JTextArea msg
           
private  JButton okay
           
private  JTextArea t
           
 
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
 

Field Detail

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
Constructor Detail

EditDialog

public EditDialog(Reader r)
pass the reader where the text comes from. The text is then displayed in a textArea.

Method Detail

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()

Bibi
19 Oct 2005 21:04

Copyright ? 2002-2005 Ute Platzer. All Rights Reserved.