Interface EditorSelectionModel

All Known Implementing Classes:
DefaultEditorSelectionModel

public interface EditorSelectionModel
Selection model for the SessionEditor.
  • Method Details

    • getSelections

      List<SessionEditorSelection> getSelections()
      Get a list of all current selections.
      Returns:
      list of selections
    • getFirstSelection

      SessionEditorSelection getFirstSelection()
      Get the first selection in the list
      Returns:
      first selection, or null if no selections are available
    • getLastSelection

      SessionEditorSelection getLastSelection()
      Get the last selection in the list
      Returns:
      last selection, or null if no selections are available
    • clear

      void clear()
      Clear all selections
    • setSelection

      void setSelection(SessionEditorSelection selection)
      Set the current selection. This method will clear all other selections.
      Parameters:
      selection -
    • addSelection

      void addSelection(SessionEditorSelection selection)
      Add the given selection to the list of current selections.
      Parameters:
      selection -
    • getSelectionsForRecord

      List<SessionEditorSelection> getSelectionsForRecord(int recordIndex)
      Get selections for the specified record.
      Parameters:
      recordIndex -
      Returns:
      selections for record index
    • getSelectionsForTier

      List<SessionEditorSelection> getSelectionsForTier(int recordIndex, String tierName)
    • getSelectionsForGroup

      List<SessionEditorSelection> getSelectionsForGroup(int recordIndex, String tierName, int groupIndex)
    • addSelectionModelListener

      void addSelectionModelListener(EditorSelectionModelListener listener)
      Add a listener for this model.
      Parameters:
      listener -
    • removeSelectionModelListener

      void removeSelectionModelListener(EditorSelectionModelListener listener)
      Remove a listener
      Parameters:
      listener -
    • getSelectionModelListeners

      List<EditorSelectionModelListener> getSelectionModelListeners()
      Get all listeners
      Returns:
      listeners