245
|
1 |
"
|
|
2 |
COPYRIGHT (c) 1996 by Claus Gittinger
|
|
3 |
All Rights Reserved
|
|
4 |
|
|
5 |
This software is furnished under a license and may be used
|
|
6 |
only in accordance with the terms of that license and with the
|
|
7 |
inclusion of the above copyright notice. This software may not
|
|
8 |
be provided or otherwise made available to, or used by, any
|
|
9 |
other person. No title to or ownership of the software is
|
|
10 |
hereby transferred.
|
|
11 |
"
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
VisualComponent subclass:#Wrapper
|
|
16 |
instanceVariableNames:'component'
|
|
17 |
classVariableNames:''
|
|
18 |
poolDictionaries:''
|
|
19 |
category:'Graphics-Display Objects'
|
|
20 |
!
|
|
21 |
|
|
22 |
!Wrapper class methodsFor:'documentation'!
|
|
23 |
|
|
24 |
copyright
|
|
25 |
"
|
|
26 |
COPYRIGHT (c) 1996 by Claus Gittinger
|
|
27 |
All Rights Reserved
|
|
28 |
|
|
29 |
This software is furnished under a license and may be used
|
|
30 |
only in accordance with the terms of that license and with the
|
|
31 |
inclusion of the above copyright notice. This software may not
|
|
32 |
be provided or otherwise made available to, or used by, any
|
|
33 |
other person. No title to or ownership of the software is
|
|
34 |
hereby transferred.
|
|
35 |
"
|
|
36 |
|
|
37 |
|
|
38 |
!
|
|
39 |
|
|
40 |
documentation
|
|
41 |
"
|
|
42 |
abstract superclass for all kinds of wrapping components
|
|
43 |
|
|
44 |
[author:]
|
|
45 |
Claus Gittinger
|
|
46 |
"
|
|
47 |
|
|
48 |
! !
|
|
49 |
|
|
50 |
!Wrapper class methodsFor:'instance creation'!
|
|
51 |
|
|
52 |
on:aComponent
|
|
53 |
^ self new component:aComponent
|
|
54 |
|
|
55 |
"Created: 8.5.1996 / 23:20:46 / cg"
|
|
56 |
! !
|
|
57 |
|
|
58 |
!Wrapper methodsFor:'accessing'!
|
|
59 |
|
|
60 |
component
|
247
|
61 |
"return the wrappers component"
|
|
62 |
|
245
|
63 |
^ component
|
|
64 |
|
|
65 |
"Created: 8.5.1996 / 23:17:30 / cg"
|
247
|
66 |
"Modified: 9.5.1996 / 00:19:58 / cg"
|
245
|
67 |
!
|
|
68 |
|
|
69 |
component:someComponent
|
247
|
70 |
"set the wrappers component"
|
|
71 |
|
245
|
72 |
component := someComponent
|
|
73 |
|
|
74 |
"Created: 8.5.1996 / 23:17:46 / cg"
|
247
|
75 |
"Modified: 9.5.1996 / 00:20:03 / cg"
|
245
|
76 |
! !
|
|
77 |
|
|
78 |
!Wrapper methodsFor:'accessing - bounds'!
|
|
79 |
|
|
80 |
bounds
|
246
|
81 |
"return my bounds as the components bounds"
|
|
82 |
|
245
|
83 |
^ component bounds
|
|
84 |
|
|
85 |
"Created: 8.5.1996 / 23:18:03 / cg"
|
246
|
86 |
"Modified: 9.5.1996 / 00:10:25 / cg"
|
245
|
87 |
!
|
|
88 |
|
|
89 |
bounds:newBounds
|
246
|
90 |
"set my bounds - forwarded to the wrapped object"
|
|
91 |
|
245
|
92 |
component bounds:newBounds
|
|
93 |
|
|
94 |
"Created: 8.5.1996 / 23:18:12 / cg"
|
246
|
95 |
"Modified: 9.5.1996 / 00:10:49 / cg"
|
245
|
96 |
!
|
|
97 |
|
|
98 |
preferredBounds
|
246
|
99 |
"return my preferredBounds as the components preferredBounds"
|
|
100 |
|
245
|
101 |
^ component preferredBounds
|
|
102 |
|
|
103 |
"Created: 8.5.1996 / 23:18:53 / cg"
|
246
|
104 |
"Modified: 9.5.1996 / 00:10:32 / cg"
|
245
|
105 |
! !
|
|
106 |
|
|
107 |
!Wrapper methodsFor:'displaying'!
|
|
108 |
|
|
109 |
displayOn:aGC
|
246
|
110 |
"display myself - forwarded to the wrapped object"
|
|
111 |
|
245
|
112 |
component displayOn:aGC
|
|
113 |
|
|
114 |
"Created: 8.5.1996 / 23:19:24 / cg"
|
246
|
115 |
"Modified: 9.5.1996 / 00:10:59 / cg"
|
245
|
116 |
! !
|
|
117 |
|
|
118 |
!Wrapper class methodsFor:'documentation'!
|
|
119 |
|
|
120 |
version
|
247
|
121 |
^ '$Header: /cvs/stx/stx/libview2/Wrapper.st,v 1.3 1996-05-08 22:25:44 cg Exp $'
|
245
|
122 |
! !
|