|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.util.EventObject | +--net.sf.vex.dom.DocumentEvent
Encapsulation of the details of a document change
Field Summary |
Fields inherited from class java.util.EventObject |
source |
Constructor Summary | |
DocumentEvent(Document document,
Element parentElement,
int offset,
int length)
Class constructor. |
|
DocumentEvent(Document document,
Element parentElement,
java.lang.String attributeName,
java.lang.String oldAttributeValue,
java.lang.String newAttributeValue)
Class constructor used when firing an attributeChanged event. |
Method Summary | |
java.lang.String |
getAttributeName()
|
Document |
getDocument()
|
int |
getLength()
Returns the length of the change. |
java.lang.String |
getNewAttributeValue()
|
int |
getOffset()
Returns the offset at which the change occurred. |
java.lang.String |
getOldAttributeValue()
|
Element |
getParentElement()
Returns the element containing the change. |
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 |
public DocumentEvent(Document document, Element parentElement, int offset, int length)
document
- Document that changed.parentElement
- Element containing the change.offset
- offset at which the change occurred.length
- length of the change.public DocumentEvent(Document document, Element parentElement, java.lang.String attributeName, java.lang.String oldAttributeValue, java.lang.String newAttributeValue)
document
- Document that changed.parentElement
- element containing the attribute that
changedattributeName
- name of the attribute that changedoldAttributeValue
- value of the attribute before the
change.newAttributeValue
- value of the attribute after the change.Method Detail |
public int getLength()
public int getOffset()
public Element getParentElement()
public java.lang.String getNewAttributeValue()
public java.lang.String getOldAttributeValue()
public java.lang.String getAttributeName()
public Document getDocument()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |