Interface SelectionManager

All Superinterfaces:
SelectionChangeEmitter, SelectionSource
All Known Implementing Classes:
DefaultSelectionManager

public interface SelectionManager extends SelectionSource
A selection manager is a selection source which receives its current selection from a known selection context.

All changes in the current selection context are propagated to the selection change listeners registered with the selection manager.

This interface may be directly implemented by clients, although it is advised to use SelectionManagerImpl, since this interface may evolve in the future.

Since:
Ceres 0.10
  • Method Details

    • getClipboard

      Clipboard getClipboard()
      Returns:
      The clipboard used by this selection manager.
      See Also:
    • getSelectionContext

      SelectionContext getSelectionContext()
      Gets the current selection context.
      Returns:
      The current selection context, or null.
    • setSelectionContext

      void setSelectionContext(SelectionContext selectionContext)
      Sets a new selection context.
      Parameters:
      selectionContext - The new selection context, or null.