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, TITLE
-
Fields inherited from class ro.sync.ecss.extensions.api.AuthorSchemaAwareEditingHandlerAdapter
lastHandlerResult
-
Fields 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 Constructor Description Docbook5SchemaAwareEditingHandler(java.lang.String documentNamespace)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
changeElementsToMoveUpDown(java.util.List<AuthorNode> selectedElements)
Determine the elements that should be moved by the Move Up/Down operation.protected java.lang.String
getInfoElementChildOfSect(java.lang.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, pushContextElement
-
Methods inherited from class ro.sync.ecss.extensions.api.AuthorSchemaAwareEditingHandlerAdapter
canBeReplaced, getLastResult, handleCreateDocumentFragment, handleDelete, handleDeleteElementTags, handleDeleteNodes, handleDeleteSelection, handleJoinElements
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface ro.sync.ecss.extensions.api.AuthorSchemaAwareEditingHandler
handleCodePointTyping, handleCodePointTypingFallback
-
-
-
-
Method Detail
-
getInfoElementChildOfSect
protected java.lang.String getInfoElementChildOfSect(java.lang.String sectElementName)
Description copied from class:DocbookSchemaAwareEditingHandler
Get the info child element name of to the given sect element name.- Overrides:
getInfoElementChildOfSect
in classDocbookSchemaAwareEditingHandler
- Parameters:
sectElementName
- The sect element name.- Returns:
- The info child element name.
- See Also:
DocbookSchemaAwareEditingHandler.getInfoElementChildOfSect(java.lang.String)
-
changeElementsToMoveUpDown
public boolean changeElementsToMoveUpDown(java.util.List<AuthorNode> selectedElements)
Description copied from class:AuthorSchemaAwareEditingHandlerAdapter
Determine the elements that should be moved by the Move Up/Down operation. For example if the current selected element is atitle
then the element that should actually be moved is its parent (e.g.section
for DocBook).- Overrides:
changeElementsToMoveUpDown
in 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 atitle
then the element that should actually be present in this list is its parent (e.g.section
for DocBook).- Returns:
true
if the list of elements to be moved was altered by the framework specific handler.- See Also:
AuthorSchemaAwareEditingHandlerAdapter.changeElementsToMoveUpDown(java.util.List)
-
-