Class TableSortUtil
java.lang.Object
ro.sync.ecss.extensions.commons.sort.TableSortUtil
Util class for table sort operations.
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisColumnOrTableSelection(AuthorAccess authorAccess) Checks if the current selection from the table is aSelectionInterpretationMode.TABLE_COLUMNselection or aSelectionInterpretationMode.TABLEselection.static booleanisEntirelySelected(AuthorAccess authorAccess, AuthorElement element) Checks if the given element is entirely included in the current selection.static booleanisIncludedInSelectionInterval(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:
trueif 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:
trueif it is entirely included in the selection,falseotherwise.
-
isColumnOrTableSelection
Checks if the current selection from the table is aSelectionInterpretationMode.TABLE_COLUMNselection or aSelectionInterpretationMode.TABLEselection.- Parameters:
authorAccess- The author access.- Returns:
trueif the current selection is aSelectionInterpretationMode.TABLE_COLUMNselection or aSelectionInterpretationMode.TABLEselection.
-