Winter Cardinal UI - v0.442.0 / DTreeDataImpl

Class: DTreeDataImpl<NODE>

Type parameters

Name Type
NODE extends DTreeNode

Implements

Table of contents

Constructors

Properties

Accessors

Methods

Constructors

constructor

new DTreeDataImpl<NODE>(parent, options?): DTreeDataImpl<NODE>

Type parameters

Name Type
NODE extends DTreeNode

Parameters

Name Type
parent DTreeDataImplParent
options? DTreeDataOptions<NODE>

Returns

DTreeDataImpl<NODE>

Defined in

src/main/typescript/wcardinal/ui/d-tree-data-impl.ts:34

Properties

_accessor

Protected _accessor: DTreeNodeAccessor<NODE>

Defined in

src/main/typescript/wcardinal/ui/d-tree-data-impl.ts:31


_mapped

Protected _mapped: DTreeDataMapped<NODE>

Defined in

src/main/typescript/wcardinal/ui/d-tree-data-impl.ts:32


_nodeToFlag

Protected _nodeToFlag: WeakMap<NODE, number>

Defined in

src/main/typescript/wcardinal/ui/d-tree-data-impl.ts:28


_nodes

Protected _nodes: NODE[]

Defined in

src/main/typescript/wcardinal/ui/d-tree-data-impl.ts:30


_parent

Protected _parent: DTreeDataImplParent

Defined in

src/main/typescript/wcardinal/ui/d-tree-data-impl.ts:27


_selection

Protected _selection: DTreeDataImplSelection<NODE>

Defined in

src/main/typescript/wcardinal/ui/d-tree-data-impl.ts:29

Accessors

accessor

get accessor(): DTreeNodeAccessor<NODE>

Returns

DTreeNodeAccessor<NODE>

Implementation of

DTreeData.accessor

Defined in

src/main/typescript/wcardinal/ui/d-tree-data-impl.ts:78


mapped

get mapped(): DTreeDataMapped<NODE>

Returns

DTreeDataMapped<NODE>

Implementation of

DTreeData.mapped

Defined in

src/main/typescript/wcardinal/ui/d-tree-data-impl.ts:74


nodes

get nodes(): NODE[]

Returns

NODE[]

Implementation of

DTreeData.nodes

Defined in

src/main/typescript/wcardinal/ui/d-tree-data-impl.ts:65

set nodes(nodes): void

Parameters

Name Type
nodes NODE[]

Returns

void

Implementation of

DTreeData.nodes

Defined in

src/main/typescript/wcardinal/ui/d-tree-data-impl.ts:69


selection

get selection(): DTreeDataSelection<NODE>

A selection.

Returns

DTreeDataSelection<NODE>

a selection

Implementation of

DTreeData.selection

Defined in

src/main/typescript/wcardinal/ui/d-tree-data-impl.ts:82

Methods

add

add(target, parent?): boolean

Inserts a node.

Parameters

Name Type Description
target NODE a new node
parent? NODE a parent node

Returns

boolean

true if the data is changed

Implementation of

DTreeData.add

Defined in

src/main/typescript/wcardinal/ui/d-tree-data-impl.ts:201


addAfter

addAfter(target, sibling): boolean

Inserts the given node after the given sibling.

Parameters

Name Type Description
target NODE a new node
sibling NODE a sibling node

Returns

boolean

true if the data is changed

Implementation of

DTreeData.addAfter

Defined in

src/main/typescript/wcardinal/ui/d-tree-data-impl.ts:249


addBefore

addBefore(target, sibling): boolean

Inserts the given node before the given sibling.

Parameters

Name Type Description
target NODE a new node
sibling NODE a sibling node

Returns

boolean

true if the data is changed

Implementation of

DTreeData.addBefore

Defined in

src/main/typescript/wcardinal/ui/d-tree-data-impl.ts:232


clear

clear(): boolean

Clears all the nodes.

Returns

boolean

true if the data is changed

Implementation of

DTreeData.clear

Defined in

src/main/typescript/wcardinal/ui/d-tree-data-impl.ts:170


collapse

collapse(target): boolean

Collapses the given node.

Parameters

Name Type Description
target NODE a node to be collapsed

Returns

boolean

true if succeeded

Implementation of

DTreeData.collapse

Defined in

src/main/typescript/wcardinal/ui/d-tree-data-impl.ts:117


collapseAll

collapseAll(): boolean

Collapses all the nodes.

Returns

boolean

true if the data is changed

Implementation of

DTreeData.collapseAll

Defined in

src/main/typescript/wcardinal/ui/d-tree-data-impl.ts:145


each

each(iteratee): void

Iterates over all the nodes. If the iteratee explicitly returns false, stops an iteration.

Parameters

Name Type Description
iteratee DTreeNodeIteratee<NODE> an iteratee

Returns

void

Implementation of

DTreeData.each

Defined in

src/main/typescript/wcardinal/ui/d-tree-data-impl.ts:266


each_

each_(nodes, parent, iteratee): void

Parameters

Name Type
nodes NODE[]
parent null | NODE
iteratee DTreeNodeIteratee<NODE>

Returns

void

Defined in

src/main/typescript/wcardinal/ui/d-tree-data-impl.ts:273


expand

expand(target): boolean

Expands the given node.

Parameters

Name Type Description
target NODE a node to be expanded

Returns

boolean

true if succeeded

Implementation of

DTreeData.expand

Defined in

src/main/typescript/wcardinal/ui/d-tree-data-impl.ts:106


expandAll

expandAll(): boolean

Expands all the nodes.

Returns

boolean

true if the data is changed

Implementation of

DTreeData.expandAll

Defined in

src/main/typescript/wcardinal/ui/d-tree-data-impl.ts:128


isCollapsed

isCollapsed(target): boolean

Returns true if the given node is collapsed.

Parameters

Name Type Description
target NODE a node to be checked.

Returns

boolean

true if the given node is collapsed

Implementation of

DTreeData.isCollapsed

Defined in

src/main/typescript/wcardinal/ui/d-tree-data-impl.ts:162


isExpanded

isExpanded(target): boolean

Returns true if the given item is expanded.

Parameters

Name Type Description
target NODE an item to be checked

Returns

boolean

true if the given item is expanded

Implementation of

DTreeData.isExpanded

Defined in

src/main/typescript/wcardinal/ui/d-tree-data-impl.ts:166


remove

remove(target): boolean

Removes the given node.

Parameters

Name Type Description
target NODE a node to be removed

Returns

boolean

true if succeeded

Implementation of

DTreeData.remove

Defined in

src/main/typescript/wcardinal/ui/d-tree-data-impl.ts:182


toSelection

toSelection(options?): DTreeDataImplSelection<NODE>

Parameters

Name Type
options? DTreeDataOptions<NODE>

Returns

DTreeDataImplSelection<NODE>

Defined in

src/main/typescript/wcardinal/ui/d-tree-data-impl.ts:51


toggle

toggle(target): boolean

Toggles the given node,

Parameters

Name Type Description
target NODE a node

Returns

boolean

Retrn

true if succeeded

Implementation of

DTreeData.toggle

Defined in

src/main/typescript/wcardinal/ui/d-tree-data-impl.ts:94


update

update(forcibly?): void

Parameters

Name Type
forcibly? boolean

Returns

void

Implementation of

DTreeData.update

Defined in

src/main/typescript/wcardinal/ui/d-tree-data-impl.ts:86