Class TableSortUtil
java.lang.Object
ro.sync.ecss.extensions.commons.sort.TableSortUtil
Util class for table sort operations.
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
isColumnOrTableSelection
(AuthorAccess authorAccess) Checks if the current selection from the table is aSelectionInterpretationMode.TABLE_COLUMN
selection or aSelectionInterpretationMode.TABLE
selection.static boolean
isEntirelySelected
(AuthorAccess authorAccess, AuthorElement element) Checks if the given element is entirely included in the current selection.static boolean
isIncludedInSelectionInterval
(AuthorAccess authorAccess, AuthorElement element) Checks if the given element is included in the selection.
-
Method Details
-
isEntirelySelected
Checks if the given element is entirely included in the current selection.- Parameters:
authorAccess
- The author access.element
- The element to be checked.- Returns:
true
if the given element is entirely included in the current selection. The check is done only if the table has COLUMN selection or TABLE selection.
-
isIncludedInSelectionInterval
public static boolean isIncludedInSelectionInterval(AuthorAccess authorAccess, AuthorElement element) Checks if the given element is included in the selection.- Parameters:
authorAccess
- The author access.element
- The element to be checked.- Returns:
true
if it is entirely included in the selection,false
otherwise.
-
isColumnOrTableSelection
Checks if the current selection from the table is aSelectionInterpretationMode.TABLE_COLUMN
selection or aSelectionInterpretationMode.TABLE
selection.- Parameters:
authorAccess
- The author access.- Returns:
true
if the current selection is aSelectionInterpretationMode.TABLE_COLUMN
selection or aSelectionInterpretationMode.TABLE
selection.
-