de.uni_paderborn.fujaba.gui
Class TextEditAction

java.lang.Object
  extended byde.uni_paderborn.fujaba.gui.TextEditAction
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener, TextEditor.BufferOwner

public class TextEditAction
extends java.lang.Object
implements java.awt.event.ActionListener, TextEditor.BufferOwner

Version:
$Revision: 1.4 $ $Date: 2004/11/03 10:18:06 $
Author:
christian.schneider@uni-kassel.de

Nested Class Summary
static interface TextEditAction.ClosableDialog
          No comment provided by developer, please add a comment to improve documentation.
 
Field Summary
(package private)  TextEditAction.ClosableDialog dialog
          dialog to be closed after editing
(package private)  TextEditor.Buffer sourceBuffer
          where to put the text for the editor
(package private)  javax.swing.JTextArea sourceEditor
          where to get the text
 
Constructor Summary
TextEditAction(TextEditAction.ClosableDialog dialog, javax.swing.JTextArea sourceEditor)
          create a TextEditAction that will edit the text found in the sourceEditor
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
           
 void bufferSaved(TextEditor.Buffer buffer)
          called whenever the user chooses to keep the content of the buffer
 void setDialog(TextEditAction.ClosableDialog dialog)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sourceEditor

javax.swing.JTextArea sourceEditor
where to get the text


sourceBuffer

TextEditor.Buffer sourceBuffer
where to put the text for the editor


dialog

TextEditAction.ClosableDialog dialog
dialog to be closed after editing

Constructor Detail

TextEditAction

public TextEditAction(TextEditAction.ClosableDialog dialog,
                      javax.swing.JTextArea sourceEditor)
create a TextEditAction that will edit the text found in the sourceEditor

Parameters:
dialog - which dialog to attach (closed upon edit)
sourceEditor - what to edit
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Specified by:
actionPerformed in interface java.awt.event.ActionListener
Parameters:
e - event that caused the action to be invoked

bufferSaved

public void bufferSaved(TextEditor.Buffer buffer)
Description copied from interface: TextEditor.BufferOwner
called whenever the user chooses to keep the content of the buffer

Specified by:
bufferSaved in interface TextEditor.BufferOwner
Parameters:
buffer - what has been saved

setDialog

public void setDialog(TextEditAction.ClosableDialog dialog)
Parameters:
dialog - which dialog to attach (closed upon edit)