ptolemy.vergil.kernel
Class PortDialogFactory

java.lang.Object
  extended by ptolemy.vergil.kernel.PortDialogFactory
All Implemented Interfaces:
MenuItemFactory

Deprecated. Use PortDialogAction.

public class PortDialogFactory
extends java.lang.Object
implements MenuItemFactory

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

Since:
Ptolemy II 2.0
Version:
$Id: PortDialogFactory.java 57040 2010-01-27 20:52:32Z cxh $
Author:
Edward A. Lee and Steve Neuendorffer
Accepted Rating:
Red (johnr)
Proposed Rating:
Red (eal)

Field Summary
private static java.lang.String _configPorts
          Deprecated. The configuration.
private static java.lang.String _configUnits
          Deprecated.  
private  Configuration _configuration
          Deprecated.  
 
Constructor Summary
PortDialogFactory()
          Deprecated.  
 
Method Summary
 javax.swing.JMenuItem create(JContextMenu menu, NamedObj object)
          Deprecated. Add an item to the given context menu that will open a dialog to add or remove ports from an object.
 void setConfiguration(Configuration configuration)
          Deprecated. 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
 

Field Detail

_configPorts

private static java.lang.String _configPorts
Deprecated. 
The configuration.


_configUnits

private static java.lang.String _configUnits
Deprecated. 

_configuration

private Configuration _configuration
Deprecated. 
Constructor Detail

PortDialogFactory

public PortDialogFactory()
Deprecated. 
Method Detail

create

public javax.swing.JMenuItem create(JContextMenu menu,
                                    NamedObj object)
Deprecated. 
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:
The JMenuItem or null if the object argument is not an Entity.

setConfiguration

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

Parameters:
configuration - The configuration.