org.nuiton.guix
Class GwtEventHandler

java.lang.Object
  extended by org.nuiton.guix.GwtEventHandler

public class GwtEventHandler
extends java.lang.Object

Handles the events of GWT

Author:
kmorin

Constructor Summary
GwtEventHandler()
           
 
Method Summary
 boolean addEvent(java.lang.Class clazz, java.lang.String name, java.lang.String value)
          Add an event to the map
 java.lang.String generate(java.lang.String object)
          Generates the code for all the events applied to an object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GwtEventHandler

public GwtEventHandler()
Method Detail

addEvent

public boolean addEvent(java.lang.Class clazz,
                        java.lang.String name,
                        java.lang.String value)
                 throws java.beans.IntrospectionException
Add an event to the map

Parameters:
clazz - the class of the object...
name - name of the event
value - code to execute when the events occurs
Returns:
true if the name corresponds with an event
Throws:
java.beans.IntrospectionException - if the JVM failed while getting the bean infos of the class

generate

public java.lang.String generate(java.lang.String object)
Generates the code for all the events applied to an object

Parameters:
object - the objects to add the listeners
Returns:
the generated code


Copyright © 2009 CodeLutin. All Rights Reserved.