Java Doc for XEventHandler.java in  » XML-UI » XUI » net » xoetrope » xui » 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 » XML UI » XUI » net.xoetrope.xui 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   net.xoetrope.xui.XEventHandler

All known Subclasses:   net.xoetrope.builder.editor.XEditorEventHandler,
XEventHandler
public class XEventHandler implements ActionListener,FocusListener,TextListener,ItemListener,KeyListener,MouseListener,MouseMotionListener(Code)

Implements an event handler for XUI. Most of the common events are handled. The class is intended as a mixin for a panel class such as XPage and should not be used directly

Copyright (c) Xoetrope Ltd., 2002-2003

License: see license.txt

$Revision: 1.24 $


Field Summary
protected  Containercontainer
    
protected static  AWTEventcurrentEvt
    
protected  Hashtablehandlers
    
protected static  ComponentmouseDownComponent
    
protected static  booleanmouseEventInvoked
    
protected static  intsuppressFocusEvents
    
protected  XValidationHandlerxValidationHandler
    

Constructor Summary
public  XEventHandler(Container c, XValidationHandler vh)
    

Method Summary
public  voidactionPerformed(ActionEvent e)
    
public  voidaddActionHandler(Component comp, String methodName)
    
public  voidaddFocusHandler(Component comp, String methodName)
    
public  voidaddHandler(Object comp, long eventType, String methodName)
     Adds an event handler.
public  voidaddItemHandler(Component comp, String methodName)
    
public  voidaddKeyHandler(Component comp, String methodName)
    
public  voidaddListener(Object comp, String listenerName, String argType)
     Adds a listener for an event type.
public  voidaddMenuHandler(Object menuItem, String methodName)
    
public  voidaddMouseHandler(Component comp, String methodName)
    
public  voidaddMouseMotionHandler(Component comp, String methodName)
    
public  voidaddTextHandler(Component comp, String methodName)
    
public  MethodfindEvent(Component src, long eventType)
     Lookup an event for a component.
public  voidfocusGained(FocusEvent e)
    
public  voidfocusLost(FocusEvent e)
    
public  AWTEventgetCurrentEvent()
    
protected  voidinvoke(long eventType, AWTEvent evt)
     Invokes an event.
public  booleanisFocusChangeSuppressed()
    
public  voiditemStateChanged(ItemEvent e)
    
public  voidkeyPressed(KeyEvent e)
    
public  voidkeyReleased(KeyEvent e)
    
public  voidkeyTyped(KeyEvent e)
    
public  voidmouseClicked(MouseEvent e)
    
public  voidmouseDragged(MouseEvent e)
    
public  voidmouseEntered(MouseEvent e)
    
public  voidmouseExited(MouseEvent e)
    
public  voidmouseMoved(MouseEvent e)
    
public  voidmousePressed(MouseEvent e)
    
public  voidmouseReleased(MouseEvent e)
    
public  voidsuppressFocusEvents(boolean suppress)
     Used by messageboxes and other dialogs to prevent the display of the dialog causing extra focus events from being fired.
public  voidtextValueChanged(TextEvent e)
    
public  booleanwasMouseClicked()
     A utility method used to determine if the last event corrseponds to a mouse click.
public  booleanwasMouseDoubleClicked()
     A utility method used to determine if the last event corrseponds to a mouse double click.
public  booleanwasMouseRightClicked()
     A utility method used to determine if the last event corrseponds to a mouse right click.

Field Detail
container
protected Container container(Code)



currentEvt
protected static AWTEvent currentEvt(Code)



handlers
protected Hashtable handlers(Code)



mouseDownComponent
protected static Component mouseDownComponent(Code)



mouseEventInvoked
protected static boolean mouseEventInvoked(Code)



suppressFocusEvents
protected static int suppressFocusEvents(Code)



xValidationHandler
protected XValidationHandler xValidationHandler(Code)




Constructor Detail
XEventHandler
public XEventHandler(Container c, XValidationHandler vh)(Code)




Method Detail
actionPerformed
public void actionPerformed(ActionEvent e)(Code)



addActionHandler
public void addActionHandler(Component comp, String methodName)(Code)
Adds a handler for action events
Parameters:
  comp - the component that fires the events
Parameters:
  methodName - the method to be invoked in response to the action event
See Also:   java.awt.event.ActionListener
See Also:   java.awt.event.ActionEvent



addFocusHandler
public void addFocusHandler(Component comp, String methodName)(Code)
Adds a handler for focus events
Parameters:
  comp - the component that fires the events
Parameters:
  methodName - the method to be invoked in response to the focus event
See Also:   java.awt.event.FocusListener
See Also:   java.awt.event.FocusEvent



addHandler
public void addHandler(Object comp, long eventType, String methodName) throws Exception(Code)
Adds an event handler. A specific handler such as the addActionHandler should be used instead of calling this method
Parameters:
  comp - the component that fires the event
Parameters:
  methodName - the method to be invoked in response to the object



addItemHandler
public void addItemHandler(Component comp, String methodName)(Code)
Adds a handler for item events
Parameters:
  comp - the component that fires the events
