Packagecom.yworks.graph.model
Classpublic class StripeSelection
InheritanceStripeSelection Inheritance flash.events.EventDispatcher
Implements IStripeSelection

Default implementation of the IStripeSelection interface.



Public Properties
 PropertyDefined By
  count : uint
[read-only] Returns the number of selected items.
StripeSelection
  crossTableSelectionAllowed : Boolean
Whether to allow the selection to span multiple table instances.
StripeSelection
  mixedSelectionAllowed : Boolean
Whether to allow mixed row/column selections.
StripeSelection
  selectedColumns : ISelectionModel
[read-only] An ISelectionModel of the selected columns.
StripeSelection
  selectedObjects : Iterable
[read-only] Gets an iterable that enumerates all currently selected items.
StripeSelection
  selectedRows : ISelectionModel
[read-only] An ISelectionModel of the selected rows.
StripeSelection
  selectedStripes : ICollectionModel
[read-only] An ICollectionModel of all selected items.
StripeSelection
Public Methods
 MethodDefined By
  
Default constructor that creates empty selection models.
StripeSelection
  
clear():void
Clears the selection.
StripeSelection
  
isSelected(item:IModelItem):Boolean
Determines whether an item is currently selected.
StripeSelection
  
Returns an iterator over a set of elements.
StripeSelection
  
setSelected(item:IModelItem, selected:Boolean):void
Sets the selection state of an item.
StripeSelection
Protected Methods
 MethodDefined By
  
onItemDeselected(event:CollectionEvent):void
Raises the SelectionEvent.DESELECT event for each newly deselected item.
StripeSelection
  
onItemSelected(event:CollectionEvent):void
Raises the SelectionEvent.SELECT event for each newly selected item.
StripeSelection
Events
 Event Summary Defined By
  Dispatched when the collection has changed.StripeSelection
  Dispatched when an item changed its selection state from selected to unselected.StripeSelection
  Dispatched when an item changed its selection state from unselected to selected.StripeSelection
Property Detail
countproperty
count:uint  [read-only]

Returns the number of selected items.


Implementation
    public function get count():uint
crossTableSelectionAllowedproperty 
crossTableSelectionAllowed:Boolean

Whether to allow the selection to span multiple table instances.

The default value is true.


Implementation
    public function get crossTableSelectionAllowed():Boolean
    public function set crossTableSelectionAllowed(value:Boolean):void
graphproperty 
graph:IGraph


Implementation
    yworks_internal function get graph():IGraph
    yworks_internal function set graph(value:IGraph):void
mixedSelectionAllowedproperty 
mixedSelectionAllowed:Boolean

Whether to allow mixed row/column selections.

The default value is false.


Implementation
    public function get mixedSelectionAllowed():Boolean
    public function set mixedSelectionAllowed(value:Boolean):void
selectedColumnsproperty 
selectedColumns:ISelectionModel  [read-only]

An ISelectionModel of the selected columns.

This is the column part of the selection that this instance is a composite of.


Implementation
    public function get selectedColumns():ISelectionModel
selectedObjectsproperty 
selectedObjects:Iterable  [read-only]

Gets an iterable that enumerates all currently selected items.


Implementation
    public function get selectedObjects():Iterable
selectedRowsproperty 
selectedRows:ISelectionModel  [read-only]

An ISelectionModel of the selected rows.

This is the row part of the selection that this instance is a composite of.


Implementation
    public function get selectedRows():ISelectionModel
selectedStripesproperty 
selectedStripes:ICollectionModel  [read-only]

An ICollectionModel of all selected items.


Implementation
    public function get selectedStripes():ICollectionModel
Constructor Detail
StripeSelection()Constructor
public function StripeSelection()

Default constructor that creates empty selection models.

Method Detail
clear()method
public function clear():void

Clears the selection.

isSelected()method 
public function isSelected(item:IModelItem):Boolean

Determines whether an item is currently selected.

Parameters

item:IModelItem — The item to check.

Returns
Boolean — Whether the item is currently selected.
iterator()method 
public function iterator():Iterator

Returns an iterator over a set of elements.

Returns
Iterator — an Iterator.
onItemDeselected()method 
protected function onItemDeselected(event:CollectionEvent):void

Raises the SelectionEvent.DESELECT event for each newly deselected item.

Parameters

event:CollectionEvent — A collection event which contains an array of the newly deselected items in its items property.

onItemSelected()method 
protected function onItemSelected(event:CollectionEvent):void

Raises the SelectionEvent.SELECT event for each newly selected item.

Parameters

event:CollectionEvent — A collection event which contains an array of the newly selected items in its items property.

setSelected()method 
public function setSelected(item:IModelItem, selected:Boolean):void

Sets the selection state of an item.

Parameters

item:IModelItem — The object to set the selection state for.
 
selected:Boolean — Whether to select the object.

Event Detail
collectionChange Event
Event Object Type: mx.events.CollectionEvent
CollectionEvent.type property = mx.events.CollectionEvent.COLLECTION_CHANGE

Dispatched when the collection has changed.

deselect Event  
Event Object Type: com.yworks.graph.model.SelectionEvent
SelectionEvent.type property = com.yworks.graph.model.SelectionEvent.DESELECT

Dispatched when an item changed its selection state from selected to unselected.

select Event  
Event Object Type: com.yworks.graph.model.SelectionEvent
SelectionEvent.type property = com.yworks.graph.model.SelectionEvent.SELECT

Dispatched when an item changed its selection state from unselected to selected.