Package ro.sync.ecss.extensions.api
Interface DocumentContentInsertedEvent
-
- All Superinterfaces:
AuthorDocumentEvent
,DocumentContentChangedEvent
@API(type=NOT_EXTENDABLE, src=PUBLIC) public interface DocumentContentInsertedEvent extends DocumentContentChangedEvent
Event received by anAuthorListener
when insertion have been made in the content of theAuthorDocument
. It can have one of the types:DocumentContentChangedEvent.INSERT_TEXT_EVENT
DocumentContentChangedEvent.INSERT_NODE_EVENT
DocumentContentChangedEvent.INSERT_FRAGMENT_EVENT
-
-
Field Summary
-
Fields inherited from interface ro.sync.ecss.extensions.api.DocumentContentChangedEvent
DELETE_FRAGMENT_EVENT, DELETE_TEXT_EVENT, INSERT_FRAGMENT_EVENT, INSERT_NODE_EVENT, INSERT_TEXT_EVENT
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AuthorDocumentFragment
getInsertedFragment()
AuthorNode
getInsertedNode()
java.lang.String
getInsertedText()
-
Methods inherited from interface ro.sync.ecss.extensions.api.DocumentContentChangedEvent
getLength, getOffset, getParentNode, getType, isSimpleTextEdit
-
-
-
-
Method Detail
-
getInsertedText
java.lang.String getInsertedText()
- Returns:
- The inserted text if it is a simple text insert,
DocumentContentChangedEvent.INSERT_TEXT_EVENT
. Null otherwise.
-
getInsertedNode
AuthorNode getInsertedNode()
- Returns:
- The inserted node if a node is inserted,
DocumentContentChangedEvent.INSERT_NODE_EVENT
. Null otherwise.
-
getInsertedFragment
AuthorDocumentFragment getInsertedFragment()
- Returns:
- The inserted fragment if a fragment was inserted,
DocumentContentChangedEvent.INSERT_FRAGMENT_EVENT
. Null otherwise.
-
-