Extension SDK 9.0.5

oracle.jdeveloper.cmt
Interface CmtSelectionModel


public interface CmtSelectionModel

This interface represents the current state of the selection for a CmtComponent.


Method Summary
 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.
 

Method Detail

addCmtSelectionListener

public void addCmtSelectionListener(CmtSelectionListener listener)
Add a listener to the list of liteners that are notified each time the collection of selected CmtModelNodes changes.

Parameters:
listener - the CmtSelectionListener to be added

removeCmtSelectionListener

public void removeCmtSelectionListener(CmtSelectionListener listener)
Remove a listener from the list of listeners that are notified each time the collection of selected CmtModelNodes changes.

Parameters:
listener - the CmtSelectionListener to be removed

isSelected

public boolean isSelected(CmtModelNode node)
Determines whether a given CmtModelNode is currently included in the collection of selected CmtModelNodes.


getSelectionCount

public int getSelectionCount()
Get the number of CmtModelNodes currently selected

Returns:
the number of items in the collection of selected CmtModelNodes

getSelection

public CmtModelNode[] getSelection()
Get an array of the selected CmtModelNodes

Returns:
an array of the selected CmtModelNodes

clearSelection

public void clearSelection()
Empty the collection of selected CmtModelNodes. If this results in a change to the collection, any CmtSelectionListeners will be notified.


setSelection

public void setSelection(CmtModelNode[] selection)
Change the collection of selected CmtModelNodes to consist only of those CmtModelNodes provided, in the order provided. If this results in a change to the collection, any CmtSelectionListeners will be notified.


Extension SDK

 

Copyright © 1997, 2004, Oracle. All rights reserved.