home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 1998 October
/
PCWorld_1998-10_cd.bin
/
software
/
prehled
/
komix
/
DATA.Z
/
propifgrou.tcl
< prev
next >
Wrap
Text File
|
1996-05-29
|
2KB
|
67 lines
#---------------------------------------------------------------------------
#
# (c) Cadre Technologies Inc. 1996
#
# File: @(#)propifgrou.tcl 1.6
# Author: <generated>
# Description:
#---------------------------------------------------------------------------
# SccsId = @(#)propifgrou.tcl 1.6 13 Mar 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 PropIfGroup : {PropIfParent} {
method destructor
constructor
method getProperties
method setProperties
}
method PropIfGroup::destructor {this} {
# Start destructor user section
# End destructor user section
$this PropIfParent::destructor
}
constructor PropIfGroup {class this guiParent propDef} {
set this [PropIfParent::constructor $class $this]
$this config -definition $propDef \
-ifElement [DlgColumn new $guiParent.[$propDef name]]
set guiParent [$this ifElement]
foreach member [$propDef memberSet] {
set class [$member ifClass]
if [PropIfElement::canHandle $class] {
set child [PropIfElement new $guiParent $member]
} else {
if [catch {
set child [$class new $guiParent $member]
}] {
error "Invalid interface class '$class'"
}
}
$this addChild $child
}
return $this
}
method PropIfGroup::getProperties {this propContainer} {
[$this childSet] foreach propIf {
$propIf getProperties $propContainer
}
}
method PropIfGroup::setProperties {this propContainer} {
[$this childSet] foreach propIf {
$propIf setProperties $propContainer
}
}
# Do not delete this line -- regeneration end marker