Java Doc for BaseEvent.java in  » Ajax » MyGWT » net » mygwt » ui » client » event » 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 » Ajax » MyGWT » net.mygwt.ui.client.event 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   net.mygwt.ui.client.event.BaseEvent

All known Subclasses:   net.mygwt.ui.client.data.LoadEvent,
BaseEvent
public class BaseEvent (Code)
Instances of this class provide a description of a particular MyGWT event.

Note: For a given event, only the fields which are appropriate will be filled in. The appropriate fields for each event are documented by the event source.



Field Summary
public  booleandoit
     Depending on the event, a flag indicating whether the operation should be allowed.
public  Eventevent
     The dom event.
public  intheight
     The height.
public  intindex
     The index.
public  Widgetitem
     The item that the event occurred in.
public  Component[]items
     List of widgets.
public  Stringname
     The name.
public  ObjectoldValue
     The old value.
public  introwIndex
     The row index.
public  intsize
     The size.
public  Objectsource
     The source object.
public  inttype
     The event type.
public  Objectvalue
     The value.
public  Widgetwidget
     The widget that issued the event.
public  intwidth
     The width.
public  intx
    
public  inty
    

Constructor Summary
public  BaseEvent()
     Creates a new base event.
public  BaseEvent(Widget widget)
     Creates a new base event.
public  BaseEvent(Widget widget, Widget item)
     Creates a new base event.

Method Summary
public  voidcancelBubble()
     Cancels bubbling for the given event.
public  intgetClientX()
     Returns the event's x coordinate.
public  intgetClientY()
     Returns the event's y coordinate.
public  intgetEventType()
     Returns the dom event type.
public  intgetKeyCode()
     Returns the key code associated with this event.
public  ElementgetTarget()
     Returns the event's target element.
public  booleanhasModifier()
     Returns true if the control, alt, shift, or meta key is pressed.
public  booleanisControlKey()
     Returns true if the control key (or meta key) is pressed.
public  booleanisRightClick()
     Returns true if the event is a right click.
public  booleanisShiftKey()
     Returns true if the shift key is pressed.
public  voidpreventDefault()
     Prevents the browser from taking its default action for the given event.
public  voidstopEvent()
     Stops the event (preventDefault and cancelBubble).
public  booleanwithin(Element element)
     Returns true if the target of this event equals or is a child of the given element.

Field Detail
doit
public boolean doit(Code)
Depending on the event, a flag indicating whether the operation should be allowed.



event
public Event event(Code)
The dom event.



height
public int height(Code)
The height.



index
public int index(Code)
The index.



item
public Widget item(Code)
The item that the event occurred in.



items
public Component[] items(Code)
List of widgets.



name
public String name(Code)
The name.



oldValue
public Object oldValue(Code)
The old value.



rowIndex
public int rowIndex(Code)
The row index.



size
public int size(Code)
The size.



source
public Object source(Code)
The source object.



type
public int type(Code)
The event type.



value
public Object value(Code)
The value.



widget
public Widget widget(Code)
The widget that issued the event.



width
public int width(Code)
The width.



x
public int x(Code)
X coordinate



y
public int y(Code)
Y coordinate




Constructor Detail
BaseEvent
public BaseEvent()(Code)
Creates a new base event.



BaseEvent
public BaseEvent(Widget widget)(Code)
Creates a new base event.
Parameters:
  widget - the source widget



BaseEvent
public BaseEvent(Widget widget, Widget item)(Code)
Creates a new base event.
Parameters:
  widget - the source widget
Parameters:
  item - the item widget




Method Detail
cancelBubble
public void cancelBubble()(Code)
Cancels bubbling for the given event. This will stop the event from being propagated to parent elements.



getClientX
public int getClientX()(Code)
Returns the event's x coordinate. the x coordinate or -1 if no dom event.



getClientY
public int getClientY()(Code)
Returns the event's y coordinate. the y coordinate or -1 if no dom event.



getEventType
public int getEventType()(Code)
Returns the dom event type. the event type



getKeyCode
public int getKeyCode()(Code)
Returns the key code associated with this event. the key code



getTarget
public Element getTarget()(Code)
Returns the event's target element. the target element or nulol if no dom event.



hasModifier
public boolean hasModifier()(Code)
Returns true if the control, alt, shift, or meta key is pressed. the modifier state



isControlKey
public boolean isControlKey()(Code)
Returns true if the control key (or meta key) is pressed. the control key state



isRightClick
public boolean isRightClick()(Code)
Returns true if the event is a right click. the right click state



isShiftKey
public boolean isShiftKey()(Code)
Returns true if the shift key is pressed. the shift key state



preventDefault
public void preventDefault()(Code)
Prevents the browser from taking its default action for the given event.



stopEvent
public void stopEvent()(Code)
Stops the event (preventDefault and cancelBubble).



within
public boolean within(Element element)(Code)
Returns true if the target of this event equals or is a child of the given element.
Parameters:
  element - the element the within state



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.