Class ChooseMailPopup.Model

java.lang.Object
org.luwrain.popups.pim.ChooseMailPopup.Model
All Implemented Interfaces:
ListArea.Model<Object>
Enclosing class:
ChooseMailPopup

protected static class ChooseMailPopup.Model extends Object implements ListArea.Model<Object>
  • Field Details

  • Method Details

    • getItemCount

      public int getItemCount()
      Description copied from interface: ListArea.Model
      Returns the total number of items in the model.
      Specified by:
      getItemCount in interface ListArea.Model<Object>
      Returns:
      the item count
    • getItem

      public Object getItem(int index)
      Description copied from interface: ListArea.Model
      Returns the item at the given index.
      Specified by:
      getItem in interface ListArea.Model<Object>
      Parameters:
      index - the zero-based index of the item
      Returns:
      the item at that position, or null if the index is out of bounds
    • refresh

      public void refresh()
      Description copied from interface: ListArea.Model
      Called when the underlying data has changed and the list needs to be refreshed. Implementations should reload or update their data.
      Specified by:
      refresh in interface ListArea.Model<Object>