
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
}



