All Implemented Interfaces:
Control, View

public class ListView<T> extends BoxView
ListView is a View showing items in a vertical list.

Supported view commands:

  • Constructor Details

  • Method Details

    • 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
    • getItemStyle

      public ListView.ItemStyle getItemStyle()
    • setItems

      public void setItems(@Nullable List<T> items)
    • 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(BiFunction<ListView<T>,T,ListCell<T>> factory)