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, 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 Constructor Description RelTableShowPropertiesOperation()
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
computeFragmentMoveInsideHeader(java.util.List<AuthorDocumentFragment> fragments, java.util.List<javax.swing.text.Position> offsets, TabInfo tabInfo, java.util.List<AuthorElement> nodesToModify, AuthorElement currentNode)
Computes the fragment and position, inside header element, for the given node.protected boolean
computeFragmentsToMoveInsideBody(java.util.List<AuthorDocumentFragment> fragments, java.util.List<javax.swing.text.Position> offsets, TabInfo tabInfo, java.util.List<AuthorElement> nodesToModify, AuthorElement currentNode)
Computes the fragment and position, inside body element, for the given node.protected boolean
computeFragmentsToMoveInsideFooter(java.util.List<AuthorDocumentFragment> fragments, java.util.List<javax.swing.text.Position> offsets, TabInfo tabInfo, java.util.List<AuthorElement> nodesToModify, AuthorElement currentNode)
Computes the fragment and position, inside footer element, for the given node.protected java.util.List<TabInfo>
getCategoriesAndProperties(java.util.List<java.lang.Integer[]> selections)
Obtain the categories from the table properties dialog.protected java.lang.String
getHelpPageID()
Get the ID of the help page which will be called by the end user.protected java.util.List<TableProperty>
getTableAttribute()
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
-
-
-
-
Method Detail
-
getCategoriesAndProperties
protected java.util.List<TabInfo> getCategoriesAndProperties(java.util.List<java.lang.Integer[]> selections)
Description copied from class:ShowTablePropertiesBaseOperation
Obtain 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:
getCategoriesAndProperties
in 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:
ShowTablePropertiesBaseOperation.getCategoriesAndProperties(java.util.List)
-
computeFragmentsToMoveInsideFooter
protected boolean computeFragmentsToMoveInsideFooter(java.util.List<AuthorDocumentFragment> fragments, java.util.List<javax.swing.text.Position> offsets, TabInfo tabInfo, java.util.List<AuthorElement> nodesToModify, AuthorElement currentNode) throws AuthorOperationException
Description copied from class:ShowTablePropertiesBaseOperation
Computes the fragment and position, inside footer element, for the given node.- Specified by:
computeFragmentsToMoveInsideFooter
in 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:
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:
ShowTablePropertiesBaseOperation.computeFragmentsToMoveInsideFooter(java.util.List, java.util.List, ro.sync.ecss.extensions.commons.table.properties.TabInfo, java.util.List, ro.sync.ecss.extensions.api.node.AuthorElement)
-
computeFragmentMoveInsideHeader
protected boolean computeFragmentMoveInsideHeader(java.util.List<AuthorDocumentFragment> fragments, java.util.List<javax.swing.text.Position> offsets, TabInfo tabInfo, java.util.List<AuthorElement> nodesToModify, AuthorElement currentNode) throws AuthorOperationException
Description copied from class:ShowTablePropertiesBaseOperation
Computes the fragment and position, inside header element, for the given node.- Specified by:
computeFragmentMoveInsideHeader
in 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:
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:
ShowTablePropertiesBaseOperation.computeFragmentMoveInsideHeader(java.util.List, java.util.List, ro.sync.ecss.extensions.commons.table.properties.TabInfo, java.util.List, ro.sync.ecss.extensions.api.node.AuthorElement)
-
computeFragmentsToMoveInsideBody
protected boolean computeFragmentsToMoveInsideBody(java.util.List<AuthorDocumentFragment> fragments, java.util.List<javax.swing.text.Position> offsets, TabInfo tabInfo, java.util.List<AuthorElement> nodesToModify, AuthorElement currentNode) throws AuthorOperationException
Description copied from class:ShowTablePropertiesBaseOperation
Computes the fragment and position, inside body element, for the given node.- Specified by:
computeFragmentsToMoveInsideBody
in 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:
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:
ShowTablePropertiesBaseOperation.computeFragmentsToMoveInsideBody(java.util.List, java.util.List, ro.sync.ecss.extensions.commons.table.properties.TabInfo, java.util.List, ro.sync.ecss.extensions.api.node.AuthorElement)
-
getTableAttribute
protected java.util.List<TableProperty> getTableAttribute()
Description copied from class:ShowTablePropertiesBaseOperation
Obtain the table attributes.- Specified by:
getTableAttribute
in classShowTablePropertiesBaseOperation
- Returns:
- A list with
TableProperty
objects containing the table attributes qualified name, render string and possible values. - See Also:
ShowTablePropertiesBaseOperation.getTableAttribute()
-
getHelpPageID
protected java.lang.String getHelpPageID()
Description copied from class:ShowTablePropertiesBaseOperation
Get the ID of the help page which will be called by the end user.- Overrides:
getHelpPageID
in classShowTablePropertiesBaseOperation
- Returns:
- the ID of the help page which will be called by the end user or
null
. - See Also:
ShowTablePropertiesBaseOperation.getHelpPageID()
-
-