Package snap.view

Class ListCell<T>

All Implemented Interfaces:
PropChange.DoChange, XMLArchiver.Archivable

public class ListCell<T> extends Label
A label subclass used to render items in Lists, Tables, Trees, Browsers.
  • Field Details

    • _listArea

      protected ListArea<T> _listArea
    • _item

      protected T _item
    • _row

      protected int _row
    • _col

      protected int _col
  • Constructor Details

    • ListCell

      public ListCell(ListArea<T> theList, T anItem, int aRow, int aCol, boolean isSel)
      Creates a new ListCell.
  • Method Details

    • getListArea

      public ListArea<T> getListArea()
      Returns the ListArea.
    • getItem

      public T getItem()
      Returns the item.
    • getRow

      public int getRow()
      Returns the row.
    • getCol

      public int getCol()
      Returns the column.
    • isSelected

      public boolean isSelected()
      Returns whether cell is selected.
    • setEditing

      public void setEditing(boolean aValue)
      Override to notify ListArea.
      Overrides:
      setEditing in class Label