jni
Class ArgumentDialogFactory

java.lang.Object
  extended byjni.ArgumentDialogFactory
All Implemented Interfaces:
MenuItemFactory

public class ArgumentDialogFactory
extends java.lang.Object
implements MenuItemFactory

A factory that creates a dialog to configure, add, or remove Arguments from objects.

Since:
Ptolemy II 2.3
Version:
$Id: ArgumentDialogFactory.java,v 1.12 2004/04/13 05:12:45 cxh Exp $
Author:
Edward A. Lee and Steve Neuendorffer, modified by Vincent Arnould
Accepted Rating:
Red (vincent.arnould)
Proposed Rating:
Red (vincent.arnould)

Constructor Summary
ArgumentDialogFactory()
          Default constructor
 
Method Summary
 javax.swing.JMenuItem create(JContextMenu menu, NamedObj object)
          Add an item to the given context menu that will open a dialog to add or remove arguments from an object.
 void setConfiguration(Configuration configuration)
          Set the configuration for use by the help screen.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArgumentDialogFactory

public ArgumentDialogFactory()
Default constructor

Method Detail

create

public javax.swing.JMenuItem create(JContextMenu menu,
                                    NamedObj object)
Add an item to the given context menu that will open a dialog to add or remove arguments from an object.

Specified by:
create in interface MenuItemFactory
Parameters:
menu - The context menu.
object - The object whose ports are being manipulated.
Returns:
A menu item, or null to decline to provide a menu item.

setConfiguration

public void setConfiguration(Configuration configuration)
Set the configuration for use by the help screen.

Parameters:
configuration - The configuration.