home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 1998 October
/
PCWorld_1998-10_cd.bin
/
software
/
prehled
/
komix
/
DATA.Z
/
lockbrtabl.tcl
< prev
next >
Wrap
Text File
|
1996-10-23
|
2KB
|
64 lines
#---------------------------------------------------------------------------
#
# (c) Cayenne Software Inc. 1996
#
# File: @(#)lockbrtabl.tcl /main/titanic/2
# Author: <generated>
# Description:
#---------------------------------------------------------------------------
# SccsId = @(#)lockbrtabl.tcl /main/titanic/2 23 Oct 1996 Copyright 1996 Cayenne Software Inc.
# Start user added include file section
# End user added include file section
require "browstable.tcl"
Class LockBrTable : {BrowsTable} {
constructor
method destructor
method objectDropped
method clientDropped
attribute droppedObject
attribute droppedClient
attribute view
}
constructor LockBrTable {class this name} {
set this [BrowsTable::constructor $class $this $name]
# Start constructor user section
$this config \
-mode DETAIL \
-selectionPolicy EXTENDED \
-droppedObject "\[$this view] fileNew" \
-droppedClient "\[$this view] fileNew \"\"" \
-destinationSet {
BROWSUIOBJ objectDropped
CSCLIENTNODE clientDropped
}
# End constructor user section
return $this
}
method LockBrTable::destructor {this} {
# Start destructor user section
# End destructor user section
$this BrowsTable::destructor
}
method LockBrTable::objectDropped {this context srcIsDst after before} {
set obj [lindex $context 0]
set last [llength $obj]
set objId [lindex $obj [expr {$last-3}]]
eval "[$this droppedObject] $objId"
}
method LockBrTable::clientDropped {this context srcIsDst after before} {
eval "[$this droppedClient] [list $context]"
}
# Do not delete this line -- regeneration end marker