Interface SchemaAwareHandlerResult
- All Superinterfaces:
SchemaAwareHandlerResultInsertConstants
- All Known Implementing Classes:
SchemaAwareHandlerResultsImpl
@API(type=EXTENDABLE,
src=PUBLIC)
public interface SchemaAwareHandlerResult
extends SchemaAwareHandlerResultInsertConstants
Contains information about the result of the last operation handled by
AuthorSchemaAwareEditingHandler
.
The user can provide a custom implementation in order to transfer useful information about the
event handling.- Since:
- 11.2
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
Result generated by a delete element tags operation.static final String
Result generated by a keyboard delete operation (using delete or backspace keys).static final String
Result generated by a delete selection operation.static final String
Result generated by an insert fragment operation.static final String
Result generated by a join operation.static final String
Result generated by a typing operation.Fields inherited from interface ro.sync.ecss.extensions.api.schemaaware.SchemaAwareHandlerResultInsertConstants
RESULT_ID_HANDLE_INSERT_FRAGMENT_OFFSET
-
Method Summary
-
Field Details
-
TYPE_HANDLE_DELETE_OPERATION
Result generated by a keyboard delete operation (using delete or backspace keys).- See Also:
-
TYPE_HANDLE_DELETE_ELEMENT_TAGS_OPERATION
Result generated by a delete element tags operation.- See Also:
-
TYPE_HANDLE_DELETE_SELECTION_OPERATION
Result generated by a delete selection operation.- See Also:
-
TYPE_HANDLE_JOIN_ELEMENTS_OPERATION
Result generated by a join operation.- See Also:
-
TYPE_HANDLE_INSERT_FRAGMENT_OPERATION
Result generated by an insert fragment operation.- See Also:
-
TYPE_HANDLE_TYPING_OPERATION
Result generated by a typing operation.- See Also:
-
-
Method Details
-
getResult
Get the result for the given id.- Parameters:
resultId
- One of the constants defined in this interface.- Returns:
- The value for the result. Can be
null
for an unknown result id.
-
getType
String getType()The type of operation that generated the result. Depending on a result type, different information is available throughgetResult(String)
method. Possible values are:TYPE_HANDLE_DELETE_ELEMENT_TAGS_OPERATION
for delete element tags operation, seeAuthorSchemaAwareEditingHandler.handleDeleteElementTags(ro.sync.ecss.extensions.api.node.AuthorNode, AuthorAccess)
;TYPE_HANDLE_DELETE_OPERATION
for a keyboard delete operation, seeAuthorSchemaAwareEditingHandler.handleDelete(int, int, AuthorAccess, boolean)
;TYPE_HANDLE_DELETE_SELECTION_OPERATION
for delete selection operation, seeAuthorSchemaAwareEditingHandler.handleDeleteSelection(int, int, int, AuthorAccess)
;TYPE_HANDLE_JOIN_ELEMENTS_OPERATION
for join elements operation, seeAuthorSchemaAwareEditingHandler.handleJoinElements(ro.sync.ecss.extensions.api.node.AuthorNode, java.util.List, AuthorAccess)
;TYPE_HANDLE_INSERT_FRAGMENT_OPERATION
for insert fragment operation, seeAuthorSchemaAwareEditingHandler.handlePasteFragment(int, ro.sync.ecss.extensions.api.node.AuthorDocumentFragment[], int, AuthorAccess)
;TYPE_HANDLE_TYPING_OPERATION
for typing operation, seeAuthorSchemaAwareEditingHandler.handleTyping(int, char, AuthorAccess)
.
- Returns:
- One of the constants from above, describing which schema aware operation generated the result.
-