org.embl.ebi.escience.scufl.shared
Class ScuflContextMenuFactory
java.lang.Object
org.embl.ebi.escience.scufl.shared.ScuflContextMenuFactory
public class ScuflContextMenuFactory
- extends java.lang.Object
A static factory method to return an instance of JPopupMenu that is
appropriate to the supplied object. For instance, if you supply it with a
Processor implementation it will give options to view the processor details,
delete it etc.
- Author:
- Tom Oinn, Stuart Owen
|
Method Summary |
static javax.swing.JPopupMenu |
getMenuForObject(javax.swing.tree.DefaultMutableTreeNode theNode,
java.lang.Object theObject,
ScuflModel methodSigModel)
Creates a JPopupMenu appropriate to the object supplied. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ScuflContextMenuFactory
public ScuflContextMenuFactory()
getMenuForObject
public static javax.swing.JPopupMenu getMenuForObject(javax.swing.tree.DefaultMutableTreeNode theNode,
java.lang.Object theObject,
ScuflModel methodSigModel)
throws NoContextMenuFoundException
- Creates a JPopupMenu appropriate to the object supplied. If it doesn't
understand the object it's been given it will throw a
NoContextMenuFoundException back at you. This method need a handle on the
model it's working with so it can return sensible things if the object is
a string appropriate to some node in the tree, i.e. 'Processors'
- Throws:
NoContextMenuFoundException