home *** CD-ROM | disk | FTP | other *** search
- #---------------------------------------------------------------------------
- #
- # (c) Cadre Technologies Inc. 1996
- #
- # File: @(#)ripolatass.tcl /main/2
- # Author: <generated>
- # Description:
- #---------------------------------------------------------------------------
- # SccsId = @(#)ripolatass.tcl /main/2 5 Jun 1996 Copyright 1996 Cadre Technologies Inc.
-
- # Start user added include file section
-
- require "propifelem.tcl"
-
- # End user added include file section
-
- require "propifpare.tcl"
-
- Class RIPolAtAss : {PropIfParent} {
- method destructor
- constructor
- method getProperties
- method setProperties
- attribute endGrp
- attribute startGrp
- }
-
- method RIPolAtAss::destructor {this} {
- # Start destructor user section
- # End destructor user section
- $this PropIfParent::destructor
- }
-
- constructor RIPolAtAss {class this guiParent propDef} {
- set this [PropIfParent::constructor $class $this]
- set page [NoteBkPage new $guiParent.[$propDef name]Page \
- -label [$propDef longName]]
- set row [DlgRow new $page.[$propDef name]Row]
- set startGrp [NamedGroup new $row.[$propDef name]StartGrp -label At]
- set startCol [DlgColumn new $startGrp.[$propDef name]StartCol]
- set endGrp [NamedGroup new $row.[$propDef name]EndGrp -label At]
- set endCol [DlgColumn new $endGrp.[$propDef name]EndCol]
- $this config -definition $propDef \
- -startGrp $startGrp -endGrp $endGrp
- foreach member [$propDef memberSet] {
- set guiParent $startCol
- if {[string last _end [$member name]] >= 0} {
- set guiParent $endCol
- }
- $this addChild [PropIfElement new $guiParent $member]
- }
- $this ifElement $page
- return $this
- }
-
- method RIPolAtAss::getProperties {this propContainer} {
- [$this startGrp] label "At [$propContainer startLabel]"
- [$this endGrp] label "At [$propContainer endLabel]"
- [$this childSet] foreach propIf {
- $propIf getProperties $propContainer
- }
- }
-
- method RIPolAtAss::setProperties {this propContainer} {
- [$this childSet] foreach propIf {
- $propIf setProperties $propContainer
- }
- }
-
- # Do not delete this line -- regeneration end marker
-
-