Package org.luwrain.controls
Class ListUtils.AbstractAppearance<E>
java.lang.Object
org.luwrain.controls.ListUtils.AbstractAppearance<E>
- All Implemented Interfaces:
ListArea.Appearance<E>
- Direct Known Subclasses:
ChooseMailPopup.Appearance,ListUtils.DefaultAppearance
- Enclosing class:
ListUtils
public abstract static class ListUtils.AbstractAppearance<E>
extends Object
implements ListArea.Appearance<E>
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.luwrain.controls.ListArea.Appearance
ListArea.Appearance.Flags -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetObservableLeftBound(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.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.luwrain.controls.ListArea.Appearance
announceItem
-
Constructor Details
-
AbstractAppearance
public AbstractAppearance()
-
-
Method Details
-
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<E>- 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<E>- 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<E>- Parameters:
item- the item- Returns:
- the right bound (inclusive)
-