home *** CD-ROM | disk | FTP | other *** search
- #---------------------------------------------------------------------------
- #
- # (c) Cadre Technologies Inc. 1996
- #
- # File: @(#)rulesuiobj.tcl 1.10
- # Author: <generated>
- # Description:
- #---------------------------------------------------------------------------
- # SccsId = @(#)rulesuiobj.tcl 1.10 26 Jan 1996 Copyright 1996 Cadre Technologies Inc.
-
- # Start user added include file section
- # End user added include file section
-
- require "browsuiobj.tcl"
-
- Class RulesUiObj : {BrowsUiObj} {
- constructor
- method destructor
- method initializeInfo
- method getRuleUiObj
- method setRuleUiObj
- method removeRuleUiObj
- attribute RuleUiObj
- }
-
- global RulesUiObj::uiClass
- set RulesUiObj::uiClass "AccessRules"
-
-
- constructor RulesUiObj {class this name} {
- set this [BrowsUiObj::constructor $class $this $name]
- $this RuleUiObj [Dictionary new]
- # Start constructor user section
-
- $this uiName "<access rules>"
- $this uiText "access rules"
-
- # End constructor user section
- return $this
- }
-
- method RulesUiObj::destructor {this} {
- # Start destructor user section
- # End destructor user section
- $this BrowsUiObj::destructor
- }
-
- proc RulesUiObj::associations {} {
- return {rules}
- }
-
- proc RulesUiObj::childTypes {assoc} {
- if {[lsearch -exact "[RulesUiObj::associations]" "$assoc"] == -1} {
- return ""
- }
-
- set childTypes [BrowserProcs::childTypes $assoc]
- case "$childTypes" in {
- {AccessRule} {
- return {ownRight}
- }
- {default} {
- return "$childTypes"
- }
- }
- }
-
- proc RulesUiObj::infoProperties {} {
- return [BrowserProcs::infoProperties]
- }
-
- method RulesUiObj::initializeInfo {this dummy} {
- $this BrowsUiObj::initializeInfo $dummy
- $this setInfo Text "[$this uiText] on [[$this parent] getInfo Text]"
- }
-
- # Do not delete this line -- regeneration end marker
-
- method RulesUiObj::getRuleUiObj {this ruleId} {
- return [[$this RuleUiObj] set $ruleId]
- }
-
- method RulesUiObj::setRuleUiObj {this ruleId newRuleUiObj} {
- [$this RuleUiObj] set $ruleId $newRuleUiObj
- }
-
- method RulesUiObj::removeRuleUiObj {this ruleId} {
- [$this RuleUiObj] unset $ruleId
- }
-
-