pipe.gui
Class ModuleMethod

java.lang.Object
  extended by pipe.gui.ModuleMethod

public class ModuleMethod
extends java.lang.Object

ModuleMethod encapsulates information about a module method and is designed to be used as a userobject in nodes in a JTree. In this case for nodes representing module methods.


Constructor Summary
ModuleMethod(java.lang.Class cl, java.lang.reflect.Method m)
           
 
Method Summary
protected  void execute(DataLayer data)
          Executes the Method that this class represents.
 java.lang.Class getModClass()
           
 void setName(java.lang.String name)
           
 java.lang.String toString()
          Returns the name of the modMeth
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ModuleMethod

public ModuleMethod(java.lang.Class cl,
                    java.lang.reflect.Method m)
Method Detail

toString

public java.lang.String toString()
Returns the name of the modMeth

Overrides:
toString in class java.lang.Object

setName

public void setName(java.lang.String name)

execute

protected void execute(DataLayer data)
Executes the Method that this class represents.

Parameters:
data - The dataLayer object that will be passed as an argument to the method.

getModClass

public java.lang.Class getModClass()
Returns:
Returns the modClass.