Class sap.landvisz.internal.TreeFieldModule: sap/landvisz/internal/TreeField
A control to render tree field in the control
sClassName and enriches it with the information contained in oClassInfo.sap.ui.commons.TreeNode in the aggregation named treeNode and returns its index if found or -1 otherwise. Accepts an object literal mSettings that defines initial property values, aggregated and associated objects as well as event handlers.
If the name of a setting is ambiguous (e.g. a property has the same name as an event), then the framework assumes property, aggregation, association, event in that order. To override this automatic resolution, one of the prefixes "aggregation:", "association:" or "event:" can be added to the name of the setting (such a prefixed name must be enclosed in single or double quotes).
The supported settings are:
- Properties
- treeModel : object
- bindingName : string
- renderingSize : sap.landvisz.EntityCSSSize
- Aggregations
- treeNode : sap.ui.commons.TreeNode[]
- Associations
- Events
| {string} | sId? | id for the new control, generated automatically if no id is given |
| {object} | mSettings? | initial settings for the new control |
sClassName and enriches it with the information contained in oClassInfo. oClassInfo might contain the same kind of informations as described in Element.extend.
| {string} | sClassName | name of the class to be created |
| {object} | oClassInfo? | object literal with informations about the class |
| {function} | FNMetaImpl? | constructor function for the metadata object. If not given, it defaults to sap.ui.core.ElementMetadata. |
| {function} | the created class / constructor function |
| {sap.ui.base.Metadata} | Metadata object describing this class |
oTreeNode to the aggregation named treeNode. | {sap.ui.commons.TreeNode} | oTreeNode | the treeNode to add; if empty, nothing is inserted |
| {sap.landvisz.internal.TreeField} | this to allow method chaining |
treeNode. | {sap.landvisz.internal.TreeField} | this to allow method chaining |
bindingName. binding name Default value is empty/undefined
| {string} | the value of property bindingName |
renderingSize. rendering size of the control Default value is empty/undefined
| {sap.landvisz.EntityCSSSize} | the value of property renderingSize |
treeModel. treeModel to be rendered in the control Default value is empty/undefined
| {object} | the value of property treeModel |
treeNode.aggregation on the tree field to render tree nodes
| {sap.ui.commons.TreeNode[]} |
sap.ui.commons.TreeNode in the aggregation named treeNode and returns its index if found or -1 otherwise. | {sap.ui.commons.TreeNode} | oTreeNode | the treeNode whose index is looked for. |
| {int} | the index of the provided control in the aggregation if found, or -1 otherwise |
treeNode. | {sap.ui.commons.TreeNode} | oTreeNode | the treeNode to insert; if empty, nothing is inserted |
| {int} | iIndex | the 0-based index the treeNode should be inserted at; for a negative value of iIndex, the treeNode is inserted at position 0; for a value greater than the current size of the aggregation, the treeNode is inserted at the last position |
| {sap.landvisz.internal.TreeField} | this to allow method chaining |
treeNode.Additionally unregisters them from the hosting UIArea.
| {sap.ui.commons.TreeNode[]} | an array of the removed elements (might be empty) |
treeNode. | {int|string|sap.ui.commons.TreeNode} | vTreeNode | the treeNode to remove or its index or id |
| {sap.ui.commons.TreeNode} | the removed treeNode or null |
bindingName. Default value is empty/undefined
| {string} | sBindingName | new value for property bindingName |
| {sap.landvisz.internal.TreeField} | this to allow method chaining |
renderingSize. Default value is empty/undefined
| {sap.landvisz.EntityCSSSize} | oRenderingSize | new value for property renderingSize |
| {sap.landvisz.internal.TreeField} | this to allow method chaining |
treeModel. Default value is empty/undefined
| {object} | oTreeModel | new value for property treeModel |
| {sap.landvisz.internal.TreeField} | this to allow method chaining |