home *** CD-ROM | disk | FTP | other *** search
- #---------------------------------------------------------------------------
- #
- # (c) Westmount Technology 1994
- #
- # File: @(#)cbclasstex.tcl 1.4
- # Author: <generated>
- # Description:
- #---------------------------------------------------------------------------
- # SccsId = @(#)cbclasstex.tcl 1.4 31 Jan 1996 Copyright 1994 Westmount Technology
-
- # Start user added include file section
- # End user added include file section
-
- require "cbtextlist.tcl"
-
- Class CBClassTextList : {CBTextList} {
- constructor
- method destructor
- method initView
- method browser
- attribute _browser
- }
-
- constructor CBClassTextList {class this name} {
- set this [CBTextList::constructor $class $this $name]
- # Start constructor user section
- # End constructor user section
- return $this
- }
-
- method CBClassTextList::destructor {this} {
- set ref [$this _browser]
- if {$ref != ""} {
- $ref _classTL ""
- }
- # Start destructor user section
- # End destructor user section
- $this CBTextList::destructor
- }
-
- method CBClassTextList::initView {this} {
- $this removeTextListEntries
- $this removeEntries
-
- set classList [[[$this browser] model] classSet]
- $classList foreach class {
- if {[$class name] == ""} {
- continue
- }
- $this addTextListEntry $class
- }
- $this sortTextListEntries
- $this fillEntries
- $this deselectEntries
- }
-
- # Do not delete this line -- regeneration end marker
-
- method CBClassTextList::browser {this args} {
- if {$args == ""} {
- return [$this _browser]
- }
- set ref [$this _browser]
- if {$ref != ""} {
- $ref _classTL ""
- }
- set obj [lindex $args 0]
- if {$obj != ""} {
- $obj _classTL $this
- }
- $this _browser $obj
- }
-
-