home *** CD-ROM | disk | FTP | other *** search
- #---------------------------------------------------------------------------
- #
- # (c) Cadre Technologies Inc. 1996
- #
- # File: @(#)propifpare.tcl 1.2
- # Author: <generated>
- # Description:
- #---------------------------------------------------------------------------
- # SccsId = @(#)propifpare.tcl 1.2 01 Feb 1996 Copyright 1996 Cadre Technologies Inc.
-
- # Start user added include file section
- # End user added include file section
-
- require "propinterf.tcl"
-
- Class PropIfParent : {PropInterface} {
- constructor
- method destructor
- method childSet
- method addChild
- method removeChild
- attribute _childSet
- }
-
- constructor PropIfParent {class this} {
- set this [PropInterface::constructor $class $this]
- $this _childSet [List new]
- # Start constructor user section
- # End constructor user section
- return $this
- }
-
- method PropIfParent::destructor {this} {
- # Start destructor user section
- # End destructor user section
- $this PropInterface::destructor
- }
-
- # Do not delete this line -- regeneration end marker
-
- method PropIfParent::childSet {this} {
- return [$this _childSet]
- }
-
- method PropIfParent::addChild {this newChild} {
- [$this _childSet] append $newChild
- $newChild _parent $this
- }
-
- method PropIfParent::removeChild {this oldChild} {
- $oldChild _parent ""
- [$this _childSet] removeValue $oldChild
- }
-
-