Package org.luwrain.controls
Class CommanderArea.ListAppearanceImpl<E>
java.lang.Object
org.luwrain.controls.CommanderArea.ListAppearanceImpl<E>
- All Implemented Interfaces:
ListArea.Appearance<CommanderArea.Wrapper<E>>
- Enclosing class:
CommanderArea<E>
public static class CommanderArea.ListAppearanceImpl<E>
extends Object
implements ListArea.Appearance<CommanderArea.Wrapper<E>>
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.luwrain.controls.ListArea.Appearance
ListArea.Appearance.Flags -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidannounceItem(CommanderArea.Wrapper<E> wrapper, Set<ListArea.Appearance.Flags> flags) Announces the given item using the screen reader.intgetObservableLeftBound(CommanderArea.Wrapper<E> wrapper) Returns the leftmost observable column index for the item.intgetObservableRightBound(CommanderArea.Wrapper<E> wrapper) Returns the rightmost observable column index for the item.getScreenAppearance(CommanderArea.Wrapper<E> wrapper, Set<ListArea.Appearance.Flags> flags) Returns the text representation of the item as it should appear on the screen.
-
Field Details
-
appearance
-
-
Constructor Details
-
ListAppearanceImpl
-
-
Method Details
-
announceItem
Description copied from interface:ListArea.AppearanceAnnounces the given item using the screen reader.- Specified by:
announceItemin interfaceListArea.Appearance<E>- Parameters:
wrapper- the item to announceflags- a set of flags that may affect the announcement style
-
getScreenAppearance
public String getScreenAppearance(CommanderArea.Wrapper<E> wrapper, Set<ListArea.Appearance.Flags> flags) Description copied from interface:ListArea.AppearanceReturns the text representation of the item as it should appear on the screen.- Specified by:
getScreenAppearancein interfaceListArea.Appearance<E>- Parameters:
wrapper- the item to displayflags- a set of flags that may affect the representation- Returns:
- the screen text for the item
-
getObservableLeftBound
Description copied from interface:ListArea.AppearanceReturns the leftmost observable column index for the item. The hot point cannot move to the left of this bound.- Specified by:
getObservableLeftBoundin interfaceListArea.Appearance<E>- Parameters:
wrapper- the item- Returns:
- the left bound (inclusive)
-
getObservableRightBound
Description copied from interface:ListArea.AppearanceReturns the rightmost observable column index for the item. The hot point cannot move to the right of this bound.- Specified by:
getObservableRightBoundin interfaceListArea.Appearance<E>- Parameters:
wrapper- the item- Returns:
- the right bound (inclusive)
-