@API(type=INTERNAL, src=PUBLIC) public abstract class CALSAndHTMLTableSortOperation extends TableSortOperation
authorAccess, COLUMN
NAMESPACE_ARGUMENT, NAMESPACE_ARGUMENT_DESCRIPTOR, SCHEMA_AWARE_ARGUMENT, SCHEMA_AWARE_ARGUMENT_DESCRIPTOR
Constructor and Description |
---|
CALSAndHTMLTableSortOperation() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
forceSortAll() |
protected int |
getRowIndexForTableBody(AuthorNode parent)
Returns the visual row index of the actual table body if the table has separate head, foot element and table group elements.
|
java.util.List<CriterionInformation> |
getSortCriteria(AuthorElement parent)
Obtain the sort criterion.
|
java.lang.String[] |
getSortKeysValues(AuthorNode node,
SortCriteriaInformation sortInfo)
Obtain the values of the keys that can be used for sorting.
|
AuthorElement |
getSortParent(int offset,
AuthorAccess authorAccess)
Obtain the parent node of all the nodes which will be sorted.
|
boolean |
isCaretInColumn(AuthorAccess authorAccess,
int columnNumber)
Checks if the caret is in a cell which is in the given column.
|
boolean |
isIgnored(AuthorNode node)
Checks if a given node is ignored when sorting.
|
abstract boolean |
isTable(AuthorElement element)
Returns
true if the given element is a table header element. |
abstract boolean |
isTableBody(AuthorElement element)
Returns
true if the given element is the table body element. |
abstract boolean |
isTableFoot(AuthorElement element)
Returns
true if the given element is a table footer element. |
abstract boolean |
isTableGroup(AuthorElement element)
Returns
true if the given element is a table header element. |
abstract boolean |
isTableHead(AuthorElement element)
Returns
true if the given element is a table header element. |
abstract boolean |
isTableRow(AuthorElement element)
Returns
true if the given element is a table row element. |
canBeSorted
doOperation, getArguments, getDescription, getNonIgnoredChildren, getSelectedNonIgnoredChildrenInterval, getTextContentToSort
public AuthorElement getSortParent(int offset, AuthorAccess authorAccess) throws AuthorOperationException
SortOperation
getSortParent
in class SortOperation
offset
- The offset where the operation was invoked.authorAccess
- The AuthorAccess
.AuthorOperationException
- When the offset is negative or greater than the content length.SortOperation.getSortParent(int, ro.sync.ecss.extensions.api.AuthorAccess)
public boolean isIgnored(AuthorNode node)
SortOperation
isIgnored
in class SortOperation
node
- The node to be checked.true
if the given node is ignored when sorting.SortOperation.isIgnored(ro.sync.ecss.extensions.api.node.AuthorNode)
public java.lang.String[] getSortKeysValues(AuthorNode node, SortCriteriaInformation sortInfo) throws AuthorOperationException
SortOperation
getSortKeysValues
in class SortOperation
node
- The element which will be sorted.sortInfo
- The sort information corresponding to the user choice.AuthorOperationException
- If the text content cannot be obtained.SortOperation.getSortKeysValues(AuthorNode, SortCriteriaInformation)
public java.util.List<CriterionInformation> getSortCriteria(AuthorElement parent) throws AuthorOperationException
SortOperation
getSortCriteria
in class SortOperation
parent
- The parent node of the nodes which will be sorted.SortCriteriaInformation
containing the CriterionInformation
objects.AuthorOperationException
SortOperation.getSortCriteria(ro.sync.ecss.extensions.api.node.AuthorElement)
protected boolean forceSortAll()
forceSortAll
in class SortOperation
true
if the sort operation should not use the selected
element and should always sort all elements.SortOperation.forceSortAll()
public boolean isCaretInColumn(AuthorAccess authorAccess, int columnNumber)
authorAccess
- The author access.columnNumber
- The number of the column in which to check.true
if the given column has a cell which contains the caret.protected int getRowIndexForTableBody(AuthorNode parent)
TableSortOperation
getRowIndexForTableBody
in class TableSortOperation
TableSortOperation.getRowIndexForTableBody(ro.sync.ecss.extensions.api.node.AuthorNode)
public abstract boolean isTableBody(AuthorElement element)
true
if the given element is the table body element.element
- The element to be checked.true
if the given element is the table body element.public abstract boolean isTableRow(AuthorElement element)
true
if the given element is a table row element.element
- The element to be checked.true
if the given element is a table row element.public abstract boolean isTableHead(AuthorElement element)
true
if the given element is a table header element.element
- The element to be checked.true
if the given element is a table header element.public abstract boolean isTableFoot(AuthorElement element)
true
if the given element is a table footer element.element
- The element to be checked.true
if the given element is a table footer element.public abstract boolean isTable(AuthorElement element)
true
if the given element is a table header element.element
- The element to be checked.true
if the given element is a table header element.public abstract boolean isTableGroup(AuthorElement element)
true
if the given element is a table header element.element
- The element to be checked.true
if the given element is a table header element.© Copyright SyncRO Soft SRL 2002 - 2014. All rights reserved.