Packagepotomac.ui
Classpublic class SelectionService
InheritanceSelectionService Inheritance flash.events.EventDispatcher

The SelectionService allows parts to retrieve the selection for a given part. For as-they-happen updates to part selection, parts should listen to SelectionEvent.SELECTION_CHANGED. All parts receive all SelectionEvent.SELECTION_CHANGED events as they happen.



Public Methods
 MethodDefined By
  
Callers should not construct SelectionService instances.
SelectionService
  
Returns the selection for the given part.
SelectionService
Constructor Detail
SelectionService()Constructor
public function SelectionService()

Callers should not construct SelectionService instances. SelectionService is available for injection.

Method Detail
getSelection()method
public function getSelection(partRef:PartReference):Array

Returns the selection for the given part. Potomac will ensure the selection is never null. In cases where the selection was set to null, Potomac will reset the selection to an empty array.

Parameters

partRef:PartReference — part to get the selection for.

Returns
Array — the part's selection.