home *** CD-ROM | disk | FTP | other *** search
- #---------------------------------------------------------------------------
- #
- # (c) Cayenne Software Inc. 1996
- #
- # File: @(#)cstree.tcl /main/titanic/5
- # Author: <generated>
- # Description:
- #---------------------------------------------------------------------------
- # SccsId = @(#)cstree.tcl /main/titanic/5 23 Oct 1996 Copyright 1996 Cayenne Software Inc.
-
- # Start user added include file section
- require "csrootnode.tcl"
- # End user added include file section
-
-
- Class CSTree : {BrowsTree} {
- constructor
- method destructor
- method update
- attribute view
- }
-
- constructor CSTree {class this name} {
- set this [BrowsTree::constructor $class $this $name]
- # Start constructor user section
- # End constructor user section
- return $this
- }
-
- method CSTree::destructor {this} {
- # Start destructor user section
- # End destructor user section
- }
-
- method CSTree::update {this {rebuild 1}} {
- set selected [$this selected]
-
- if [lempty [$this rootSet]] {
- CSRootNode new $this.root
- }
- $this.root update $rebuild
-
- if {[info commands $selected] != ""} {
- $this selected $selected
- $selected makeVisible
- $selected display
- }
- }
-
- # Do not delete this line -- regeneration end marker
-
-