Parameters:
  methodName - the method to be invoked in response to the item event
See Also:   java.awt.event.ItemListener
See Also:   java.awt.event.ItemEvent



addKeyHandler
public void addKeyHandler(Component comp, String methodName)(Code)
Adds a handler for key events
Parameters:
  comp - the component that fires the events
Parameters:
  methodName - the method to be invoked in response to the key event
See Also:   java.awt.event.KeyListener
See Also:   java.awt.event.KeyEvent



addListener
public void addListener(Object comp, String listenerName, String argType)(Code)
Adds a listener for an event type. This method should not normally be called by an application
Parameters:
  comp - the component that fires events
Parameters:
  listenerName - the name of the listener interface
Parameters:
  argType - the listener arguments



addMenuHandler
public void addMenuHandler(Object menuItem, String methodName)(Code)
Adds a handler for action events
Parameters:
  menuItem - the menu item that fires the events
Parameters:
  methodName - the method to be invoked in response to the action event
See Also:   java.awt.event.ActionListener
See Also:   java.awt.event.ActionEvent



addMouseHandler
public void addMouseHandler(Component comp, String methodName)(Code)
Adds a handler for mouse events
Parameters:
  comp - the component that fires the events
Parameters:
  methodName - the method to be invoked in response to the mouse event
See Also:   java.awt.event.MouseMotionListener
See Also:   java.awt.event.MouseEvent



addMouseMotionHandler
public void addMouseMotionHandler(Component comp, String methodName)(Code)
Adds a handler for mouse motion events
Parameters:
  comp - the component that fires the events
Parameters:
  methodName - the method to be invoked in response to the mouse event
See Also:   java.awt.event.MouseMotionListener
See Also:   java.awt.event.MouseEvent



addTextHandler
public void addTextHandler(Component comp, String methodName)(Code)
Adds a handler for text events
Parameters:
  comp - the component that fires the events
Parameters:
  methodName - the method to be invoked in response to the text event
See Also:   java.awt.event.TextListener
See Also:   java.awt.event.TextEvent



findEvent
public Method findEvent(Component src, long eventType)(Code)
Lookup an event for a component.
Parameters:
  evt - the event object



focusGained
public void focusGained(FocusEvent e)(Code)



focusLost
public void focusLost(FocusEvent e)(Code)



getCurrentEvent
public AWTEvent getCurrentEvent()(Code)
Get the current event the AWTEvent that was last triggered



invoke
protected void invoke(long eventType, AWTEvent evt)(Code)
Invokes an event. Called in response to an event. If a handler has been added for the event it will be invoked.
Parameters:
  evt - the event object



isFocusChangeSuppressed
public boolean isFocusChangeSuppressed()(Code)
Check the focus change status true if the focus change events are being suppressed.



itemStateChanged
public void itemStateChanged(ItemEvent e)(Code)



keyPressed
public void keyPressed(KeyEvent e)(Code)



keyReleased
public void keyReleased(KeyEvent e)(Code)



keyTyped
public void keyTyped(KeyEvent e)(Code)



mouseClicked
public void mouseClicked(MouseEvent e)(Code)



mouseDragged
public void mouseDragged(MouseEvent e)(Code)



mouseEntered
public void mouseEntered(MouseEvent e)(Code)



mouseExited
public void mouseExited(MouseEvent e)(Code)



mouseMoved
public void mouseMoved(MouseEvent e)(Code)



mousePressed
public void mousePressed(MouseEvent e)(Code)



mouseReleased
public void mouseReleased(MouseEvent e)(Code)



suppressFocusEvents
public void suppressFocusEvents(boolean suppress)(Code)
Used by messageboxes and other dialogs to prevent the display of the dialog causing extra focus events from being fired.
Parameters:
  suppress - true to suppress focus events



textValueChanged
public void textValueChanged(TextEvent e)(Code)



wasMouseClicked
public boolean wasMouseClicked()(Code)
A utility method used to determine if the last event corrseponds to a mouse click. The notion of a click is extended by assuming the a mouse press and release within a single component constitutes a click even if not at the same coordinate. A MouseEvent.MOUSE_CLICKED is only triggered when the press and release are at the same location and this is often inadequate for end-user interaction. true if the mouse was clicked



wasMouseDoubleClicked
public boolean wasMouseDoubleClicked()(Code)
A utility method used to determine if the last event corrseponds to a mouse double click. The notion of a click is extended by assuming the a mouse press and release within a single component constitutes a click even if not at the same coordinate. A MouseEvent.MOUSE_CLICKED is only triggered when the press and release are at the same location and this is often inadequate for end-user interaction. true if the mouse was double clicked



wasMouseRightClicked
public boolean wasMouseRightClicked()(Code)
A utility method used to determine if the last event corrseponds to a mouse right click. The notion of a click is extended by assuming the a mouse press and release within a single component constitutes a click even if not at the same coordinate. A MouseEvent.MOUSE_CLICKED is only triggered when the press and release are at the same location and this is often inadequate for end-user interaction. true if the mouse was right clicked



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.