Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.7.0)

E13403-08

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

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

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

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

Parameters:
truee - if node is currently selected

getSelectionCount

int getSelectionCount()
Get the number of CmtModelNodes currently selected

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

getSelection

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

Returns:
an array of the selected CmtModelNodes

clearSelection

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


setSelection

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.


Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.7.0)

E13403-08

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