public interface ChangeListener
DocumentDiff.showChanges(ChangeListener, int) for details.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CVS_ID
The CVS/SVN id
|
| Modifier and Type | Method and Description |
|---|---|
void |
onChangeEnd()
Invoked after a change finished.
|
void |
onChangeStart(int leftElem,
int leftLen,
int rightElem,
int rightLen)
Invoked before a change starts.
|
void |
onDeleted(int leftIdx,
int rightIdx,
Document.Element elem)
Invoked for a deleted element
|
void |
onDocumentsEnd(Document left,
Document right)
Invoked after the iteration over the changes finished.
|
void |
onDocumentsStart(Document left,
Document right)
Invoked before the iteration over the changes start.
|
void |
onInserted(int leftIdx,
int rightIdx,
Document.Element elem)
Invoked for an inserted element
|
void |
onUnmodified(int leftIdx,
int rightIdx,
Document.Element elem)
Invoked for an unmodified element
|
static final java.lang.String CVS_ID
void onDocumentsStart(Document left, Document right)
left - the left documentright - the right documentvoid onDocumentsEnd(Document left, Document right)
left - the left documentright - the right documentvoid onChangeStart(int leftElem,
int leftLen,
int rightElem,
int rightLen)
leftElem - the index of the left element of this change.leftLen - the number of changed left elements.rightElem - the index of the right element of this change.rightLen - the number of changed right elements.void onChangeEnd()
void onUnmodified(int leftIdx,
int rightIdx,
Document.Element elem)
leftIdx - the index of the left elementrightIdx - the index of the right elementelem - the elementvoid onDeleted(int leftIdx,
int rightIdx,
Document.Element elem)
leftIdx - the index of the left elementrightIdx - the index of the right elementelem - the elementvoid onInserted(int leftIdx,
int rightIdx,
Document.Element elem)
leftIdx - the index of the left elementrightIdx - the index of the right elementelem - the elementCopyright © 2010 - 2023 Adobe. All Rights Reserved