Enum Class CellFacet.Sort

java.lang.Object
java.lang.Enum<CellFacet.Sort>
limn.accessibility.CellFacet.Sort
All Implemented Interfaces:
Serializable, Comparable<CellFacet.Sort>, Constable
Enclosing class:
CellFacet

public static enum CellFacet.Sort extends Enum<CellFacet.Sort>
Which way a sorted column's rows run.

Three values and not four. Each platform has its own carrier and each carries exactly these: Windows an ItemStatus phrase on the header and the same words as HelpText (File Explorer's convention, read on the guest; NVDA 2024.4.2 has no ItemStatus handler and speaks a description), Linux Orca's sort object attribute, macOS AXSortDirection. Orca also understands other, for a column sorted by something the three words cannot describe; nothing in the toolkit sorts that way, and a value no widget can produce is a value no bridge could be tested against, so it is left out until a widget needs it.

A 1.x minor release may add constants to this enum: a switch over it needs a default branch.

  • Enum Constant Details

    • NONE

      public static final CellFacet.Sort NONE
      Not sorted by this column, or not a header cell at all.
    • ASCENDING

      public static final CellFacet.Sort ASCENDING
      The rows run from the smallest value of this column to the largest.
    • DESCENDING

      public static final CellFacet.Sort DESCENDING
      The rows run from the largest value of this column to the smallest.
  • Method Details

    • values

      public static CellFacet.Sort[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static CellFacet.Sort valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null