|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectsyn3d.base.PluginManager
public class PluginManager
This is a central repository for Syn3D plugins
| Field Summary | |
|---|---|
java.util.Vector |
nodeFactories
Vector of NodeFactory objects, constructed from the plugins capacities This Vector is guaranteed to be alphabetically sorted |
java.util.Vector |
plugins
Vector of Syn3DPlugin objects, correspongin to all plugins already registerd |
| Constructor Summary | |
|---|---|
PluginManager()
|
|
| Method Summary | |
|---|---|
javax.swing.JPopupMenu |
getChildMenu(ActiveNode parent,
java.awt.event.ActionListener listener)
Utility wrapper around getNodeFactoriesFor method to create a ready to use popup menu. |
java.util.Vector |
getNodeFactoriesFor(ActiveNode parent)
Return a Vector of NodeFactory objects capable of creating a child for the parent, in alphabetical order. |
Syn3DPlugin |
getPlugin(java.lang.Class c)
|
void |
register(java.lang.String className)
|
void |
showProperties(ActiveNode parent,
java.awt.event.ActionListener listener)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public java.util.Vector plugins
public java.util.Vector nodeFactories
| Constructor Detail |
|---|
public PluginManager()
| Method Detail |
|---|
public void register(java.lang.String className)
public Syn3DPlugin getPlugin(java.lang.Class c)
public java.util.Vector getNodeFactoriesFor(ActiveNode parent)
parent - The ActiveNode for which a new child is desired
public javax.swing.JPopupMenu getChildMenu(ActiveNode parent,
java.awt.event.ActionListener listener)
parent - The parent node for for which a new child is desiredlistener - An optional listener (possibly null) which will be notified if a child was created.
The corresponding ActionEvent source is the new child, id = 1, and cmd = "childCreated". Use
(ActiveNode(child)).getParent() on to get the parent back, if needed.
public void showProperties(ActiveNode parent,
java.awt.event.ActionListener listener)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||