ptolemy.vergil.kernel
Class RenameDialogFactory

java.lang.Object
  extended byptolemy.vergil.kernel.RenameDialogFactory
All Implemented Interfaces:
MenuItemFactory

public class RenameDialogFactory
extends java.lang.Object
implements MenuItemFactory

A factory that creates a dialog to rename an object.

Since:
Ptolemy II 2.0
Version:
$Id: RenameDialogFactory.java,v 1.14 2004/04/13 05:12:10 cxh Exp $
Author:
Edward A. Lee and Steve Neuendorffer
Accepted Rating:
Red (johnr)
Proposed Rating:
Red (eal)

Constructor Summary
RenameDialogFactory()
           
 
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 ports from an object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RenameDialogFactory

public RenameDialogFactory()
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 ports 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.