org.nuiton.guix
Class SwingEventHandler

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

public class SwingEventHandler
extends java.lang.Object

Handles the Swing events

Author:
kmorin

Constructor Summary
SwingEventHandler()
           
 
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

SwingEventHandler

public SwingEventHandler()
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 supposed to listen to the event
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.