8359
|
1 |
"{ Encoding: utf8 }"
|
|
2 |
|
5274
|
3 |
"
|
|
4 |
COPYRIGHT (c) 2009 by eXept Software AG
|
|
5 |
All Rights Reserved
|
|
6 |
|
|
7 |
This software is furnished under a license and may be used
|
|
8 |
only in accordance with the terms of that license and with the
|
|
9 |
inclusion of the above copyright notice. This software may not
|
|
10 |
be provided or otherwise made available to, or used by, any
|
|
11 |
other person. No title to or ownership of the software is
|
|
12 |
hereby transferred.
|
|
13 |
"
|
|
14 |
"{ Package: 'stx:libview' }"
|
|
15 |
|
8215
|
16 |
"{ NameSpace: Smalltalk }"
|
|
17 |
|
5274
|
18 |
MessageSend subclass:#Event
|
|
19 |
instanceVariableNames:'timeStamp'
|
|
20 |
classVariableNames:''
|
|
21 |
poolDictionaries:''
|
|
22 |
category:'Interface-Support-UI'
|
|
23 |
!
|
|
24 |
|
|
25 |
!Event class methodsFor:'documentation'!
|
|
26 |
|
|
27 |
copyright
|
|
28 |
"
|
|
29 |
COPYRIGHT (c) 2009 by eXept Software AG
|
|
30 |
All Rights Reserved
|
|
31 |
|
|
32 |
This software is furnished under a license and may be used
|
|
33 |
only in accordance with the terms of that license and with the
|
|
34 |
inclusion of the above copyright notice. This software may not
|
|
35 |
be provided or otherwise made available to, or used by, any
|
|
36 |
other person. No title to or ownership of the software is
|
|
37 |
hereby transferred.
|
|
38 |
"
|
|
39 |
!
|
|
40 |
|
|
41 |
documentation
|
|
42 |
"
|
|
43 |
An abstract class that has been inserted recently into the long-time-existing
|
|
44 |
WindowEvent hierarchy for more VW compatibility. Especially to provide a home
|
8215
|
45 |
for subclasses of UI.Event.
|
5274
|
46 |
|
|
47 |
The real code has been and still is in WindowEvent.
|
|
48 |
|
|
49 |
[author:]
|
|
50 |
Claus Gittinger
|
|
51 |
|
|
52 |
[see also:]
|
|
53 |
WindowEvent MessageSend WindowGroup WindowSensor
|
|
54 |
DeviceWorkstation View
|
|
55 |
KeyboardMap KeyboardForwarder EventListener
|
|
56 |
|
|
57 |
"
|
|
58 |
! !
|
|
59 |
|
|
60 |
!Event methodsFor:'accessing'!
|
|
61 |
|
8359
|
62 |
ensureTimeStamped
|
|
63 |
"ensure that I have a timestamp;
|
|
64 |
If I have none (yet), add one"
|
|
65 |
|
|
66 |
timeStamp isNil ifTrue:[
|
|
67 |
timeStamp := Timestamp now.
|
|
68 |
].
|
|
69 |
!
|
|
70 |
|
5274
|
71 |
target
|
|
72 |
"return the target, for which the event is for"
|
|
73 |
|
|
74 |
^ receiver
|
|
75 |
!
|
|
76 |
|
|
77 |
target:anObject
|
|
78 |
"set the target, for which the event is for"
|
|
79 |
|
|
80 |
receiver := anObject
|
|
81 |
!
|
|
82 |
|
|
83 |
timeStamp
|
|
84 |
^ timeStamp
|
|
85 |
!
|
|
86 |
|
|
87 |
timeStamp:aTimestamp
|
|
88 |
timeStamp := aTimestamp.
|
|
89 |
! !
|
|
90 |
|
|
91 |
!Event class methodsFor:'documentation'!
|
|
92 |
|
|
93 |
version
|
8215
|
94 |
^ '$Header$'
|
5274
|
95 |
! !
|
8215
|
96 |
|