| Package | com.yworks.graph.model |
| Interface | public interface ISelectionModel extends flash.events.IEventDispatcher, Iterable |
| Implementors | DefaultSelectionModel |
| Property | Defined By | ||
|---|---|---|---|
| count : uint [read-only]
Returns the number of selected items. | ISelectionModel | ||
| selectedObjects : Iterable [read-only]
Gets an iterable that enumerates all currently selected items. | ISelectionModel | ||
| Method | Defined By | ||
|---|---|---|---|
clear():void
Clears the selection. | ISelectionModel | ||
isSelected(item:IModelItem):Boolean
Determines whether an item is currently selected. | ISelectionModel | ||
![]() |
Returns an iterator over a set of elements. | Iterable | |
setSelected(item:IModelItem, selected:Boolean):void
Sets the selection state of an item. | ISelectionModel | ||
| Event | Summary | Defined By | ||
|---|---|---|---|---|
| Dispatched when an item changed its selection state from selected to unselected. | ISelectionModel | |||
| Dispatched when an item changed its selection state from unselected to selected. | ISelectionModel | |||
| count | property |
count:uint [read-only] Returns the number of selected items.
public function get count():uint| selectedObjects | property |
selectedObjects:Iterable [read-only] Gets an iterable that enumerates all currently selected items.
public function get selectedObjects():Iterable| clear | () | method |
public function clear():voidClears the selection.
| isSelected | () | method |
public function isSelected(item:IModelItem):BooleanDetermines whether an item is currently selected.
Parameters
item:IModelItem — The item to check.
|
Boolean — Whether the item is currently selected.
|
| setSelected | () | method |
public function setSelected(item:IModelItem, selected:Boolean):voidSets the selection state of an item.
Parameters
item:IModelItem — The object to set the selection state for.
| |
selected:Boolean — Whether to select the object.
|
| deselect | Event |
com.yworks.graph.model.SelectionEventcom.yworks.graph.model.SelectionEvent.DESELECTDispatched when an item changed its selection state from selected to unselected.
| select | Event |
com.yworks.graph.model.SelectionEventcom.yworks.graph.model.SelectionEvent.SELECTDispatched when an item changed its selection state from unselected to selected.