|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpipe.gui.ModuleManager
The ModuleManager class contains methods to create swing components to allow the user to load modules and execute methods within them. To use, instantiate a ModuleManager object and use the methods to return the required components.
Nested Class Summary | |
(package private) class |
ModuleManager.RemoveModuleAction
Action object that can be used to remove a module from the ModuleTree |
class |
ModuleManager.TreeHandler
|
Field Summary | |
private java.util.HashSet |
installedModules
|
private javax.swing.tree.DefaultMutableTreeNode |
load_modules
|
private java.lang.String |
loadNodeString
|
private javax.swing.JTree |
moduleTree
|
(package private) java.awt.Component |
parent
|
private javax.swing.tree.DefaultTreeModel |
treeModel
|
Constructor Summary | |
ModuleManager()
|
Method Summary | |
private void |
addClassToTree(java.lang.Class moduleClass)
Method creates and returns a Module management tree. |
void |
addModuleToTree(javax.swing.tree.DefaultMutableTreeNode newNode)
Adds a new node to the Module subtree |
private java.util.Vector |
getModuleClasses(java.io.File rootDir)
Finds all the fully qualified (ie: full package names) module classnames by recursively searching the rootDirectories |
private java.io.File |
getModuleDir()
Returns the root directory under which the modules will be found. |
javax.swing.JTree |
getModuleTree()
|
void |
removeModuleFromTree(javax.swing.tree.DefaultMutableTreeNode newNode)
Removes a node from the Module subtree |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private java.util.HashSet installedModules
private javax.swing.JTree moduleTree
private javax.swing.tree.DefaultTreeModel treeModel
private javax.swing.tree.DefaultMutableTreeNode load_modules
private java.lang.String loadNodeString
java.awt.Component parent
Constructor Detail |
public ModuleManager()
Method Detail |
private java.io.File getModuleDir()
private java.util.Vector getModuleClasses(java.io.File rootDir)
rootDir
- The root directory to start searching fromprivate void addClassToTree(java.lang.Class moduleClass)
public javax.swing.JTree getModuleTree()
public void addModuleToTree(javax.swing.tree.DefaultMutableTreeNode newNode)
newNode
- The new node representing a new module.public void removeModuleFromTree(javax.swing.tree.DefaultMutableTreeNode newNode)
newNode
- The node to be removed.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |