01: /*
02: * Copyright Javelin Software, All rights reserved.
03: */
04:
05: package com.javelin.swinglets.event;
06:
07: import java.awt.*;
08: import java.awt.event.*;
09:
10: /**
11: * ScriptedMouseMotionListener is used to determine what happens when
12: * a Scripted Event happens, such as a JavaScript event on the client
13: * browser.
14: *
15: * @author Robin Sharp
16: */
17:
18: public class ScriptedMouseMotionListener extends ScriptedListener
19: implements MouseMotionListener {
20: public final static String MOUSE_MOVED = "onmousemove";
21: public final static String MOUSE_DRAGGED = "ondragged";
22:
23: /**
24: * Construct a listener with the script content type.
25: */
26: public ScriptedMouseMotionListener(String contentType) {
27: super (contentType);
28: }
29:
30: /**
31: * Get the mouse Dragged Script.
32: */
33: public Object getMouseDraggedScript() {
34: return get(MOUSE_DRAGGED);
35: }
36:
37: /**
38: * Get the mouse Dragged Script.
39: */
40: public ScriptedMouseMotionListener setMouseDraggedScript(
41: Object mouseDraggedScript) {
42: put(MOUSE_DRAGGED, mouseDraggedScript);
43: return this ;
44: }
45:
46: /**
47: * Get the mouse Moved Script.
48: */
49: public Object getMouseMovedScript() {
50: return get(MOUSE_MOVED);
51: }
52:
53: /**
54: * Get the mouse Moved Script.
55: */
56: public ScriptedMouseMotionListener setMouseMovedScript(
57: Object mouseMovedScript) {
58: put(MOUSE_MOVED, mouseMovedScript);
59: return this ;
60: }
61:
62: // STUB EVENT HANDLERS /////////////////////////////////////////////////////
63:
64: public void mouseDragged(MouseEvent e) {
65: };
66:
67: public void mouseMoved(MouseEvent e) {
68: };
69:
70: // PRIVATE /////////////////////////////////////////////////////////////////
71:
72: }
|