home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 2000 December
/
PCWorld_2000-12_cd.bin
/
Komunikace
/
Comanche
/
xul
/
xuiString.tcl
< prev
next >
Wrap
Text File
|
2000-11-02
|
1KB
|
52 lines
class xuiString {
inherit xuiObject
variable value {}
variable default {}
variable width 20
constructor {} {
setXuiClass string
}
method setValue {newValue} {
set value $newValue}
method getValue {} {return $value}
method setDefault {newDefault} {set default $newDefault}
method getDefault {} {return $default}
method setWidth {newWidth} {set width $newWidth}
method getWidth {} {return $width}
method getText {} { return $value }
method clone
method copyClone { clone }
method reset {}
}
body xuiString::reset {} {
set value $default
}
body xuiString::clone {{parentName {::#auto}}} {
set clone [xuiString $parentName.$name]
copyClone $clone
return $clone
}
body xuiString::copyClone { clone } {
xuiObject::copyClone $clone
$clone setValue $value
$clone setDefault $default
$clone setWidth $width
$clone setXuiClass $xuiClass
}