edu.neu.ccs.beans.reflect.clazz.inspector.transformer
Class ForName

java.lang.Object
  |
  +--edu.neu.ccs.beans.reflect.clazz.inspector.transformer.ForName
Direct Known Subclasses:
ClassTransmitter

public class ForName
extends java.lang.Object
implements java.awt.event.TextListener

On receiving a text change event fires a class event, or exception event if unable to load class.


Constructor Summary
ForName()
           
 
Method Summary
 void addClassListener(ClassListener newListener)
          Register a Class listener
 void addExceptionListener(ExceptionListener newListener)
          Register a Exception listener
protected  void fireClassEvent(ClassEvent evt)
           
protected  void fireExceptionEvent(ExceptionEvent evt)
           
 void removeClassListener(ClassListener oldListener)
          Unregister a Class listener
 void removeExceptionListener(ExceptionListener oldListener)
          Unregister a Exception listener
 void textValueChanged(java.awt.event.TextEvent evt)
          Verifies that the text is a legal class name, and if so fire new ClassEvent, else fire new ExceptionEvent.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ForName

public ForName()
Method Detail

addClassListener

public void addClassListener(ClassListener newListener)
Register a Class listener
Parameters:
newListener - a Class listener

addExceptionListener

public void addExceptionListener(ExceptionListener newListener)
Register a Exception listener
Parameters:
newListener - a Exception listener

fireClassEvent

protected void fireClassEvent(ClassEvent evt)
Parameters:
evt - edu.neu.ccs.beans.reflect.event.ClassEvent

fireExceptionEvent

protected void fireExceptionEvent(ExceptionEvent evt)
Parameters:
evt - edu.neu.ccs.beans.util.ExceptionEvent

removeClassListener

public void removeClassListener(ClassListener oldListener)
Unregister a Class listener
Parameters:
oldListener - a Class listener

removeExceptionListener

public void removeExceptionListener(ExceptionListener oldListener)
Unregister a Exception listener
Parameters:
oldListener - a Exception listener

textValueChanged

public void textValueChanged(java.awt.event.TextEvent evt)
Verifies that the text is a legal class name, and if so fire new ClassEvent, else fire new ExceptionEvent.
Specified by:
textValueChanged in interface java.awt.event.TextListener
Parameters:
evt - a text event