smacs.xngr
Class XDocumentEvent
java.lang.Object
java.util.EventObject
smacs.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.
- Author:
- Edwin Dankert
- See Also:
- Serialized Form
|
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. |
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.
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.