Class DefaultSelectionContext
java.lang.Object
com.bc.ceres.core.ExtensibleObject
com.bc.ceres.swing.selection.AbstractSelectionContext
com.bc.ceres.swing.selection.support.DefaultSelectionContext
- All Implemented Interfaces:
Extensible
,SelectionChangeEmitter
,SelectionContext
,SelectionSource
A default implementation of the
SelectionContext
interface.
This class is actually only useful for testing purposes. Real world implementations
of a SelectionContext
will most likely adapt to the selections
emitted by dedicated GUI components.- Since:
- Ceres 0.10
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.bc.ceres.swing.selection.AbstractSelectionContext
addSelectionChangeListener, canDeleteSelection, canInsert, canSelectAll, deleteSelection, fireSelectionChange, getSelectionChangeListeners, insert, removeSelectionChangeListener, selectAll
Methods inherited from class com.bc.ceres.core.ExtensibleObject
getExtension
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.bc.ceres.core.Extensible
getExtension
-
Constructor Details
-
DefaultSelectionContext
public DefaultSelectionContext() -
DefaultSelectionContext
-
-
Method Details
-
getSelection
- Returns:
- The current selection. The selection may be empty, but never
null
. - See Also:
-
setSelection
Description copied from interface:SelectionContext
Sets a new selection.- Parameters:
selection
- The new selection.
-