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
    • removeSelection

      void removeSelection(SessionEditorSelection selection)
      Remove the given selection from the list of current 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 -
    • getSelectionsForElement

      List<SessionEditorSelection> getSelectionsForElement(int elementIndex)
      Get selections for the specified transcript element index.
      Parameters:
      elementIndex -
      Returns:
      selections for record index
    • getSelectionsForTier

      List<SessionEditorSelection> getSelectionsForTier(int elementIndex, String tierName)
      Get selections for the specified element index and tier name. If the element index is a comment or gem tier, the tier name is ignored.
      Parameters:
      elementIndex -
      tierName -
      Returns:
    • 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
    • requestSwitchToRecord

      void requestSwitchToRecord(int recordIndex)
      Request that associated editor set current record index to the provided value. This is a request only and may be ignored. There is no indication of success.
      Parameters:
      recordIndex -