public static class DocumentChangeEvent.InsertEvent extends DocumentChangeEvent
DocumentChangeEvent.DeleteEvent, DocumentChangeEvent.InsertEvent, DocumentChangeEvent.UpdateEvent| Modifier and Type | Field and Description |
|---|---|
protected String |
inserted |
protected int |
offset |
current, doc, previous| Constructor and Description |
|---|
InsertEvent() |
| Modifier and Type | Method and Description |
|---|---|
String |
getInserted()
Возвращает вставленный текст
|
int |
getOffset()
Возвращает смещение от начала текста
|
void |
setInserted(String inserted)
Указывает вставленный текст
|
void |
setOffset(int offset)
Указывает смещение от начала текста
|
getCurrent, getDocument, getPrevious, setCurrent, setDocument, setPreviousprotected int offset
protected String inserted
public int getOffset()
public void setOffset(int offset)
offset - смещениеpublic String getInserted()
public void setInserted(String inserted)
inserted - вставленный текстCopyright © 2019. All rights reserved.