public class MockDocumentEvent extends DocumentEvent
Constructor and Description |
---|
MockDocumentEvent(Document document,
int offset) |
Modifier and Type | Method and Description |
---|---|
java.lang.CharSequence |
getNewFragment() |
int |
getNewLength() |
int |
getOffset()
The start offset of a text change.
|
java.lang.CharSequence |
getOldFragment() |
int |
getOldLength() |
long |
getOldTimeStamp() |
getDocument, getMoveOffset, isWholeTextReplaced
public MockDocumentEvent(Document document, int offset)
public int getOffset()
DocumentEvent
getOffset
in class DocumentEvent
public int getOldLength()
getOldLength
in class DocumentEvent
public int getNewLength()
getNewLength
in class DocumentEvent
public java.lang.CharSequence getOldFragment()
getOldFragment
in class DocumentEvent
public java.lang.CharSequence getNewFragment()
getNewFragment
in class DocumentEvent
public long getOldTimeStamp()
getOldTimeStamp
in class DocumentEvent