gradeview.util
Class AbstractHandler

java.lang.Object
  |
  +--gradeview.util.AbstractHandler
Direct Known Subclasses:
ActionHandler, MouseHandler

public abstract class AbstractHandler
extends java.lang.Object
implements java.util.EventListener

Associates a method with events on an object. This class exists to receive actions (when installed as an EventListener on an object) and redirect them to the given method of the given object.


Constructor Summary
AbstractHandler(java.lang.Object obj, java.lang.String funcName)
          Constructor.
 
Method Summary
protected  void triggered()
          Called by a subclass when an event is received.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractHandler

public AbstractHandler(java.lang.Object obj,
                       java.lang.String funcName)
Constructor.
Parameters:
obj - The object containing funcName
funcName - A string representing the name of a method in obj which will be called on receipt of an event
Method Detail

triggered

protected void triggered()
Called by a subclass when an event is received.