Interface SelectionAware<T>

All Known Implementing Classes:
ManySelectionTrackingListDataModel, OneSelectionTrackingListDataModel

public interface SelectionAware<T>
Interface for DataModel implementations that need to track selected rows.
Author:
Jeremy Grelle
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the list of selected row data objects for the model.
    boolean
    Checks whether the row pointed to by the model's current index is selected.
    void
    select(T rowData)
    Selects the given row data object in the model.
    void
    Selects all row data objects in the model.
    void
    setCurrentRowSelected(boolean rowSelected)
    Sets whether the row pointed to by the model's current index is selected
    void
    setSelections(List<T> selections)
    Sets the list of selected row data objects for the model.
  • Method Details

    • isCurrentRowSelected

      boolean isCurrentRowSelected()
      Checks whether the row pointed to by the model's current index is selected.
      Returns:
      true if the current row data object is selected
    • setCurrentRowSelected

      void setCurrentRowSelected(boolean rowSelected)
      Sets whether the row pointed to by the model's current index is selected
      Parameters:
      rowSelected - true to select the current row
    • setSelections

      void setSelections(List<T> selections)
      Sets the list of selected row data objects for the model.
      Parameters:
      selections - the list of selected row data objects
    • getSelections

      List<T> getSelections()
      Returns the list of selected row data objects for the model.
      Returns:
      the list of selected row data objects
    • selectAll

      void selectAll()
      Selects all row data objects in the model.
    • select

      void select(T rowData)
      Selects the given row data object in the model.
      Parameters:
      rowData - the row data object to select.