home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 2000 December
/
PCWorld_2000-12_cd.bin
/
Komunikace
/
Comanche
/
xul
/
xuiNode.tcl
< prev
next >
Wrap
Text File
|
2000-11-02
|
1KB
|
49 lines
class xuiNode {
inherit xuiObject
variable openIcon {openFolder}
variable closedIcon {closedFolder}
variable id {}
constructor {} {
setXuiClass node
}
destructor {
}
method getId {} {return $id}
method setId { nodeId } { set id $nodeId }
method getChildrenList {} { return $childrenList }
method setChildrenList { xuiObj } { set childrenList $xuiObj }
method getClosedIcon {} { return $closedIcon }
method setClosedIcon { icon } { set closedIcon $icon }
method getOpenIcon {} { return $openIcon }
method setOpenIcon { icon } { set openIcon $icon }
method getText {}
method clone
method copyClone { clone }
}
body xuiNode::clone {{parentName {::#auto}}} {
set clone [xuiNode $parentName.$name]
copyClone $clone
return $clone
}
body xuiNode::copyClone { clone } {
xuiObject::copyClone $clone
$clone setOpenIcon $openIcon
$clone setClosedIcon $closedIcon
$clone setId $id
$clone setXuiClass $xuiClass
}
body xuiNode::getText {} {
return $label
}