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

    • _listView

      protected ListView<T> _listView
    • _item

      protected T _item
    • _row

      protected int _row
    • _col

      protected int _col
  • Constructor Details

    • ListCell

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

    • getListView

      public ListView<T> getListView()
      Returns the ListView.
    • 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.
    • isEditing

      public boolean isEditing()
      Returns whether editable.
    • setEditing

      public void setEditing(boolean aValue)
      Sets editing.
    • getEditor

      public TextField getEditor()
      Returns the editor.
    • handleEditorActionEvent

      protected void handleEditorActionEvent(ViewEvent anEvent)
      Called when editor text field fires action event.
    • editorFocusChanged

      protected void editorFocusChanged(TextField editor)
      Called when editor focus changes.