public interface CmtSelectionModel
| Modifier and Type | Method and Description | 
|---|---|
void | 
addCmtSelectionListener(CmtSelectionListener listener)
Add a listener to the list of liteners that are notified each time the collection of selected CmtModelNodes changes. 
 | 
void | 
clearSelection()
Empty the collection of selected CmtModelNodes. 
 | 
CmtModelNode[] | 
getSelection()
Get an array of the selected CmtModelNodes 
 | 
int | 
getSelectionCount()
Get the number of CmtModelNodes currently selected 
 | 
boolean | 
isSelected(CmtModelNode node)
Determines whether a given CmtModelNode is currently included in the collection of selected CmtModelNodes. 
 | 
void | 
removeCmtSelectionListener(CmtSelectionListener listener)
Remove a listener from the list of listeners that are notified each time the collection of selected CmtModelNodes changes. 
 | 
void | 
setSelection(CmtModelNode[] selection)
Change the collection of selected CmtModelNodes to consist only of those CmtModelNodes provided, in the order provided. 
 | 
void addCmtSelectionListener(CmtSelectionListener listener)
listener - the CmtSelectionListener to be addedvoid removeCmtSelectionListener(CmtSelectionListener listener)
listener - the CmtSelectionListener to be removedboolean isSelected(CmtModelNode node)
truee - if node is currently selectedint getSelectionCount()
CmtModelNode[] getSelection()
void clearSelection()
void setSelection(CmtModelNode[] selection)