@API(type=INTERNAL, src=PUBLIC) public abstract class CALSAndHTMLShowTablePropertiesBase extends ShowTablePropertiesBaseOperation
Modifier and Type | Field and Description |
---|---|
static java.lang.String[] |
HORIZONTAL_ALIGN_VALUES
Array with common possible values for horizontal alignment
|
static java.lang.String[] |
VERTICAL_ALIGN_VALUES
Array with common possible values for vertical alignment
|
authorAccess, tableHelper
NAMESPACE_ARGUMENT, NAMESPACE_ARGUMENT_DESCRIPTOR, SCHEMA_AWARE_ARGUMENT, SCHEMA_AWARE_ARGUMENT_DESCRIPTOR
Constructor and Description |
---|
CALSAndHTMLShowTablePropertiesBase(TablePropertiesHelper helper)
Constructor.
|
Modifier and Type | Method and 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 abstract java.util.Map<AuthorElement,java.util.Set<java.lang.Integer>> |
getCellIndexes(java.util.List<AuthorElement> cells)
Obtain the indexes for selected cells.
|
protected java.util.List<TableProperty> |
getCellsAttributes()
Obtain the value for the given attribute set on the given element.
|
protected abstract java.util.List<AuthorElement> |
getColSpecs(java.util.Map<AuthorElement,java.util.Set<java.lang.Integer>> map)
Obtain the colspecs elements for the given cells indexes.
|
protected java.util.List<TableProperty> |
getColumnsAttributes()
Obtain the value for the given attribute set on the given element.
|
protected java.util.List<TableProperty> |
getRowsAttributesToEdit()
Obtain the attributes qualified name and render string (for rows).
|
protected void |
processFragment(AuthorElement currentNode,
java.util.List<AuthorDocumentFragment> fragments,
boolean moveToHeader)
Process the fragments and add them to the fragments to insert.
|
checkRowSpans, doOperation, getArguments, getAttrProperty, getCommonValue, getDescription, getElementsWithModifiedAttributes, getFragmentsAndOffsetsToInsert, getHelpPageID, getSelectedTab, getTableAttribute, getTableInformation, showTableProperties
public static final java.lang.String[] HORIZONTAL_ALIGN_VALUES
public static final java.lang.String[] VERTICAL_ALIGN_VALUES
public CALSAndHTMLShowTablePropertiesBase(TablePropertiesHelper helper)
helper
- The table helper.protected java.util.List<TabInfo> getCategoriesAndProperties(java.util.List<java.lang.Integer[]> selections)
ShowTablePropertiesBaseOperation
getCategoriesAndProperties
in class ShowTablePropertiesBaseOperation
selections
- The currently selected nodes or the node at caret position.ShowTablePropertiesBaseOperation.getCategoriesAndProperties(java.util.List)
protected java.util.List<TableProperty> getCellsAttributes()
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
ShowTablePropertiesBaseOperation
computeFragmentsToMoveInsideFooter
in class ShowTablePropertiesBaseOperation
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.true
if the parent of the given node parent should be also deleted.AuthorOperationException
- If the new parent fragment could not be inserted.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)
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
ShowTablePropertiesBaseOperation
computeFragmentMoveInsideHeader
in class ShowTablePropertiesBaseOperation
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.true
if the parent of the given node parent should be also deleted.AuthorOperationException
- If the new parent fragment could not be inserted.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
ShowTablePropertiesBaseOperation
computeFragmentsToMoveInsideBody
in class ShowTablePropertiesBaseOperation
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.true
if the parent of the given node parent should be also deleted.AuthorOperationException
- If the new parent fragment could not be inserted.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)
protected void processFragment(AuthorElement currentNode, java.util.List<AuthorDocumentFragment> fragments, boolean moveToHeader) throws javax.swing.text.BadLocationException
currentNode
- The current row node.fragments
- The list with fragment which will be inserted.moveToHeader
- true
if the current node is moved from body/footer to header.javax.swing.text.BadLocationException
protected java.util.List<TableProperty> getRowsAttributesToEdit()
protected java.util.List<TableProperty> getColumnsAttributes()
protected abstract java.util.List<AuthorElement> getColSpecs(java.util.Map<AuthorElement,java.util.Set<java.lang.Integer>> map)
map
- A map containing the table elements and cells indexes.protected abstract java.util.Map<AuthorElement,java.util.Set<java.lang.Integer>> getCellIndexes(java.util.List<AuthorElement> cells)
cells
- The selected cells.© Copyright SyncRO Soft SRL 2002 - 2016. All rights reserved.