@API(type=EXTENDABLE, src=PUBLIC) public interface SchemaAwareHandlerResult extends SchemaAwareHandlerResultInsertConstants
AuthorSchemaAwareEditingHandler
.
The user can provide a custom implementation in order to transfer useful information about the
event handling.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
TYPE_HANDLE_DELETE_ELEMENT_TAGS_OPERATION
Result generated by a delete element tags operation.
|
static java.lang.String |
TYPE_HANDLE_DELETE_OPERATION
Result generated by a keyboard delete operation (using delete or backspace keys).
|
static java.lang.String |
TYPE_HANDLE_DELETE_SELECTION_OPERATION
Result generated by a delete selection operation.
|
static java.lang.String |
TYPE_HANDLE_INSERT_FRAGMENT_OPERATION
Result generated by an insert fragment operation.
|
static java.lang.String |
TYPE_HANDLE_JOIN_ELEMENTS_OPERATION
Result generated by a join operation.
|
static java.lang.String |
TYPE_HANDLE_TYPING_OPERATION
Result generated by a typing operation.
|
RESULT_ID_HANDLE_INSERT_FRAGMENT_OFFSET
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getResult(java.lang.String resultId)
Get the result for the given id.
|
java.lang.String |
getType()
The type of operation that generated the result.
|
static final java.lang.String TYPE_HANDLE_DELETE_OPERATION
static final java.lang.String TYPE_HANDLE_DELETE_ELEMENT_TAGS_OPERATION
static final java.lang.String TYPE_HANDLE_DELETE_SELECTION_OPERATION
static final java.lang.String TYPE_HANDLE_JOIN_ELEMENTS_OPERATION
static final java.lang.String TYPE_HANDLE_INSERT_FRAGMENT_OPERATION
static final java.lang.String TYPE_HANDLE_TYPING_OPERATION
java.lang.Object getResult(java.lang.String resultId)
resultId
- One of the constants defined in this interface.null
for an unknown result id.java.lang.String getType()
getResult(String)
method.
Possible values are:
TYPE_HANDLE_DELETE_ELEMENT_TAGS_OPERATION
for delete element tags operation,
see AuthorSchemaAwareEditingHandler.handleDeleteElementTags(ro.sync.ecss.extensions.api.node.AuthorNode, AuthorAccess)
;TYPE_HANDLE_DELETE_OPERATION
for a keyboard delete operation,
see AuthorSchemaAwareEditingHandler.handleDelete(int, int, AuthorAccess, boolean)
;TYPE_HANDLE_DELETE_SELECTION_OPERATION
for delete selection operation,
see AuthorSchemaAwareEditingHandler.handleDeleteSelection(int, int, int, AuthorAccess)
;TYPE_HANDLE_JOIN_ELEMENTS_OPERATION
for join elements operation,
see AuthorSchemaAwareEditingHandler.handleJoinElements(ro.sync.ecss.extensions.api.node.AuthorNode, java.util.List, AuthorAccess)
;TYPE_HANDLE_INSERT_FRAGMENT_OPERATION
for insert fragment operation,
see AuthorSchemaAwareEditingHandler.handlePasteFragment(int, ro.sync.ecss.extensions.api.node.AuthorDocumentFragment[], int, AuthorAccess)
;TYPE_HANDLE_TYPING_OPERATION
for typing operation,
see AuthorSchemaAwareEditingHandler.handleTyping(int, char, AuthorAccess)
.© Copyright SyncRO Soft SRL 2002 - 2016. All rights reserved.