Winter Cardinal UI - v0.457.0 / DTreeDataImpl
| Name | Type |
|---|---|
NODE |
extends DTreeNode |
DTreeData<NODE>• new DTreeDataImpl<NODE>(parent, options?): DTreeDataImpl<NODE>
| Name | Type |
|---|---|
NODE |
extends DTreeNode |
| Name | Type |
|---|---|
parent |
DTreeDataImplParent |
options? |
DTreeDataOptions<NODE> |
DTreeDataImpl<NODE>
src/main/typescript/wcardinal/ui/d-tree-data-impl.ts:34
• Protected _accessor: DTreeNodeAccessor<NODE>
src/main/typescript/wcardinal/ui/d-tree-data-impl.ts:31
• Protected _mapped: DTreeDataMapped<NODE>
src/main/typescript/wcardinal/ui/d-tree-data-impl.ts:32
• Protected _nodeToFlag: WeakMap<NODE, number>
src/main/typescript/wcardinal/ui/d-tree-data-impl.ts:28
• Protected _nodes: NODE[]
src/main/typescript/wcardinal/ui/d-tree-data-impl.ts:30
• Protected _parent: DTreeDataImplParent
src/main/typescript/wcardinal/ui/d-tree-data-impl.ts:27
• Protected _selection: DTreeDataImplSelection<NODE>
src/main/typescript/wcardinal/ui/d-tree-data-impl.ts:29
• get accessor(): DTreeNodeAccessor<NODE>
DTreeNodeAccessor<NODE>
src/main/typescript/wcardinal/ui/d-tree-data-impl.ts:78
• get mapped(): DTreeDataMapped<NODE>
DTreeDataMapped<NODE>
src/main/typescript/wcardinal/ui/d-tree-data-impl.ts:74
• get nodes(): NODE[]
NODE[]
src/main/typescript/wcardinal/ui/d-tree-data-impl.ts:65
• set nodes(nodes): void
| Name | Type |
|---|---|
nodes |
NODE[] |
void
src/main/typescript/wcardinal/ui/d-tree-data-impl.ts:69
• get selection(): DTreeDataSelection<NODE>
A selection.
DTreeDataSelection<NODE>
a selection
src/main/typescript/wcardinal/ui/d-tree-data-impl.ts:82
▸ add(target, parent?): boolean
Inserts a node.
| Name | Type | Description |
|---|---|---|
target |
NODE |
a new node |
parent? |
NODE |
a parent node |
boolean
true if the data is changed
src/main/typescript/wcardinal/ui/d-tree-data-impl.ts:201
▸ addAfter(target, sibling): boolean
Inserts the given node after the given sibling.
| Name | Type | Description |
|---|---|---|
target |
NODE |
a new node |
sibling |
NODE |
a sibling node |
boolean
true if the data is changed
src/main/typescript/wcardinal/ui/d-tree-data-impl.ts:249
▸ addBefore(target, sibling): boolean
Inserts the given node before the given sibling.
| Name | Type | Description |
|---|---|---|
target |
NODE |
a new node |
sibling |
NODE |
a sibling node |
boolean
true if the data is changed
src/main/typescript/wcardinal/ui/d-tree-data-impl.ts:232
▸ clear(): boolean
Clears all the nodes.
boolean
true if the data is changed
src/main/typescript/wcardinal/ui/d-tree-data-impl.ts:170
▸ collapse(target): boolean
Collapses the given node.
| Name | Type | Description |
|---|---|---|
target |
NODE |
a node to be collapsed |
boolean
true if succeeded
src/main/typescript/wcardinal/ui/d-tree-data-impl.ts:117
▸ collapseAll(): boolean
Collapses all the nodes.
boolean
true if the data is changed
src/main/typescript/wcardinal/ui/d-tree-data-impl.ts:145
▸ each(iteratee): void
Iterates over all the nodes. If the iteratee explicitly returns false, stops an iteration.
| Name | Type | Description |
|---|---|---|
iteratee |
DTreeNodeIteratee<NODE> |
an iteratee |
void
src/main/typescript/wcardinal/ui/d-tree-data-impl.ts:266
▸ each_(nodes, parent, iteratee): void
| Name | Type |
|---|---|
nodes |
NODE[] |
parent |
null | NODE |
iteratee |
DTreeNodeIteratee<NODE> |
void
src/main/typescript/wcardinal/ui/d-tree-data-impl.ts:273
▸ expand(target): boolean
Expands the given node.
| Name | Type | Description |
|---|---|---|
target |
NODE |
a node to be expanded |
boolean
true if succeeded
src/main/typescript/wcardinal/ui/d-tree-data-impl.ts:106
▸ expandAll(): boolean
Expands all the nodes.
boolean
true if the data is changed
src/main/typescript/wcardinal/ui/d-tree-data-impl.ts:128
▸ isCollapsed(target): boolean
Returns true if the given node is collapsed.
| Name | Type | Description |
|---|---|---|
target |
NODE |
a node to be checked. |
boolean
true if the given node is collapsed
src/main/typescript/wcardinal/ui/d-tree-data-impl.ts:162
▸ isExpanded(target): boolean
Returns true if the given item is expanded.
| Name | Type | Description |
|---|---|---|
target |
NODE |
an item to be checked |
boolean
true if the given item is expanded
src/main/typescript/wcardinal/ui/d-tree-data-impl.ts:166
▸ remove(target): boolean
Removes the given node.
| Name | Type | Description |
|---|---|---|
target |
NODE |
a node to be removed |
boolean
true if succeeded
src/main/typescript/wcardinal/ui/d-tree-data-impl.ts:182
▸ toSelection(options?): DTreeDataImplSelection<NODE>
| Name | Type |
|---|---|
options? |
DTreeDataOptions<NODE> |
DTreeDataImplSelection<NODE>
src/main/typescript/wcardinal/ui/d-tree-data-impl.ts:51
▸ toggle(target): boolean
Toggles the given node,
| Name | Type | Description |
|---|---|---|
target |
NODE |
a node |
boolean
Retrn
true if succeeded
src/main/typescript/wcardinal/ui/d-tree-data-impl.ts:94
▸ update(forcibly?): void
| Name | Type |
|---|---|
forcibly? |
boolean |
void