Class ListSelectionContext
java.lang.Object
com.bc.ceres.core.ExtensibleObject
com.bc.ceres.swing.selection.AbstractSelectionContext
com.bc.ceres.swing.selection.support.ListSelectionContext
- All Implemented Interfaces:
Extensible,SelectionChangeEmitter,SelectionContext,SelectionSource
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleancanInsert(Transferable contents) Tests whether the current contents (e.g.voidDeletes the current selection.getList()protected voidvoidinsert(Transferable transferable) Inserts a selection represented by the givenTransferableinto this context.voidvoidsetSelection(Selection selection) Sets a new selection.Methods inherited from class com.bc.ceres.swing.selection.AbstractSelectionContext
addSelectionChangeListener, canSelectAll, fireSelectionChange, getSelectionChangeListeners, removeSelectionChangeListener, selectAllMethods inherited from class com.bc.ceres.core.ExtensibleObject
getExtensionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.bc.ceres.core.Extensible
getExtension
-
Constructor Details
-
ListSelectionContext
-
-
Method Details
-
getSelection
- Returns:
- The current selection. The selection may be empty, but never
null. - See Also:
-
setSelection
Description copied from interface:SelectionContextSets a new selection.- Parameters:
selection- The new selection.
-
insert
Description copied from interface:SelectionContextInserts a selection represented by the givenTransferableinto this context.- Specified by:
insertin interfaceSelectionContext- Overrides:
insertin classAbstractSelectionContext- Parameters:
transferable- The transferable object.- Throws:
IOException- if an I/O error occursUnsupportedFlavorException- See Also:
-
canInsert
Description copied from interface:SelectionContextTests whether the current contents (e.g. from clipboard, drag and drop) can be inserted into this selection context.- Specified by:
canInsertin interfaceSelectionContext- Overrides:
canInsertin classAbstractSelectionContext- Parameters:
contents- The contents.- Returns:
trueif the given contents can be inserted into this context.- See Also:
-
canDeleteSelection
public boolean canDeleteSelection()- Specified by:
canDeleteSelectionin interfaceSelectionContext- Overrides:
canDeleteSelectionin classAbstractSelectionContext- Returns:
trueif the current selection can be deleted.- See Also:
-
deleteSelection
public void deleteSelection()Description copied from interface:SelectionContextDeletes the current selection.- Specified by:
deleteSelectionin interfaceSelectionContext- Overrides:
deleteSelectionin classAbstractSelectionContext- See Also:
-
getList
-
setList
-
handleListSelectionChange
-