Class TableSortOperation
java.lang.Object
ro.sync.ecss.extensions.commons.sort.SortOperation
ro.sync.ecss.extensions.commons.sort.TableSortOperation
- All Implemented Interfaces:
AuthorOperation,Extension
- Direct Known Subclasses:
CALSAndHTMLTableSortOperation,SimpleTableSortOperation
Base table sort operation.
-
Field Summary
Fields inherited from class ro.sync.ecss.extensions.commons.sort.SortOperation
authorAccess, COLUMNFields 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 TypeMethodDescriptionvoidcanBeSorted(AuthorElement parent, int[] selectedNonIgnoredChildrenInterval) Check if the parent element selected children can be sorted.protected StringGet the ID of the help page which will be called by the end user.protected abstract intReturns the visual row index of the actual table body if the table has separate head, foot element and table group elements.Methods inherited from class ro.sync.ecss.extensions.commons.sort.SortOperation
doOperation, forceSortAll, getArguments, getDescription, getNonIgnoredChildren, getSelectedNonIgnoredChildrenInterval, getSortCriteria, getSortKeysValues, getSortParent, getTextContentToSort, isIgnored
-
Constructor Details
-
TableSortOperation
public TableSortOperation()Constructor.
-
-
Method Details
-
canBeSorted
public void canBeSorted(AuthorElement parent, int[] selectedNonIgnoredChildrenInterval) throws AuthorOperationException Description copied from class:SortOperationCheck if the parent element selected children can be sorted. For example a table row containing a cell with rowspan cannot be sorted and stops the operation.- Specified by:
canBeSortedin classSortOperation- Parameters:
parent- The parent of the elements which will be sorted.selectedNonIgnoredChildrenInterval- The interval of selected children indices.- Throws:
AuthorOperationException- When the given node is not sortable. For example a table row containing a cell with multiple rowspan stops the operation.- See Also:
-
getRowIndexForTableBody
Returns the visual row index of the actual table body if the table has separate head, foot element and table group elements. -
getHelpPageID
Description copied from class:SortOperationGet the ID of the help page which will be called by the end user.- Overrides:
getHelpPageIDin classSortOperation- Returns:
- the ID of the help page which will be called by the end user or
null. - See Also:
-