All Implemented Interfaces:
Toggleable, KeyEventListener
Direct Known Subclasses:
ReturningListItem

public class ListItem
extends SimpleListItem
A single list item, returning a value when clicked
  • Field Details

    • retVal

      protected final int retVal
      The item index in the parent's list
  • Constructor Details

    • ListItem

      public ListItem​(WindowItem parent, CursorPosition initCoord, java.lang.String item, int retVal)
      Default constructor
      Parameters:
      parent - the item container
      initCoord - the initial coordinates
      item - the item's string
  • Method Details

    • onCarriageReturn

      public void onCarriageReturn()
      Adds or removes this to the parent's inputs