Class TableSortUtil
- java.lang.Object
-
- ro.sync.ecss.extensions.commons.sort.TableSortUtil
-
@API(type=INTERNAL, src=PUBLIC) public final class TableSortUtil extends java.lang.Object
Util class for table sort operations.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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 Detail
-
isEntirelySelected
public static boolean isEntirelySelected(AuthorAccess authorAccess, AuthorElement element)
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
public static boolean isColumnOrTableSelection(AuthorAccess authorAccess)
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.
-
-