Class RelTableShowPropertiesOperation
java.lang.Object
ro.sync.ecss.extensions.commons.table.properties.ShowTablePropertiesBaseOperation
ro.sync.ecss.extensions.dita.map.table.RelTableShowPropertiesOperation
- All Implemented Interfaces:
AuthorOperation,Extension
@API(type=INTERNAL,
src=PUBLIC)
public class RelTableShowPropertiesOperation
extends ShowTablePropertiesBaseOperation
"Show table properties" operation for DITA Map rel table.
-
Field Summary
Fields inherited from class ro.sync.ecss.extensions.commons.table.properties.ShowTablePropertiesBaseOperation
authorAccess, tableHelperFields 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 booleancomputeFragmentMoveInsideHeader(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 booleancomputeFragmentsToMoveInsideBody(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.protected booleancomputeFragmentsToMoveInsideFooter(List<AuthorDocumentFragment> fragments, List<Position> offsets, TabInfo tabInfo, List<AuthorElement> nodesToModify, AuthorElement currentNode) Computes the fragment and position, inside footer element, for the given node.getCategoriesAndProperties(List<Integer[]> selections) Obtain the categories from the table properties dialog.protected StringGet the ID of the help page which will be called by the end user.protected List<TableProperty>Obtain the table attributes.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
-
RelTableShowPropertiesOperation
public RelTableShowPropertiesOperation()Constructor.
-
-
Method Details
-
getCategoriesAndProperties
Description copied from class:ShowTablePropertiesBaseOperationObtain the categories from the table properties dialog. The categories maps the tab name to the list of properties that will be modified in the corresponding tab panel. Every property will be modified using a combobox/radios which will contain the possible values for that property. The label string for the combobox/radios group will be the provided render string of the property or the property name, if a render string is not provided.- Specified by:
getCategoriesAndPropertiesin classShowTablePropertiesBaseOperation- Parameters:
selections- The currently selected nodes or the node at caret position.- Returns:
- A list of tab info objects containing the tab names and the corresponding properties list.
- See Also:
-
computeFragmentMoveInsideHeader
protected boolean computeFragmentMoveInsideHeader(List<AuthorDocumentFragment> fragments, List<Position> offsets, TabInfo tabInfo, List<AuthorElement> nodesToModify, AuthorElement currentNode) throws AuthorOperationException Description copied from class:ShowTablePropertiesBaseOperationComputes the fragment and position, inside header element, for the given node.- Specified by:
computeFragmentMoveInsideHeaderin classShowTablePropertiesBaseOperation- 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:
trueif 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:ShowTablePropertiesBaseOperationComputes the fragment and position, inside body element, for the given node.- Specified by:
computeFragmentsToMoveInsideBodyin classShowTablePropertiesBaseOperation- 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:
trueif the parent of the given node parent should be also deleted.- Throws:
AuthorOperationException- If the new parent fragment could not be inserted.- See Also:
-
getTableAttribute
Description copied from class:ShowTablePropertiesBaseOperationObtain the table attributes.- Specified by:
getTableAttributein classShowTablePropertiesBaseOperation- Returns:
- A list with
TablePropertyobjects containing the table attributes qualified name, render string and possible values. - See Also:
-
getHelpPageID
Description copied from class:ShowTablePropertiesBaseOperationGet the ID of the help page which will be called by the end user.- Overrides:
getHelpPageIDin classShowTablePropertiesBaseOperation- Returns:
- the ID of the help page which will be called by the end user or
null. - See Also:
-