|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Unsafe:
Method Summary | |
javax.swing.event.DocumentEvent.ElementChange |
getChange(Element elem)
Enabled: Gets the change information for the given element. |
Document |
getDocument()
Suppressed: Gets the document that sourced the change event. |
int |
getLength()
Enabled: Returns the length of the change. |
int |
getOffset()
Enabled: Returns the offset within the document of the start of the change. |
javax.swing.event.DocumentEvent.EventType |
getType()
Enabled: Gets the type of event. |
Method Detail |
public int getOffset()
public int getLength()
public Document getDocument()
public javax.swing.event.DocumentEvent.EventType getType()
public javax.swing.event.DocumentEvent.ElementChange getChange(Element elem)
This method is for observers to discover the structural changes that were made. This means that only elements that existed prior to the mutation (and still exist after the mutatino) need to have ElementChange records. The changes made available need not be recursive.
For example, if the an element is removed from it's parent, this method should report that the parent changed and provide an ElementChange implementation that describes the change to the parent. If the child element removed had children, these elements do not need to be reported as removed.
If an child element is insert into a parent element, the parent element should report a change. If the child element also had elements inserted into it (grandchildren to the parent) these elements need not report change.
elem
- the element
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |