01: /*
02: * Copyright 2000,2005 wingS development team.
03: *
04: * This file is part of wingS (http://wingsframework.org).
05: *
06: * wingS is free software; you can redistribute it and/or modify
07: * it under the terms of the GNU Lesser General Public License
08: * as published by the Free Software Foundation; either version 2.1
09: * of the License, or (at your option) any later version.
10: *
11: * Please see COPYING for the complete licence.
12: */
13: package org.wings.script;
14:
15: /**
16: * Some widely implemented JavaScript events.
17: *
18: * @author Holger Engels
19: */
20: public interface JavaScriptEvent {
21:
22: // STANDARD JAVASCRIPT EVENTS
23:
24: public static final String ON_BLUR = "onblur";
25: public static final String ON_CLICK = "onclick";
26: public static final String ON_DBLCLICK = "ondblclick";
27: public static final String ON_CHANGE = "onchange";
28: public static final String ON_FOCUS = "onfocus";
29: public static final String ON_KEY_DOWN = "onkeydown";
30: public static final String ON_KEY_PRESS = "onkeypress";
31: public static final String ON_KEY_UP = "onkeyup";
32: public static final String ON_LOAD = "onload";
33: public static final String ON_MOUSE_DOWN = "onmousedown";
34: public static final String ON_MOUSE_MOVE = "onmousemove";
35: public static final String ON_MOUSE_OUT = "onmouseout";
36: public static final String ON_MOUSE_OVER = "onmouseover";
37: public static final String ON_MOUSE_UP = "onmouseup";
38: public static final String ON_RESET = "onreset";
39: public static final String ON_RESIZE = "onresize";
40: public static final String ON_SCROLL = "onscroll";
41: public static final String ON_SELECT = "onselect";
42: public static final String ON_SUBMIT = "onsubmit";
43: public static final String ON_UNLOAD = "onunload";
44:
45: // PROPRIETARY JAVASCRIPT EVENTS
46:
47: /**
48: * special event of IE that fires when the object is set as the active element
49: * see: http://msdn.microsoft.com/workshop/author/dhtml/reference/events/onactivate.asp
50: */
51: public static final String ON_ACTIVATE = "onactivate";
52: /**
53: * special YUI library DOM event, see http://developer.yahoo.com/yui/event/#onavailable
54: * onAvailable lets you define a function that will execute as soon as an element is
55: * detected in the DOM. The intent is to reduce the occurrence of timing issues when
56: * rendering script and html inline. It is not meant to be used to define handlers for
57: * elements that may eventually be in the document; it is meant to be used to detect
58: * elements you are in the process of loading.
59: */
60: public static final String ON_AVAILABLE = "onavailable";
61: }
|