LineNode
| Name space |
rialto.widget |
| FILE |
rialtoEngine\javascript\components\controls\gridTreeview.js |
| NAME |
LineNode |
| INHERITS |
|
| VERSION |
0.86 |
| update |
|
| DESCRIPTION |
This object create a create tree node |
CONSTRUCTOR
| Name |
Type |
Description |
Default |
| name |
String |
Name of the linenode |
|
| parent |
object |
gridTree parent |
|
| text |
String |
text of the node |
|
| icon |
String |
path of an image (19*23) to symbolize the node |
"images/imTreeview/pict_synthetik_off.gif" |
| tabData |
Array |
value for this line in the grid |
|
| parentLine |
object |
linenode parent. If not add to the gridTree |
toggle function |
| open |
boolean |
initial statute of the node (open or not) |
true |
| url |
string |
url called to get the new value of the node |
true |
Example:
node1 =new rialto.widget.LineNode({name:'li1',text:'1.1',icon:'',parentLine:li2,tabData:["1933-00002","DURAND Jule","27/08/1942"],open:false,url:''}
);
PUBLIC METHODS
| Method |
Arguments list |
Return value |
Inherits |
To redefine |
|
toogle
|
String nodeId,object objPar |
void |
no |
no |
|
displayChilds
|
boolean isVisible |
void |
no |
no |
|
addLine
|
Object lineNode line |
void |
no |
no |
|
hasChild
|
|
boolean |
no |
no |
|
remove
|
|
void |
no |
no |
|
setText
|
String newText |
void |
no |
no |
|
isFirst
|
|
boolean |
no |
no |
|
isLast
|
|
boolean |
no |
no |
|
first
|
|
Object treeNode |
no |
no |
|
last
|
|
Object treeNode |
no |
no |
|
next
|
|
Object treeNode |
no |
no |
|
previous
|
|
Object treeNode |
no |
no |
toogle
this method will open or close the node. If it is a reloadable node the url for the reload is call.
Parameters:
String nodeId:id of the node in which we want to add the new node
object objPar:object use for the treeNode constructor
displayChilds
change child visible state according to the parameter
Parameters:
boolean isVisible:true to be visible
addLine
add a node
Parameters:
Object lineNode line:linenode to add
hasChild
return true if the node has children
Parameters:
remove
remove a line node
Parameters:
setText
this method will allow to change the text of the node
Parameters:
String newText:new text of the node
isFirst
return true if the node is the first children of his parent
Parameters:
isLast
return true if the node is the last children of his parent
Parameters:
first
return the first children of the node
Parameters:
last
return the last children of the node
Parameters:
next
return the next brother of the node
Parameters:
previous
return the previous brother of the node
Parameters: