Represents the current state of a TreeView item renderer.

Available since

1.0.0

.

See also:

Constructor

@:value({ text : null, selected : false, branch : false, layoutIndex : -1, location : null, data : null })new(?data:Dynamic, ?location:Array<Int>, layoutIndex:Int = -1, branch:Bool = false, selected:Bool = false, ?text:String)

Creates a new TreeViewItemState object with the given arguments.

Available since

1.0.0

.

Variables

branch:Bool

Returns whether the item is a branch or not.

Available since

1.0.0

.

data:Dynamic

An item from the collection used as the TreeView data provider.

Available since

1.0.0

.

enabled:Bool

Returns whether the item is enabled or not.

Available since

1.0.0

.

See also:

layoutIndex:Int

Returns the location of the item in the TreeView layout.

Available since

1.0.0

.

location:Array<Int>

The location of the item in the TreeView data provider.

Available since

1.0.0

.

opened:Bool

Returns whether the branch is opened or closed. If the item is a leaf, the value will always be false.

Available since

1.0.0

.

owner:TreeView

Returns a reference to the TreeView that contains this item.

Available since

1.0.0

.

selected:Bool

Returns whether the item is selected or not.

Available since

1.0.0

.

text:String

Returns the text to display for the item, as returned by the function TreeView.itemToText.

Available since

1.0.0

.

See also: