Class TableSortUtil

java.lang.Object
ro.sync.ecss.extensions.commons.sort.TableSortUtil

@API(type=INTERNAL, src=PUBLIC) public final class TableSortUtil extends Object
Util class for table sort operations.
  • Method Details

    • 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 a SelectionInterpretationMode.TABLE_COLUMN selection or a SelectionInterpretationMode.TABLE selection.
      Parameters:
      authorAccess - The author access.
      Returns:
      true if the current selection is a SelectionInterpretationMode.TABLE_COLUMN selection or a SelectionInterpretationMode.TABLE selection.