All Implemented Interfaces:
Control, View

public class ListView<T> extends BoxView
ListView shows list items vertically.
  • Constructor Details

    • ListView

      public ListView()
      Construct list view with no initial items.
  • Method Details

    • drawInternal

      protected void drawInternal(Screen screen)
      Description copied from class: BoxView
      Possibly draws a box around this view and title in a box top boundary. Also calls a draw function if defined.
      Overrides:
      drawInternal in class BoxView
      Parameters:
      screen - the screen
    • setCellFactory

      public void setCellFactory(Function<ListView<T>,ListCell<T>> factory)
      Sets a cell factory.
      Parameters:
      factory - the cell factory
    • setItems

      public void setItems(List<T> items)
    • initInternal

      protected void initInternal()
      Description copied from class: AbstractView
      Internal init method called from AbstractView.init(). Override to do something usefull. Typically key and mousebindings are registered from this method.
      Overrides:
      initInternal in class AbstractView
    • setSelected

      public void setSelected(int selected)