eXchaNGeR

org.xngr
Class XDocumentEvent

java.lang.Object
  |
  +--java.util.EventObject
        |
        +--org.xngr.XDocumentEvent
All Implemented Interfaces:
Serializable

public class XDocumentEvent
extends EventObject

The event that is fired to a document listener when the document has been saved, changed or deleted.

Version:
$Revision: 1.1.1.1 $, $Date: 2002/02/16 16:12:48 $
Author:
Edwin Dankert
See Also:
Serialized Form

Fields inherited from class java.util.EventObject
source
 
Constructor Summary
XDocumentEvent(XDocument document, XElement element)
          The constructor for the event.
 
Method Summary
 XDocument getDocument()
          Returns the document that is responsible for firing this event.
 XElement getElement()
          Returns the root element that identifies the changed elements in the document.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

XDocumentEvent

public XDocumentEvent(XDocument document,
                      XElement element)
The constructor for the event.
Parameters:
document - the document that fired the event.
element - the element that is the root element for all updated elements.
Method Detail

getDocument

public XDocument getDocument()
Returns the document that is responsible for firing this event.
Returns:
the document.

getElement

public XElement getElement()
Returns the root element that identifies the changed elements in the document.
Returns:
the root element for all the changed elements.

eXchaNGeR

Copyright © 2002, Cladonia Ltd., All Rights Reserved