home *** CD-ROM | disk | FTP | other *** search
- #---------------------------------------------------------------------------
- #
- # (c) Westmount Technology 1994
- #
- # File: @(#)cbcdmcomp.tcl 1.5
- # Author: <generated>
- # Description:
- #---------------------------------------------------------------------------
- # SccsId = @(#)cbcdmcomp.tcl 1.5 20 Feb 1996 Copyright 1994 Westmount Technology
-
- # Start user added include file section
- # End user added include file section
-
-
- Class CBCDMComp : {Object} {
- constructor
- method destructor
- method collectClasses
- method collectPropComps
- method collectWorkItems
- }
-
- constructor CBCDMComp {class this name} {
- set this [Object::constructor $class $this $name]
- # Start constructor user section
- # End constructor user section
- return $this
- }
-
- method CBCDMComp::destructor {this} {
- # Start destructor user section
- # End destructor user section
- }
-
- method CBCDMComp::collectClasses {this classList} {
- if {[$this type] == ""} {
- return
- }
- set class [$classBrowser getCBClass [$this getTypeItem]]
- if {$class != ""} {
- $classList append $class
- }
- }
-
- method CBCDMComp::collectPropComps {this propCompList} {
- set cbPropComp [CBPropComponent new [$this getMatrixComponent]]
- $propCompList addPropComponent $cbPropComp
-
- $cbPropComp addLabel [$this getNameTypeLabel] [$this getNameItem] \
- [$this getNameWorkItem]
- $cbPropComp addLabel [$this getNameTypeLabel] [$this getTypeItem] \
- [$this getTypeWorkItem]
- }
-
- method CBCDMComp::collectWorkItems {this workItemList} {
- set workItem [$this getNameWorkItem]
- if {![$workItem isNil]} {
- $workItemList append $workItem
- }
- set workItem [$this getTypeWorkItem]
- if {![$workItem isNil]} {
- $workItemList append $workItem
- }
- }
-
- # Do not delete this line -- regeneration end marker
-
-