Package org.luwrain.controls
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
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.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumFlags that modify the appearance behaviour. -
Method Summary
Modifier and TypeMethodDescriptionvoidannounceItem(E item, Set<ListArea.Appearance.Flags> flags) Announces the given item using the screen reader.intgetObservableLeftBound(E item) Returns the leftmost observable column index for the item.intgetObservableRightBound(E item) Returns the rightmost observable column index for the item.getScreenAppearance(E item, Set<ListArea.Appearance.Flags> flags) Returns the text representation of the item as it should appear on the screen.
-
Method Details
-
announceItem
Announces the given item using the screen reader.- Parameters:
item- the item to announceflags- a set of flags that may affect the announcement style
-
getScreenAppearance
Returns the text representation of the item as it should appear on the screen.- Parameters:
item- the item to displayflags- a set of flags that may affect the representation- Returns:
- the screen text for the item
-
getObservableLeftBound
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
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)
-