Source Code Cross Referenced for EventTarget.java in  » Web-Server » Rimfaxe-Web-Server » org » w3c » dom » events » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Web Server » Rimfaxe Web Server » org.w3c.dom.events 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


01:        /*
02:         * Copyright (c) 2000 World Wide Web Consortium,
03:         * (Massachusetts Institute of Technology, Institut National de
04:         * Recherche en Informatique et en Automatique, Keio University). All
05:         * Rights Reserved. This program is distributed under the W3C's Software
06:         * Intellectual Property License. This program is distributed in the
07:         * hope that it will be useful, but WITHOUT ANY WARRANTY; without even
08:         * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
09:         * PURPOSE.
10:         * See W3C License http://www.w3.org/Consortium/Legal/ for more details.
11:         */
12:
13:        package org.w3c.dom.events;
14:
15:        /**
16:         *  The <code>EventTarget</code> interface is implemented by all 
17:         * <code>Nodes</code> in an implementation which supports the DOM Event 
18:         * Model. Therefore, this interface can be obtained by using 
19:         * binding-specific casting methods on an instance of the <code>Node</code> 
20:         * interface. The interface allows registration and removal of 
21:         * <code>EventListeners</code> on an <code>EventTarget</code> and dispatch 
22:         * of events to that <code>EventTarget</code>.
23:         * <p>See also the <a href='http://www.w3.org/TR/2000/REC-DOM-Level-2-Events-20001113'>Document Object Model (DOM) Level 2 Events Specification</a>.
24:         * @since DOM Level 2
25:         */
26:        public interface EventTarget {
27:            /**
28:             * This method allows the registration of event listeners on the event 
29:             * target. If an <code>EventListener</code> is added to an 
30:             * <code>EventTarget</code> while it is processing an event, it will not 
31:             * be triggered by the current actions but may be triggered during a 
32:             * later stage of event flow, such as the bubbling phase. 
33:             * <br> If multiple identical <code>EventListener</code>s are registered 
34:             * on the same <code>EventTarget</code> with the same parameters the 
35:             * duplicate instances are discarded. They do not cause the 
36:             * <code>EventListener</code> to be called twice and since they are 
37:             * discarded they do not need to be removed with the 
38:             * <code>removeEventListener</code> method. 
39:             * @param type The event type for which the user is registering
40:             * @param listener The <code>listener</code> parameter takes an interface 
41:             *   implemented by the user which contains the methods to be called 
42:             *   when the event occurs.
43:             * @param useCapture If true, <code>useCapture</code> indicates that the 
44:             *   user wishes to initiate capture. After initiating capture, all 
45:             *   events of the specified type will be dispatched to the registered 
46:             *   <code>EventListener</code> before being dispatched to any 
47:             *   <code>EventTargets</code> beneath them in the tree. Events which 
48:             *   are bubbling upward through the tree will not trigger an 
49:             *   <code>EventListener</code> designated to use capture.
50:             */
51:            public void addEventListener(String type, EventListener listener,
52:                    boolean useCapture);
53:
54:            /**
55:             * This method allows the removal of event listeners from the event 
56:             * target. If an <code>EventListener</code> is removed from an 
57:             * <code>EventTarget</code> while it is processing an event, it will not 
58:             * be triggered by the current actions. <code>EventListener</code>s can 
59:             * never be invoked after being removed.
60:             * <br>Calling <code>removeEventListener</code> with arguments which do 
61:             * not identify any currently registered <code>EventListener</code> on 
62:             * the <code>EventTarget</code> has no effect.
63:             * @param type Specifies the event type of the <code>EventListener</code> 
64:             *   being removed. 
65:             * @param listener The <code>EventListener</code> parameter indicates the 
66:             *   <code>EventListener </code> to be removed. 
67:             * @param useCapture Specifies whether the <code>EventListener</code> 
68:             *   being removed was registered as a capturing listener or not. If a 
69:             *   listener was registered twice, one with capture and one without, 
70:             *   each must be removed separately. Removal of a capturing listener 
71:             *   does not affect a non-capturing version of the same listener, and 
72:             *   vice versa. 
73:             */
74:            public void removeEventListener(String type,
75:                    EventListener listener, boolean useCapture);
76:
77:            /**
78:             * This method allows the dispatch of events into the implementations 
79:             * event model. Events dispatched in this manner will have the same 
80:             * capturing and bubbling behavior as events dispatched directly by the 
81:             * implementation. The target of the event is the 
82:             * <code> EventTarget</code> on which <code>dispatchEvent</code> is 
83:             * called. 
84:             * @param evt Specifies the event type, behavior, and contextual 
85:             *   information to be used in processing the event.
86:             * @return The return value of <code>dispatchEvent</code> indicates 
87:             *   whether any of the listeners which handled the event called 
88:             *   <code>preventDefault</code>. If <code>preventDefault</code> was 
89:             *   called the value is false, else the value is true. 
90:             * @exception EventException
91:             *   UNSPECIFIED_EVENT_TYPE_ERR: Raised if the <code>Event</code>'s type 
92:             *   was not specified by initializing the event before 
93:             *   <code>dispatchEvent</code> was called. Specification of the 
94:             *   <code>Event</code>'s type as <code>null</code> or an empty string 
95:             *   will also trigger this exception.
96:             */
97:            public boolean dispatchEvent(Event evt) throws EventException;
98:
99:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.