blob: 71ea54fffa5c22d752401cbd83082720df8284b3 (
plain) (
blame)
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
|
package NET.worlds.scape;
import NET.worlds.console.BBWObjClickedCommand;
import NET.worlds.console.BlackBox;
public class MouseDownEvent extends MouseButtonEvent {
public MouseDownEvent(int time, WObject target, char key, int x, int y) {
super(time, target, key, x, y);
}
@Override
public boolean deliver(Object o) {
if (o instanceof MouseDownHandler) {
BlackBox.getInstance().submitEvent(new BBWObjClickedCommand(((SuperRoot)o).getName(), this.key, this.x, this.y));
if (((MouseDownHandler)o).handle(this)) {
return true;
}
}
return super.deliver(o);
}
@Override
public String toString() {
return "MouseDown" + super.toString();
}
}
|