home *** CD-ROM | disk | FTP | other *** search
/ PC World 1997 November / PCWorld_1997-11_cd.bin / software / programy / komix / DATA.Z / ruleuiobj.tcl < prev    next >
Encoding:
Text File  |  1996-05-29  |  1.8 KB  |  78 lines

  1. #---------------------------------------------------------------------------
  2. #
  3. #      (c)     Cadre Technologies Inc.    1996
  4. #
  5. #      File:           @(#)ruleuiobj.tcl    1.6
  6. #      Author:         <generated>
  7. #      Description:
  8. #---------------------------------------------------------------------------
  9. # SccsId = @(#)ruleuiobj.tcl    1.6   26 Jan 1996 Copyright 1996 Cadre Technologies Inc.
  10.  
  11. # Start user added include file section
  12. # End user added include file section
  13.  
  14. require "browsuiobj.tcl"
  15.  
  16. Class RuleUiObj : {BrowsUiObj} {
  17.     constructor
  18.     method destructor
  19.     method browserType
  20.     method hasChildren
  21.     method initializeInfo
  22.     attribute roleName
  23.     attribute access
  24.     attribute type
  25. }
  26.  
  27. global RuleUiObj::uiClass
  28. set RuleUiObj::uiClass "AccessRule"
  29.  
  30.  
  31. constructor RuleUiObj {class this name} {
  32.     set this [BrowsUiObj::constructor $class $this $name]
  33.     # Start constructor user section
  34.     # End constructor user section
  35.     return $this
  36. }
  37.  
  38. method RuleUiObj::destructor {this} {
  39.     # Start destructor user section
  40.     # End destructor user section
  41.     $this BrowsUiObj::destructor
  42. }
  43.  
  44. proc RuleUiObj::associations {} {
  45.     return ""
  46. }
  47.  
  48. method RuleUiObj::browserType {this} {
  49.     return [$this type]
  50. }
  51.  
  52. proc RuleUiObj::childTypes {assoc} {
  53.     if {[lsearch -exact "[RuleUiObj::associations]" "$assoc"] == -1} {
  54.     return ""
  55.     }
  56.     return "[BrowserProcs::childTypes $assoc]"
  57. }
  58.  
  59. method RuleUiObj::hasChildren {this} {
  60.     return 0
  61. }
  62.  
  63. proc RuleUiObj::infoProperties {} {
  64.     return [concat \
  65.     [BrowserProcs::infoProperties] \
  66.     {Role Access} \
  67.     ]
  68. }
  69.  
  70. method RuleUiObj::initializeInfo {this dummy} {
  71.     $this BrowsUiObj::initializeInfo $dummy
  72.     $this setInfo Role "[$this roleName]"
  73.     $this setInfo Access "[$this access]"
  74. }
  75.  
  76. # Do not delete this line -- regeneration end marker
  77.  
  78.