Interface ListArea.Appearance<E>

Type Parameters:
E - the type of items in the list
All Known Implementing Classes:
AbstractAppearance, ChooseMailPopup.Appearance, CommanderArea.ListAppearanceImpl, DoubleLevelAppearance, ListUtils.AbstractAppearance, ListUtils.DefaultAppearance, ListUtils.DoubleLevelAppearance, ListUtils.MarkableListAppearance, TreeListArea.Appearance, WebSearchPopup.Appearance
Enclosing class:
ListArea<E>

public static interface ListArea.Appearance<E>
Controls the visual and audible presentation of items. It provides the screen text, observable boundaries, and speech announcement for each item.
  • Method Details

    • announceItem

      void announceItem(E item, Set<ListArea.Appearance.Flags> flags)
      Announces the given item using the screen reader.
      Parameters:
      item - the item to announce
      flags - a set of flags that may affect the announcement style
    • getScreenAppearance

      String getScreenAppearance(E item, Set<ListArea.Appearance.Flags> flags)
      Returns the text representation of the item as it should appear on the screen.
      Parameters:
      item - the item to display
      flags - a set of flags that may affect the representation
      Returns:
      the screen text for the item
    • getObservableLeftBound

      int getObservableLeftBound(E item)
      Returns the leftmost observable column index for the item. The hot point cannot move to the left of this bound.
      Parameters:
      item - the item
      Returns:
      the left bound (inclusive)
    • getObservableRightBound

      int getObservableRightBound(E item)
      Returns the rightmost observable column index for the item. The hot point cannot move to the right of this bound.
      Parameters:
      item - the item
      Returns:
      the right bound (inclusive)