pipe.gui
Class ModuleClass
java.lang.Object
|
+--pipe.gui.ModuleClass
- public class ModuleClass
- extends java.lang.Object
ModuleClass encapsulates information about the Module class and is designed to be used as a userobject in nodes in a JTree, in this case for nodes representing module classes. This isn't designed for use anywhere else.
- Author:
- Camilla Clifford
Constructor Summary |
ModuleClass(java.lang.Class cl)
Sets up the private fields, includes instantiating an object and calling the getName method used to set the displayName. |
Method Summary |
java.lang.Class |
returnClass()
Returns the class object that the ModuleClass encapsulates |
java.lang.String |
toString()
Overides the object method in order to provide the correct display name |
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait |
displayName
private java.lang.String displayName
methods
private java.lang.reflect.Method[] methods
thisClass
private java.lang.Class thisClass
ModuleClass
public ModuleClass(java.lang.Class cl)
- Sets up the private fields, includes instantiating an object and calling the getName method used to set the displayName.
- Parameters:
cl
- The class that the ModuleClass encapsulates.
toString
public java.lang.String toString()
- Overides the object method in order to provide the correct display name
- Overrides:
toString
in class java.lang.Object
returnClass
public java.lang.Class returnClass()
- Returns the class object that the ModuleClass encapsulates