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>
  • Constructor Details

    • AbstractAppearance

      public AbstractAppearance()
  • Method Details

    • getScreenAppearance

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

      public int getObservableLeftBound(E item)
      Description copied from interface: ListArea.Appearance
      Returns the leftmost observable column index for the item. The hot point cannot move to the left of this bound.
      Specified by:
      getObservableLeftBound in interface ListArea.Appearance<E>
      Parameters:
      item - the item
      Returns:
      the left bound (inclusive)
    • getObservableRightBound

      public int getObservableRightBound(E item)
      Description copied from interface: ListArea.Appearance
      Returns the rightmost observable column index for the item. The hot point cannot move to the right of this bound.
      Specified by:
      getObservableRightBound in interface ListArea.Appearance<E>
      Parameters:
      item - the item
      Returns:
      the right bound (inclusive)