UnifiedSelectionTreeEventHandler Class

Beta

Tree event handler that handles unified selection. Extends wrapped tree event handler's functionality by adding, removing or replacing nodes in unified selection. It also reacts to unified selection changes and selects/deselects tree nodes according changes.

Note: conditions used to determine if node is selected and nodes that should be added to unified selection can be controlled by overriding 'shouldSelectNode' and 'createKeysForSelection' methods.

Implements

Methods

Name Description
constructor(wrappedHandler: TreeEvents, modelSource: TreeModelSource, selectionHandler: SelectionHandler, dataProvider: IPresentationTreeDataProvider): UnifiedSelectionTreeEventHandler    
createKeysForSelection(nodes: TreeNodeItem[], _selectionType: SelectionChangeType): object | ReadonlyArray<object | object | object | object | object | object | object | object> Protected Returns node keys that should be added, removed or used to replace unified selection.  
dispose(): void    
getKeys(nodes: TreeNodeItem[]): Keys Protected    
getModel(): TreeModel Protected    
getNodeKey(node: TreeNodeItem): BaseNodeKey | ECInstanceNodeKey | ECInstancesNodeKey | ECClassGroupingNodeKey | ECPropertyGroupingNodeKey | LabelGroupingNodeKey Protected    
onCheckboxStateChanged(event: TreeCheckboxStateChangeEvent): Subscription    
onDelayedNodeClick(event: TreeNodeEvent): void    
onNodeCollapsed(event: TreeNodeEvent): void    
onNodeExpanded(event: TreeNodeEvent): void    
onSelectionModified(event: TreeSelectionModificationEvent): Subscription    
onSelectionReplaced(event: TreeSelectionReplacementEvent): Subscription    
selectNodes(): void    
shouldSelectNode(node: TreeNodeItem, selection: Readonly<KeySet>): boolean Protected Determines if node should be selected.  

Defined in

Last Updated: 08 January, 2020