752
|
1 |
"
|
|
2 |
COPYRIGHT (c) 1999 by eXept Software AG
|
|
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 |
"{ Package: 'stx:libjava' }"
|
|
13 |
|
|
14 |
PopUpView subclass:#JavaPopUpView
|
|
15 |
instanceVariableNames:'eventReceiver updateRegions javaPeer'
|
|
16 |
classVariableNames:''
|
|
17 |
poolDictionaries:''
|
|
18 |
category:'Languages-Java-Views-Support'
|
|
19 |
!
|
|
20 |
|
|
21 |
!JavaPopUpView class methodsFor:'documentation'!
|
|
22 |
|
|
23 |
copyright
|
|
24 |
"
|
|
25 |
COPYRIGHT (c) 1999 by eXept Software AG
|
|
26 |
All Rights Reserved
|
|
27 |
|
|
28 |
This software is furnished under a license and may be used
|
|
29 |
only in accordance with the terms of that license and with the
|
|
30 |
inclusion of the above copyright notice. This software may not
|
|
31 |
be provided or otherwise made available to, or used by, any
|
|
32 |
other person. No title to or ownership of the software is
|
|
33 |
hereby transferred.
|
|
34 |
"
|
|
35 |
|
|
36 |
!
|
|
37 |
|
|
38 |
documentation
|
|
39 |
"
|
|
40 |
[Author:]
|
|
41 |
Claus Gittinger
|
|
42 |
"
|
|
43 |
|
|
44 |
|
|
45 |
! !
|
|
46 |
|
|
47 |
!JavaPopUpView methodsFor:'accessing'!
|
|
48 |
|
|
49 |
delegate:anObject
|
|
50 |
"/ super delegate:anObject.
|
|
51 |
eventReceiver := anObject.
|
|
52 |
|
|
53 |
"Modified: / 2.12.1998 / 23:57:57 / cg"
|
|
54 |
"Created: / 4.12.1998 / 14:09:12 / cg"
|
|
55 |
!
|
|
56 |
|
|
57 |
getNextUpdateRectangle
|
|
58 |
|r|
|
|
59 |
|
|
60 |
updateRegions size == 0 ifTrue:[^ nil].
|
|
61 |
r := updateRegions removeFirst.
|
|
62 |
updateRegions size == 0 ifTrue:[updateRegions := nil].
|
|
63 |
^ r
|
|
64 |
|
|
65 |
"Created: / 4.12.1998 / 14:09:12 / cg"
|
|
66 |
!
|
|
67 |
|
|
68 |
javaPeer
|
|
69 |
"for debugging support - here is a handle to the corresponding
|
|
70 |
javaPeer"
|
|
71 |
|
|
72 |
^ javaPeer
|
|
73 |
|
|
74 |
"Created: / 4.12.1998 / 14:09:13 / cg"
|
|
75 |
!
|
|
76 |
|
|
77 |
javaPeer:aJavaView
|
|
78 |
"for debugging support - here is a handle to the corresponding
|
|
79 |
javaPeer"
|
|
80 |
|
|
81 |
javaPeer := aJavaView
|
|
82 |
|
|
83 |
"Created: / 4.12.1998 / 14:09:13 / cg"
|
|
84 |
! !
|
|
85 |
|
|
86 |
!JavaPopUpView methodsFor:'defaults'!
|
|
87 |
|
|
88 |
defaultShadow
|
|
89 |
^ false
|
|
90 |
|
|
91 |
"Created: / 4.12.1998 / 15:12:13 / cg"
|
|
92 |
! !
|
|
93 |
|
|
94 |
!JavaPopUpView methodsFor:'event handling'!
|
|
95 |
|
|
96 |
exposeX:x y:y width:w height:h
|
|
97 |
|ev rect|
|
|
98 |
|
|
99 |
rect := Rectangle left:x top:y width:w height:h.
|
|
100 |
|
|
101 |
"/ 'JavaView expose' printCR.
|
|
102 |
|
|
103 |
updateRegions isNil ifTrue:[
|
|
104 |
updateRegions := OrderedCollection new.
|
|
105 |
].
|
|
106 |
updateRegions add:rect.
|
|
107 |
eventReceiver notNil ifTrue:[
|
|
108 |
ev := WindowEvent
|
|
109 |
damageFor:self
|
|
110 |
rectangle:rect.
|
|
111 |
eventReceiver processEvent:ev.
|
|
112 |
].
|
|
113 |
"/ super exposeX:x y:y width:w height:h
|
|
114 |
|
|
115 |
"Modified: / 19.10.1998 / 23:10:15 / cg"
|
|
116 |
"Created: / 4.12.1998 / 14:09:13 / cg"
|
|
117 |
! !
|
|
118 |
|
|
119 |
!JavaPopUpView methodsFor:'initialization'!
|
|
120 |
|
|
121 |
initialize
|
|
122 |
super initialize.
|
|
123 |
|
|
124 |
self enableMotionEvents.
|
|
125 |
|
|
126 |
"Modified: / 2.12.1998 / 23:32:30 / cg"
|
|
127 |
"Created: / 4.12.1998 / 14:09:13 / cg"
|
|
128 |
! !
|
|
129 |
|
|
130 |
!JavaPopUpView methodsFor:'queries'!
|
|
131 |
|
|
132 |
isJavaView
|
|
133 |
^ true
|
|
134 |
|
|
135 |
"Created: / 4.12.1998 / 14:09:40 / cg"
|
|
136 |
! !
|
|
137 |
|
|
138 |
!JavaPopUpView class methodsFor:'documentation'!
|
|
139 |
|
|
140 |
version
|
|
141 |
^ '$Id$'
|
|
142 |
!
|
|
143 |
|
|
144 |
version_SVN
|
|
145 |
^ '$Id$'
|
|
146 |
! !
|