Package ro.sync.ecss.extensions.docbook
Class Docbook5SchemaAwareEditingHandler
java.lang.Object
ro.sync.ecss.extensions.api.AuthorSchemaAwareEditingHandlerAdapter
ro.sync.ecss.extensions.docbook.DocbookSchemaAwareEditingHandler
ro.sync.ecss.extensions.docbook.Docbook5SchemaAwareEditingHandler
- All Implemented Interfaces:
AuthorSchemaAwareEditingHandler
@API(type=INTERNAL,
src=PUBLIC)
public class Docbook5SchemaAwareEditingHandler
extends DocbookSchemaAwareEditingHandler
Specific schema aware editing cases for Docbook5.
-
Nested Class Summary
Nested classes/interfaces inherited from class ro.sync.ecss.extensions.api.AuthorSchemaAwareEditingHandlerAdapter
AuthorSchemaAwareEditingHandlerAdapter.WrapInAncestorsOptions -
Field Summary
Fields inherited from class ro.sync.ecss.extensions.docbook.DocbookSchemaAwareEditingHandler
documentNamespace, INFO_SUFIX, PARA, TITLEFields inherited from class ro.sync.ecss.extensions.api.AuthorSchemaAwareEditingHandlerAdapter
lastHandlerResultFields inherited from interface ro.sync.ecss.extensions.api.AuthorSchemaAwareEditingHandler
ACTION_ID_BACKSPACE, ACTION_ID_CUT, ACTION_ID_DELETE, ACTION_ID_DND, ACTION_ID_INSERT_FRAGMENT, ACTION_ID_PASTE, ACTION_ID_TYPING, CREATE_FRAGMENT_PURPOSE_COPY, CREATE_FRAGMENT_PURPOSE_CUT, CREATE_FRAGMENT_PURPOSE_DND_COPY, CREATE_FRAGMENT_PURPOSE_DND_MOVE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanchangeElementsToMoveUpDown(List<AuthorNode> selectedElements) Determine the elements that should be moved by the Move Up/Down operation.protected StringgetInfoElementChildOfSect(String sectElementName) Get the info child element name of to the given sect element name.Methods inherited from class ro.sync.ecss.extensions.docbook.DocbookSchemaAwareEditingHandler
getAncestorDetectionOptions, getPreferredElement, handlePasteFragment, handleTyping, handleTypingFallback, isElementWithNameAndNamespace, pushContextElementMethods inherited from class ro.sync.ecss.extensions.api.AuthorSchemaAwareEditingHandlerAdapter
canBeReplaced, getLastResult, handleCreateDocumentFragment, handleDelete, handleDeleteElementTags, handleDeleteNodes, handleDeleteSelection, handleJoinElementsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ro.sync.ecss.extensions.api.AuthorSchemaAwareEditingHandler
handleCodePointTyping, handleCodePointTypingFallback
-
Constructor Details
-
Docbook5SchemaAwareEditingHandler
- Parameters:
documentNamespace-
-
-
Method Details
-
getInfoElementChildOfSect
Description copied from class:DocbookSchemaAwareEditingHandlerGet the info child element name of to the given sect element name.- Overrides:
getInfoElementChildOfSectin classDocbookSchemaAwareEditingHandler- Parameters:
sectElementName- The sect element name.- Returns:
- The info child element name.
- See Also:
-
changeElementsToMoveUpDown
Description copied from class:AuthorSchemaAwareEditingHandlerAdapterDetermine the elements that should be moved by the Move Up/Down operation. For example if the current selected element is atitlethen the element that should actually be moved is its parent (e.g.sectionfor DocBook).- Overrides:
changeElementsToMoveUpDownin classDocbookSchemaAwareEditingHandler- Parameters:
selectedElements- the selected elements in the author page. This list should be altered depending on the framework specific structure.
For example if the current selected element is atitlethen the element that should actually be present in this list is its parent (e.g.sectionfor DocBook).- Returns:
trueif the list of elements to be moved was altered by the framework specific handler.- See Also:
-