Package org.luwrain.controls
Class ListUtils.MarkableListAppearance
java.lang.Object
org.luwrain.controls.ListUtils.MarkableListAppearance
- All Implemented Interfaces:
ListArea.Appearance<Object>
- Enclosing class:
ListUtils
public static class ListUtils.MarkableListAppearance
extends Object
implements ListArea.Appearance<Object>
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.luwrain.controls.ListArea.Appearance
ListArea.Appearance.Flags -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final ControlContextprotected final MarkableListArea.MarksInfo -
Constructor Summary
ConstructorsConstructorDescriptionMarkableListAppearance(ControlContext context, MarkableListArea.MarksInfo marksInfo) -
Method Summary
Modifier and TypeMethodDescriptionvoidannounceItem(Object item, Set<ListArea.Appearance.Flags> flags) Announces the given item using the screen reader.intgetObservableLeftBound(Object item) Returns the leftmost observable column index for the item.intReturns the rightmost observable column index for the item.getScreenAppearance(Object item, Set<ListArea.Appearance.Flags> flags) Returns the text representation of the item as it should appear on the screen.
-
Field Details
-
context
-
marksInfo
-
-
Constructor Details
-
MarkableListAppearance
-
-
Method Details
-
announceItem
Description copied from interface:ListArea.AppearanceAnnounces the given item using the screen reader.- Specified by:
announceItemin interfaceListArea.Appearance<Object>- Parameters:
item- the item to announceflags- a set of flags that may affect the announcement style
-
getScreenAppearance
Description copied from interface:ListArea.AppearanceReturns the text representation of the item as it should appear on the screen.- Specified by:
getScreenAppearancein interfaceListArea.Appearance<Object>- Parameters:
item- 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<Object>- Parameters:
item- 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<Object>- Parameters:
item- the item- Returns:
- the right bound (inclusive)
-