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.
new WebFXLoadTree(sText, sXmlSrc, oAction, sBehavior, sIcon, sOpenIcon)
| 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 |
| Name | Description | ||||||
createItemFromElementSyntax
Arguments
Return Type
| This static method takes an XML element and returns a WebFXAbstractNode | ||||||
loadXmlDocumentSyntax
Arguments
Return Type
| This starts loading of an XML document associated with a tree node. | ||||||
documentLoadedSyntax
Arguments
Return Type
| This is called once the document for a tree node has loaded |
| Name | Type | Descripton |
| None. | ||
| Name | Description | ||||
getSrcSyntax
ArgumentsNo Arguments. Return Type
| Returns the URI to the XML file | ||||
reloadSyntax
Arguments
Return Type
| 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. | ||||
setSrcSyntax
Arguments
Return Type
| Sets the URI to the XML file |
| Name | Type | Descripton |
| None. | ||
| Name | Descripton |
| None. | |
None.
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.
new WebFXLoadTreeItem(sText, sXmlSrc, oAction, eParent, sIcon, sOpenIcon)
| 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 |
| Name | Description |
| None. | |
| Name | Type | Descripton |
| None. | ||
| Name | Description | ||||
getSrcSyntax
ArgumentsNo Arguments. Return Type
| Returns the URI to the XML file | ||||
reloadSyntax
Arguments
Return Type
| 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. | ||||
setSrcSyntax
Arguments
Return Type
| Sets the URI to the XML file |
| Name | Type | Descripton |
| None. | ||
| Name | Descripton |
| None. | |
None.