tr.general.listener
Class CUniListener

java.lang.Object
  extended bytr.general.listener.CUniListener
All Implemented Interfaces:
java.awt.event.ActionListener, java.awt.event.AdjustmentListener, java.util.EventListener, java.awt.event.ItemListener, java.awt.event.TextListener

public class CUniListener
extends java.lang.Object
implements java.awt.event.ActionListener, java.awt.event.AdjustmentListener, java.awt.event.TextListener, java.awt.event.ItemListener

Universal listener that get an instance of a class, a method as "String" and parameters as an object array. With this information the corresponding method in the corresponding class were invoke.

Date: 01.04.2004

Version:
1.0
Author:
Tobias Roessler

Field Summary
protected  java.lang.Object[] mArgs
           
protected  java.lang.reflect.Method mMethod
           
protected  java.lang.Object mTarget
           
 
Constructor Summary
CUniListener(java.lang.Object target, java.lang.String methodname, java.lang.Object[] args)
          Constructor that invoke the corresponding class and method
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
          Method: actionPerformed
 void adjustmentValueChanged(java.awt.event.AdjustmentEvent e)
          Method: adjustmentValueChanged
 void itemStateChanged(java.awt.event.ItemEvent e)
          Method: itemStateChanged
 void textValueChanged(java.awt.event.TextEvent e)
          Method: textValueChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mTarget

protected java.lang.Object mTarget

mArgs

protected java.lang.Object[] mArgs

mMethod

protected java.lang.reflect.Method mMethod
Constructor Detail

CUniListener

public CUniListener(java.lang.Object target,
                    java.lang.String methodname,
                    java.lang.Object[] args)
Constructor that invoke the corresponding class and method

Parameters:
target - Instanz of a class
methodname - Name of the method
args - The arguments of the method
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Method: actionPerformed

Specified by:
actionPerformed in interface java.awt.event.ActionListener

adjustmentValueChanged

public void adjustmentValueChanged(java.awt.event.AdjustmentEvent e)
Method: adjustmentValueChanged

Specified by:
adjustmentValueChanged in interface java.awt.event.AdjustmentListener

textValueChanged

public void textValueChanged(java.awt.event.TextEvent e)
Method: textValueChanged

Specified by:
textValueChanged in interface java.awt.event.TextListener

itemStateChanged

public void itemStateChanged(java.awt.event.ItemEvent e)
Method: itemStateChanged

Specified by:
itemStateChanged in interface java.awt.event.ItemListener