## WebFXLoadTree

This class extends `WebFXTree` and therefore all methods and field available for `WebFXTree` are also available for `WebFXLoadTree`.

This tree can be used to dynamically load an XML file that describes the tree.

### Syntax

`new WebFXLoadTree(sText, sXmlSrc, oAction, sBehavior, sIcon, sOpenIcon)`

### Parameters

Name | Type | Descripton
`sText` | `` | The text (HTML) to show as a label for the tree item
`sXmlSrc` | `` | The URI to XML file describing the items in this tree node
`oAction` | `` | The action to do when the node is activated. If this is String then it is treated as an URL but you can also pass a Function object which will be called when activated.
`sBehavior` | `` | This is used to decide when to show the open icon for folders. Supported values are "classic" and "explorer". When this is "explorer" selected folders show the open icon. For "classic" the open icon is shown for expanded folders.
`sIcon` | `` | The image to use as icon
`sOpenIcon` | `` | The image to use as open icon

### Static Methods

Name | Description
createItemFromElement #### Syntax `object.createItemFromElement(oNode)` #### Arguments
Name | Type | Descripton
`oNode` | `` | The XML element that describes the tree node.
#### Return Type `void` | This static method takes an XML element and returns a WebFXAbstractNode
loadXmlDocument #### Syntax `object.loadXmlDocument(jsNode)` #### Arguments
Name | Type | Descripton
`jsNode` | `` | The load tree node that we want to load the document for.
#### Return Type `void` | This starts loading of an XML document associated with a tree node.
documentLoaded #### Syntax `object.documentLoaded(jsNode)` #### Arguments
Name | Type | Descripton
`jsNode` | `` | The load tree node that we loaded the document for.
#### Return Type `void` | This is called once the document for a tree node has loaded

### Static Fields

Name | Type | Descripton
None.

### Methods

Name | Description
getSrc #### Syntax `object.getSrc()` #### Arguments No Arguments. #### Return Type `void` | Returns the URI to the XML file
reload #### Syntax `object.reload()` #### Arguments
Name | Type | Descripton
#### Return Type `void` | Reloads the XML file and rebuilds the tree. If the XML file is cached (and the HTTP headers don't require the file to be refetched) the file will be taken from the cache.
setSrc #### Syntax `object.setSrc()` #### Arguments
Name | Type | Descripton
#### Return Type `void` | Sets the URI to the XML file

### Fields

Name | Type | Descripton
None.

### Events

Name | Descripton
None.

### Remarks

None.

## WebFXLoadTreeItem

This class extends `WebFXTreeItem` and therefore all methods and field available for `WebFXTreeItem` are also available for `WebFXLoadTreeItem`.

This tree item can be used to dynamically load an XML file that describes the sub tree of the item.

### Syntax

`new WebFXLoadTreeItem(sText, sXmlSrc, oAction, eParent, sIcon, sOpenIcon)`

### Parameters

Name | Type | Descripton
`sText` | `` | The text (HTML) to show as a label for the tree item
`sXmlSrc` | `` | The URI to XML file describing the items in this tree node
`oAction` | `` | The action to do when the node is activated. If this is String then it is treated as an URL but you can also pass a Function object which will be called when activated.
`eParent` | `` | Optional parent tree item. If provided then the item will be added as a child to eParent
`sIcon` | `` | The image to use as icon
`sOpenIcon` | `` | The image to use as open icon

### Static Methods

Name | Description
None.

### Static Fields

Name | Type | Descripton
None.

### Methods

Name | Description
getSrc #### Syntax `object.getSrc()` #### Arguments No Arguments. #### Return Type `void` | Returns the URI to the XML file
reload #### Syntax `object.reload()` #### Arguments
Name | Type | Descripton
#### Return Type `void` | Reloads the XML file and rebuilds the tree. If the XML file is cached (and the HTTP headers don't require the file to be refetched) the file will be taken from the cache.
setSrc #### Syntax `object.setSrc()` #### Arguments
Name | Type | Descripton
#### Return Type `void` | Sets the URI to the XML file

### Fields

Name | Type | Descripton
None.

### Events

Name | Descripton
None.

### Remarks

None.