home *** CD-ROM | disk | FTP | other *** search
/ PC World 1998 October / PCWorld_1998-10_cd.bin / software / prehled / komix / DATA.Z / cbpropcmpl.tcl < prev    next >
Text File  |  1996-05-29  |  2KB  |  57 lines

  1. #---------------------------------------------------------------------------
  2. #
  3. #      (c)     Cadre Technologies Inc.    1996
  4. #
  5. #      File:           @(#)cbpropcmpl.tcl    1.4
  6. #      Author:         <generated>
  7. #      Description:
  8. #---------------------------------------------------------------------------
  9. # SccsId = @(#)cbpropcmpl.tcl    1.4   31 Jan 1996 Copyright 1996 Cadre Technologies Inc.
  10.  
  11. # Start user added include file section
  12. # End user added include file section
  13.  
  14.  
  15. Class CBPropCmpList : {GCObject} {
  16.     constructor
  17.     method destructor
  18.     method addComponent
  19.     method addPropComponent
  20.     method removePropComponent
  21.     attribute propComponentSet
  22. }
  23.  
  24. constructor CBPropCmpList {class this} {
  25.     set this [GCObject::constructor $class $this]
  26.     $this propComponentSet [List new]
  27.     # Start constructor user section
  28.     # End constructor user section
  29.     return $this
  30. }
  31.  
  32. method CBPropCmpList::destructor {this} {
  33.     # Start destructor user section
  34.     # End destructor user section
  35. }
  36.  
  37. method CBPropCmpList::addComponent {this component label item workItem} {
  38.     if {$component == "" || [$component isNil]} {
  39.         return
  40.     }
  41.     set cbPropComponent [CBPropComponent new $component]
  42.     $this addPropComponent $cbPropComponent
  43.     $cbPropComponent addLabel $label $item $workItem
  44. }
  45.  
  46. # Do not delete this line -- regeneration end marker
  47.  
  48. method CBPropCmpList::addPropComponent {this newPropComponent} {
  49.     [$this propComponentSet] append $newPropComponent
  50.  
  51. }
  52.  
  53. method CBPropCmpList::removePropComponent {this oldPropComponent} {
  54.     [$this propComponentSet] removeValue $oldPropComponent
  55. }
  56.  
  57.