Package com.bc.ceres.swing.selection
Interface SelectionSource
-
- All Superinterfaces:
SelectionChangeEmitter
- All Known Subinterfaces:
FigureEditor
,SelectionContext
,SelectionManager
- All Known Implementing Classes:
AbstractSelectionContext
,ComboBoxSelectionContext
,DefaultFigureEditor
,DefaultSelectionContext
,DefaultSelectionManager
,FigureSelectionContext
,ListSelectionContext
,TableSelectionContext
,TreeSelectionContext
public interface SelectionSource extends SelectionChangeEmitter
A selection source holds a current selection and reports selection change events by emitting them to interestedselection change listener
s.This interface may be implemented by clients.
- Since:
- Ceres 0.10
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Selection
getSelection()
-
Methods inherited from interface com.bc.ceres.swing.selection.SelectionChangeEmitter
addSelectionChangeListener, getSelectionChangeListeners, removeSelectionChangeListener
-
-
-
-
Method Detail
-
getSelection
Selection getSelection()
- Returns:
- The current selection. The selection may be empty, but never
null
. - See Also:
Selection.EMPTY
,Selection.isEmpty()
-
-