Package com.bc.ceres.swing.selection
Interface SelectionManager
- All Superinterfaces:
SelectionChangeEmitter
,SelectionSource
- All Known Implementing Classes:
DefaultSelectionManager
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 listener
s 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 Summary
Modifier and TypeMethodDescriptionGets the current selection context.void
setSelectionContext
(SelectionContext selectionContext) Sets a new selection context.Methods inherited from interface com.bc.ceres.swing.selection.SelectionChangeEmitter
addSelectionChangeListener, getSelectionChangeListeners, removeSelectionChangeListener
Methods inherited from interface com.bc.ceres.swing.selection.SelectionSource
getSelection
-
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
Sets a new selection context.- Parameters:
selectionContext
- The new selection context, ornull
.
-