Class ChoiceTableShowPropertiesOperation
java.lang.Object
ro.sync.ecss.extensions.commons.table.properties.ShowTablePropertiesBaseOperation
ro.sync.ecss.extensions.dita.topic.table.simpletable.properties.SimpleTableShowPropertiesOperationBase
ro.sync.ecss.extensions.dita.topic.table.simpletable.properties.ChoiceTableShowPropertiesOperation
- All Implemented Interfaces:
AuthorOperation
,Extension
@API(type=INTERNAL,
src=PUBLIC)
public class ChoiceTableShowPropertiesOperation
extends SimpleTableShowPropertiesOperationBase
Class for edit properties on DITA choice tables.
-
Field Summary
Fields inherited from class ro.sync.ecss.extensions.commons.table.properties.ShowTablePropertiesBaseOperation
authorAccess, tableHelper
Fields inherited from interface ro.sync.ecss.extensions.api.AuthorOperation
NAMESPACE_ARGUMENT, NAMESPACE_ARGUMENT_DESCRIPTOR, SCHEMA_AWARE_ARGUMENT, SCHEMA_AWARE_ARGUMENT_DESCRIPTOR
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
computeFragmentMoveInsideHeader
(List<AuthorDocumentFragment> fragments, List<Position> offsets, TabInfo tabInfo, List<AuthorElement> nodesToModify, AuthorElement currentNode) Computes the fragment and position, inside header element, for the given node.protected boolean
computeFragmentsToMoveInsideBody
(List<AuthorDocumentFragment> fragments, List<Position> offsets, TabInfo tabInfo, List<AuthorElement> nodesToModify, AuthorElement currentNode) Computes the fragment and position, inside body element, for the given node.Methods inherited from class ro.sync.ecss.extensions.dita.topic.table.simpletable.properties.SimpleTableShowPropertiesOperationBase
computeFragmentsToMoveInsideFooter, getCategoriesAndProperties, getHelpPageID, getTableAttribute
Methods inherited from class ro.sync.ecss.extensions.commons.table.properties.ShowTablePropertiesBaseOperation
checkRowSpans, doOperation, getArguments, getAttrProperty, getCommonValue, getDescription, getElementsWithModifiedAttributes, getFragmentsAndOffsetsToInsert, getSelectedTab, getTableInformation, showTableProperties
-
Constructor Details
-
ChoiceTableShowPropertiesOperation
public ChoiceTableShowPropertiesOperation()Constructor.
-
-
Method Details
-
computeFragmentMoveInsideHeader
protected boolean computeFragmentMoveInsideHeader(List<AuthorDocumentFragment> fragments, List<Position> offsets, TabInfo tabInfo, List<AuthorElement> nodesToModify, AuthorElement currentNode) throws AuthorOperationException Description copied from class:ShowTablePropertiesBaseOperation
Computes the fragment and position, inside header element, for the given node.- Overrides:
computeFragmentMoveInsideHeader
in classSimpleTableShowPropertiesOperationBase
- Parameters:
fragments
- A list with already computed fragments. The new fragment will be added to this list.offsets
- A list with positions where the given fragments will be inserted.tabInfo
- The current edited tab info.nodesToModify
- A list containing all the nodes that will be deleted.currentNode
- The node to be checked if it should be moved.- Returns:
true
if the parent of the given node parent should be also deleted.- Throws:
AuthorOperationException
- If the new parent fragment could not be inserted.- See Also:
-
computeFragmentsToMoveInsideBody
protected boolean computeFragmentsToMoveInsideBody(List<AuthorDocumentFragment> fragments, List<Position> offsets, TabInfo tabInfo, List<AuthorElement> nodesToModify, AuthorElement currentNode) throws AuthorOperationException Description copied from class:ShowTablePropertiesBaseOperation
Computes the fragment and position, inside body element, for the given node.- Overrides:
computeFragmentsToMoveInsideBody
in classSimpleTableShowPropertiesOperationBase
- Parameters:
fragments
- A list with already computed fragments. The new fragment will be added to this list.offsets
- A list with positions where the given fragments will be inserted.tabInfo
- The current edited tab info.nodesToModify
- A list containing all the nodes that will be deleted.currentNode
- The node to be checked if it should be moved.- Returns:
true
if the parent of the given node parent should be also deleted.- Throws:
AuthorOperationException
- If the new parent fragment could not be inserted.- See Also:
-