Package com.bc.ceres.swing.selection
Interface SelectionManager
-
- All Superinterfaces:
SelectionChangeEmitter,SelectionSource
- All Known Implementing Classes:
DefaultSelectionManager
public interface SelectionManager extends SelectionSource
A selection manager is aselection sourcewhich receives its current selection from a knownselection 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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ClipboardgetClipboard()SelectionContextgetSelectionContext()Gets the current selection context.voidsetSelectionContext(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 Detail
-
getClipboard
Clipboard getClipboard()
- Returns:
- The clipboard used by this selection manager.
- See Also:
Toolkit.getSystemClipboard(),Toolkit.getSystemSelection()
-
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, ornull.
-
-