public interface DocumentListener
extends java.util.EventListener
DocumentListener interface should be
implemented by clients that are interested in being notified about
operations on Documents.Document,
DocumentEvent| Modifier and Type | Method and Description |
|---|---|
void |
closed(DocumentEvent event)
Notify listeners that the document has been closed.
|
void |
modified(DocumentEvent event)
Notify listeners that the document has been modified.
|
void |
opened(DocumentEvent event)
Notify listeners that the document has been opened.
|
void |
saved(DocumentEvent event)
Notify listeners that the document has been saved.
|
void |
willBeClosed(DocumentEvent event)
Notify listeners that the document is about to be closed.
|
void |
willBeSaved(DocumentEvent event)
Notify listeners that the document is about to be saved.
|
void opened(DocumentEvent event)
event - the DocumentEvent.void willBeClosed(DocumentEvent event)
event - the DocumentEvent.void closed(DocumentEvent event)
Document methods that cause the document
to be reopened.event - the DocumentEvent.void modified(DocumentEvent event)
event - the DocumentEvent.void willBeSaved(DocumentEvent event)
event - the DocumentEvent.void saved(DocumentEvent event)
event - the DocumentEvent.