RasterTree.selectItem( item [, add] )
Include an item in the current tree selection (if any).
Parameters
| Name |
Type |
|
Description |
| item |
object |
|
A reference to a TreeItem object, or a
value matching the value attribute of a TreeItem.
If an item matching this argument is not found in this
container, this method does nothing. Set this argument
to null to clear any selection in the tree. |
| add |
boolean |
optional |
true add the given item to the current list
selection (if any). When false, the previously list selection
is cleared before the given item is selected (default). |
Returns
| Type |
Description |
| object |
The tree object. This allow for chaining multiple setter methods in
one single statement. |