Return Types |
---|
Binding RelationInfo |
Property Summary | |
---|---|
String | #bgcolor |
Boolean | #enabled |
String | #fgcolor |
Object[] | #selectionPath Get/Set the selection (path), array with pk records values (only single pk key supported) |
String | #toolTipText |
Boolean | #transparent |
Boolean | #visible |
Method Summary | |
---|---|
Number | #addRoots(foundset) Add foundset to the list of foundsets used to create the tree's root nodes. |
Binding | #createBinding(datasource/servername, [tablename]) Create and add binding object for a database table used to set data bindings for nodes. |
RelationInfo | #createRelationInfo() Create relation info object used to set multiple child relations for a tree node |
Number | #getHeight() Returns the height of the tree. |
Number | #getLocationX() Get the x coordinate of the location of the tree. |
Number | #getLocationY() Get the y coordinate of the location of the tree. |
String | #getName() Returns the name of the tree. |
Number | #getWidth() Returns the width of the tree. |
Boolean | #isNodeExpanded(path) Check the path (array with pk records values (only single pk key supported)) expanded status |
void | #refresh() Refresh the tree display |
void | #removeAllRoots() Remove all root foundsets |
void | #setExpandNode(path, expand_collapse) Expand/collapse the path, array with pk records values (only single pk key supported) |
void | #setFont(spec) Sets the specified font as the font of the tree. |
void | #setLocation(x, y) Sets the location of the tree. |
void | #setNodeLevelVisible(level, visible) Set the level of visible nodes (expand or collapse to certain level) |
void | #setOnDrag(callback) Set method to be called when a drag is started on the tree. |
void | #setOnDragEnd(callback) Set method to be called when a drag of on the tree is ended. |
void | #setOnDragOver(callback) Set method to be called during a drag over the tree. |
void | #setOnDrop(callback) Set method to be called on a drop on the tree. |
void | #setRowHeight(rowHeight) Set row height |
void | #setSize(x, y) Sets the size of the tree. |
Property Details |
---|
bgcolor |
Replace with description |
Returns String |
enabled |
Replace with description |
Returns Boolean |
fgcolor |
Replace with description |
Returns String |
selectionPath |
Get/Set the selection (path), array with pk records values (only single pk key supported) |
Returns Object[] |
Sampleelements.customer_id.selectionPath = new Array(14,24,45,67); var currentSelectionArray = elements.customer_id.selectionPath; |
toolTipText |
Replace with description |
Returns String |
transparent |
Replace with description |
Returns Boolean |
visible |
Replace with description |
Returns Boolean |
Method Details |
---|
addRoots |
Number addRoots (foundset) |
Add foundset to the list of foundsets used to create the tree's root nodes. Returns the number of added root nodes. Note: the bean will use a clone of the foundset, so any changes on the foundset parameter will be ignored in the tree. |
Parameters foundset |
Returns Number |
Sample//Add foundset to the list of foundsets used to create the tree's root nodes. Returns the number of added root nodes. Note: the bean will use a clone of the foundset, so any changes on the foundset parameter will be ignored in the tree. var addedRootNodes = elements.customer_id.addRoots(foundset); |
createBinding |
Binding createBinding (datasource/servername, [tablename]) |
Create and add binding object for a database table used to set data bindings for nodes. |
Parameters datasource/servername [tablename] |
Returns Binding |
Samplevar companies_binding = elements.customer_id.createBinding('example_data', 'companies'); companies_binding.setTextDataprovider('company_name'); companies_binding.setNRelationName('companies_to_companies'); companies_binding.setImageURLDataprovider('type_icon'); companies_binding.setChildSortDataprovider('company_sort'); |
createRelationInfo |
RelationInfo createRelationInfo () |
Create relation info object used to set multiple child relations for a tree node |
Returns RelationInfo |
Samplevar company_relations = new Array(); company_relations[0] = elements.customer_id.createRelationInfo(); company_relations[0].setLabel('Employees'); company_relations[0].setNRelationName('companies_to_employees'); company_relations[1] = elements.customer_id.createRelationInfo(); company_relations[1].setLabel('Customers'); company_relations[1].setNRelationName('companies_to_customers'); companies_binding.setNRelationInfos(company_relations); |
getHeight |
Number getHeight () |
Returns the height of the tree. |
Returns Number |
Sampleelements.customer_id.getHeight(); |
getLocationX |
Number getLocationX () |
Get the x coordinate of the location of the tree. |
Returns Number |
Sampleelements.customer_id.getLocationX(); |
getLocationY |
Number getLocationY () |
Get the y coordinate of the location of the tree. |
Returns Number |
Sampleelements.customer_id.getLocationY(); |
getName |
String getName () |
Returns the name of the tree. |
Returns String |
Sampleelements.customer_id.getName(); |
getWidth |
Number getWidth () |
Returns the width of the tree. |
Returns Number |
Sampleelements.customer_id.getWidth(); |
isNodeExpanded |
Boolean isNodeExpanded (path) |
Check the path (array with pk records values (only single pk key supported)) expanded status |
Parameters path |
Returns Boolean |
Samplevar pathArray = new Array(14,24,45,67); elements.customer_id.isNodeExpanded(pathArray); |
refresh |
void refresh () |
Refresh the tree display |
Returns void |
Sampleelements.customer_id.refresh(); |
removeAllRoots |
void removeAllRoots () |
Remove all root foundsets |
Returns void |
Sampleelements.customer_id.removeAllRoots(); |
setExpandNode |
void setExpandNode (path, expand_collapse) |
Expand/collapse the path, array with pk records values (only single pk key supported) |
Parameters path expand_collapse |
Returns void |
Samplevar pathArray = new Array(14,24,45,67); elements.customer_id.setExpandNode(pathArray, true); |
setFont |
void setFont (spec) |
Sets the specified font as the font of the tree. |
Parameters spec |
Returns void |
Sampleelements.customer_id.setFont('Times New Roman, 1, 22'); |
setLocation |
void setLocation (x, y) |
Sets the location of the tree. |
Parameters x y |
Returns void |
Sampleelements.customer_id.setLocation(120,80); |
setNodeLevelVisible |
void setNodeLevelVisible (level, visible) |
Set the level of visible nodes (expand or collapse to certain level) |
Parameters level visible |
Returns void |
Sampleelements.customer_id.setNodeLevelVisible(globals.g_treeview_level, (globals.g_treeview_expand == 1 ? true : false)); |
setOnDrag |
void setOnDrag (callback) |
Set method to be called when a drag is started on the tree. For more details about the method arguments and return value check the same property of a form |
Parameters callback |
Returns void |
Sampleelements.customer_id.setOnDrag(onDrag); |
setOnDragEnd |
void setOnDragEnd (callback) |
Set method to be called when a drag of on the tree is ended. For more details about the method arguments and return value check the same property of a form |
Parameters callback |
Returns void |
Sampleelements.customer_id.setOnDragEnd(onDragEnd); |
setOnDragOver |
void setOnDragOver (callback) |
Set method to be called during a drag over the tree. For more details about the method arguments and return value check the same property of a form |
Parameters callback |
Returns void |
Sampleelements.customer_id.setOnDragOver(onDragOver); |
setOnDrop |
void setOnDrop (callback) |
Set method to be called on a drop on the tree. For more details about the method arguments and return value check the same property of a form |
Parameters callback |
Returns void |
Sampleelements.customer_id.setOnDrop(onDrop); |
setRowHeight |
void setRowHeight (rowHeight) |
Set row height |
Parameters rowHeight |
Returns void |
Sampleelements.customer_id.setRowHeight(40); |
setSize |
void setSize (x, y) |
Sets the size of the tree. |
Parameters x y |
Returns void |
Sampleelements.customer_id.setSize(400,300); |