home *** CD-ROM | disk | FTP | other *** search
- #---------------------------------------------------------------------------
- #
- # (c) Cayenne Software Inc. 1997
- #
- # File: @(#)fastviewob.tcl /main/titanic/2
- # Author: <generated>
- # Description:
- #---------------------------------------------------------------------------
- # SccsId = @(#)fastviewob.tcl /main/titanic/2 3 Jun 1997 Copyright 1997 Cayenne Software Inc.
-
- # Start user added include file section
- require custedarea.tcl
- # End user added include file section
-
-
- Class FastViewObject : {CustViewSpec} {
- method destructor
- constructor
- method writeObject
- method name
- attribute objSpec
- attribute scope
- attribute readOnly
- }
-
- method FastViewObject::destructor {this} {
- # Start destructor user section
- # End destructor user section
- }
-
- constructor FastViewObject {class this name spec} {
- set this [CustViewSpec::constructor $class $this $name]
- # Start constructor user section
- # extract level 1
- while {![lempty $spec]} {
- set key [lvarpop spec]
- $this $key [lvarpop spec]
- }
-
- # extract level 1
- set spec [$this objSpec]
- while {![lempty $spec]} {
- set key [lvarpop spec]
- $this $key [lvarpop spec]
- }
- # End constructor user section
- return $this
- }
-
- method FastViewObject::writeObject {this fid} {
-
- set list ""
- lappend list name [$this viewName]
- lappend list repositoryType [$this repositoryType]
- if { [$this browserType] != "" } {
- lappend list browserType [$this browserType]
- }
-
- set spec [list associations [$this associations]]
- lappend spec objectTypes [$this objectTypes]
- lappend spec properties [$this properties]
- lappend spec toolBarEntries [$this toolBarEntries]
- lappend spec sortScript [$this sortScript]
-
- # Don't use lappend here to prevent confusion of indentList
- set list "$list objSpec [CustEdArea::indentList $spec 1 1]"
-
- puts $fid "registerObject [CustEdArea::indentList $list 0 1]"
- }
-
- method FastViewObject::name {this args} {
- if {$args == ""} {
- return [$this viewName]
- } else {
- $this viewName $args
- }
- }
-
- # Do not delete this line -- regeneration end marker
-
-