blob: e49b736f43c3601225c08f8a1b32f079bbe76f88 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
package binnie.craftgui.events;
import binnie.craftgui.core.IWidget;
public abstract class EventKey
extends Event
{
char character;
int key;
public EventKey(IWidget origin, char character, int key)
{
super(origin);
this.character = character;
this.key = key;
}
public char getCharacter()
{
return this.character;
}
public int getKey()
{
return this.key;
}
public static class Down
extends EventKey
{
public Down(IWidget origin, char character, int key)
{
super(character, key);
}
public static abstract class Handler
extends EventHandler<EventKey.Down>
{
public Handler()
{
super();
}
}
}
public static class Up
extends EventKey
{
public Up(IWidget origin, char character, int key)
{
super(character, key);
}
public static abstract class Handler
extends EventHandler<EventKey.Up>
{
public Handler()
{
super();
}
}
}
}
|