ptolemy.vergil.fsm.modal
Class ModalTableauFactory

java.lang.Object
  extended byptolemy.kernel.util.NamedObj
      extended byptolemy.kernel.util.Attribute
          extended byptolemy.actor.gui.TableauFactory
              extended byptolemy.vergil.fsm.modal.ModalTableauFactory
All Implemented Interfaces:
ptolemy.kernel.util.Changeable, java.lang.Cloneable, ptolemy.kernel.util.Debuggable, ptolemy.kernel.util.DebugListener, ptolemy.kernel.util.Derivable, ptolemy.kernel.util.ModelErrorHandler, ptolemy.kernel.util.MoMLExportable, ptolemy.kernel.util.Nameable, java.io.Serializable

public class ModalTableauFactory
extends ptolemy.actor.gui.TableauFactory

A tableau factory that opens an editor on the contained controller rather than this composite actor. This is triggered by look inside.

Since:
Ptolemy II 4.0
Version:
$Id: ModalTableauFactory.java,v 1.7 2004/04/13 05:12:50 cxh Exp $
Author:
Edward A. Lee
See Also:
Serialized Form
Accepted Rating:
Red (reviewmoderator)
Proposed Rating:
Red (eal)

Nested Class Summary
 
Nested classes inherited from class ptolemy.kernel.util.NamedObj
ptolemy.kernel.util.NamedObj.ContainedObjectsIterator
 
Field Summary
 
Fields inherited from class ptolemy.kernel.util.NamedObj
_changeListeners, _changeLock, _changeRequests, _debugging, _debugListeners, _elementName, _isPersistent, _workspace, ATTRIBUTES, CLASSNAME, COMPLETE, CONTENTS, DEEP, FULLNAME, LINKS
 
Constructor Summary
ModalTableauFactory(ptolemy.kernel.util.NamedObj container, java.lang.String name)
          Create a factory with the given name and container.
 
Method Summary
 ptolemy.actor.gui.Tableau createTableau(ptolemy.actor.gui.Effigy effigy)
          Create a tableau for the specified effigy, which is assumed to be an effigy for an instance of ModalModel.
 
Methods inherited from class ptolemy.kernel.util.Attribute
_getContainedObject, _propagateExistence, clone, getContainer, setContainer, setName
 
Methods inherited from class ptolemy.kernel.util.NamedObj
_addAttribute, _attachText, _cloneFixAttributeFields, _debug, _debug, _debug, _debug, _debug, _description, _exportMoMLContents, _getIndentPrefix, _isMoMLSuppressed, _markContentsDerived, _propagateValue, _removeAttribute, _splitName, _stripNumericSuffix, addChangeListener, addDebugListener, attributeChanged, attributeList, attributeList, attributeTypeChanged, clone, containedObjectsIterator, deepContains, depthInHierarchy, description, description, event, executeChangeRequests, exportMoML, exportMoML, exportMoML, exportMoML, exportMoML, getAttribute, getAttribute, getAttributes, getChangeListeners, getClassName, getDerivedLevel, getDerivedList, getElementName, getFullName, getModelErrorHandler, getName, getName, getPrototypeList, getSource, handleModelError, isDeferringChangeRequests, isOverridden, isPersistent, message, propagateExistence, propagateValue, propagateValues, removeChangeListener, removeDebugListener, requestChange, setClassName, setDeferringChangeRequests, setDerivedLevel, setModelErrorHandler, setPersistent, setSource, toplevel, toString, uniqueName, validateSettables, workspace
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ModalTableauFactory

public ModalTableauFactory(ptolemy.kernel.util.NamedObj container,
                           java.lang.String name)
                    throws ptolemy.kernel.util.IllegalActionException,
                           ptolemy.kernel.util.NameDuplicationException
Create a factory with the given name and container.

Parameters:
container - The container.
name - The name.
Throws:
ptolemy.kernel.util.IllegalActionException - If the container is incompatible with this entity.
ptolemy.kernel.util.NameDuplicationException - If the name coincides with an entity already in the container.
Method Detail

createTableau

public ptolemy.actor.gui.Tableau createTableau(ptolemy.actor.gui.Effigy effigy)
                                        throws java.lang.Exception
Create a tableau for the specified effigy, which is assumed to be an effigy for an instance of ModalModel. This class defers to the configuration containing the specified effigy to open a tableau for the embedded controller.

Parameters:
effigy - The model effigy.
Returns:
A tableau for the effigy, or null if one cannot be created.
Throws:
java.lang.Exception - If the factory should be able to create a Tableau for the effigy, but something goes wrong.