"
COPYRIGHT (c) 1996 by Claus Gittinger
All Rights Reserved
This software is furnished under a license and may be used
only in accordance with the terms of that license and with the
inclusion of the above copyright notice. This software may not
be provided or otherwise made available to, or used by, any
other person. No title to or ownership of the software is
hereby transferred.
"
VisualComponent subclass:#Wrapper
instanceVariableNames:'component'
classVariableNames:''
poolDictionaries:''
category:'Graphics-Display Objects'
!
!Wrapper class methodsFor:'documentation'!
copyright
"
COPYRIGHT (c) 1996 by Claus Gittinger
All Rights Reserved
This software is furnished under a license and may be used
only in accordance with the terms of that license and with the
inclusion of the above copyright notice. This software may not
be provided or otherwise made available to, or used by, any
other person. No title to or ownership of the software is
hereby transferred.
"
!
documentation
"
abstract superclass for all kinds of wrapping components
[author:]
Claus Gittinger
"
! !
!Wrapper class methodsFor:'instance creation'!
on:aComponent
^ self new component:aComponent
"Created: 8.5.1996 / 23:20:46 / cg"
! !
!Wrapper methodsFor:'accessing'!
component
"return the wrappers component"
^ component
"Created: 8.5.1996 / 23:17:30 / cg"
"Modified: 9.5.1996 / 00:19:58 / cg"
!
component:someComponent
"set the wrappers component"
component := someComponent
"Created: 8.5.1996 / 23:17:46 / cg"
"Modified: 9.5.1996 / 00:20:03 / cg"
! !
!Wrapper methodsFor:'accessing - bounds'!
bounds
"return my bounds as the components bounds"
^ component bounds
"Created: 8.5.1996 / 23:18:03 / cg"
"Modified: 9.5.1996 / 00:10:25 / cg"
!
bounds:newBounds
"set my bounds - forwarded to the wrapped object"
component bounds:newBounds
"Created: 8.5.1996 / 23:18:12 / cg"
"Modified: 9.5.1996 / 00:10:49 / cg"
!
preferredBounds
"return my preferredBounds as the components preferredBounds"
^ component preferredBounds
"Created: 8.5.1996 / 23:18:53 / cg"
"Modified: 9.5.1996 / 00:10:32 / cg"
! !
!Wrapper methodsFor:'displaying'!
displayOn:aGC
"display myself - forwarded to the wrapped object"
component displayOn:aGC
"Created: 8.5.1996 / 23:19:24 / cg"
"Modified: 9.5.1996 / 00:10:59 / cg"
! !
!Wrapper class methodsFor:'documentation'!
version
^ '$Header: /cvs/stx/stx/libview2/Wrapper.st,v 1.3 1996-05-08 22:25:44 cg Exp $'
! !