Added -justify left to hoverbox internal label
[tcl-tlc.git] / scripts / chain.itcl
blob7630400979f20c9f160352129727e82929822d51
1 class tlc::Chain {
2 constructor {args} {}
3 destructor {}
5 public {
6 variable id
7 variable name
8 variable parent
9 variable previous ""
10 variable next ""
12 method new_previous {obj}
13 method new_next {obj}
14 method first_item {}
19 body tlc::Chain::constructor {args} {
20 eval configure $args
22 if {$previous != ""} {
23 set next [$previous new_next $this]
24 if {$next != ""} {
25 $next new_previous $this
31 body tlc::Chain::destructor {} {
32 if {$next != ""} {
33 $next new_previous $previous
35 if {$previous != ""} {
36 $previous new_next $next
41 body tlc::Chain::new_previous {obj} {
42 set previous $obj
46 body tlc::Chain::new_next {obj} {
47 set old_next $next
48 set next $obj
50 return $old_next
54 body tlc::Chain::first_item {} {
55 if {$previous == ""} {
56 return $this
57 } else {
58 return [$previous first_item]