Package ro.sync.ecss.extensions.api
Interface DocumentContentDeletedEvent
-
- All Superinterfaces:
AuthorDocumentEvent
,DocumentContentChangedEvent
@API(type=NOT_EXTENDABLE, src=PUBLIC) public interface DocumentContentDeletedEvent extends DocumentContentChangedEvent
Event received by anAuthorListener
when a deletion has been made in the content of theAuthorDocument
. It can have one of the types:DocumentContentChangedEvent.DELETE_TEXT_EVENT
DocumentContentChangedEvent.DELETE_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
getDeletedFragment()
java.lang.String
getDeletedText()
-
Methods inherited from interface ro.sync.ecss.extensions.api.DocumentContentChangedEvent
getLength, getOffset, getParentNode, getType, isSimpleTextEdit
-
-
-
-
Method Detail
-
getDeletedText
java.lang.String getDeletedText()
- Returns:
- The deleted text if it is a simple text delete,
DocumentContentChangedEvent.DELETE_TEXT_EVENT
. Null otherwise.
-
getDeletedFragment
AuthorDocumentFragment getDeletedFragment()
- Returns:
- The deleted fragment if it is a fragment delete,
DocumentContentChangedEvent.DELETE_FRAGMENT_EVENT
. Null otherwise.
-
-