home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 1997 November
/
PCWorld_1997-11_cd.bin
/
software
/
programy
/
komix
/
DATA.Z
/
clistobj.tcl
< prev
next >
Wrap
Text File
|
1996-05-29
|
2KB
|
98 lines
#---------------------------------------------------------------------------
#
# (c) Cadre Technologies Inc. 1996
#
# File: @(#)clistobj.tcl 1.4
# Author: <generated>
# Description:
#---------------------------------------------------------------------------
# SccsId = @(#)clistobj.tcl 1.4 23 Feb 1996 Copyright 1996 Cadre Technologies Inc.
# Start user added include file section
# End user added include file section
require "browsdbobj.tcl"
Class CListObj : {BrowsDbObj} {
method destructor
constructor
method promoter
method browserType
method name
method getRuleUiObj
method setRuleUiObj
method removeRuleUiObj
attribute RuleUiObj
}
method CListObj::destructor {this} {
# Start destructor user section
# End destructor user section
$this BrowsDbObj::destructor
}
constructor CListObj {class this name} {
set this [BrowsDbObj::constructor $class $this $name]
return $this
}
method CListObj::promoter {this} {
$this BrowsDbObj::promoter
$this RuleUiObj [Dictionary new]
}
proc CListObj::associations {} {
return {rules}
}
method CListObj::browserType {this} {
return "ControlledList"
}
proc CListObj::childTypes {assoc} {
if {[lsearch -exact "[CListObj::associations]" "$assoc"] == -1} {
return ""
}
set childTypes [BrowserProcs::childTypes $assoc]
case "$childTypes" in {
{AccessRule} {
return {childRight ownRight}
}
{default} {
return "$childTypes"
}
}
}
proc CListObj::controlledLists {} {
return ""
}
proc CListObj::infoProperties {} {
return [concat \
[BrowserProcs::infoProperties] \
{"Controlled Actions"} \
]
}
method CListObj::name {this} {
return "[[$this controlledClass] name]"
}
# Do not delete this line -- regeneration end marker
method CListObj::getRuleUiObj {this ruleId} {
return [[$this RuleUiObj] set $ruleId]
}
method CListObj::setRuleUiObj {this ruleId newRuleUiObj} {
[$this RuleUiObj] set $ruleId $newRuleUiObj
}
method CListObj::removeRuleUiObj {this ruleId} {
[$this RuleUiObj] unset $ruleId
}