ptolemy.vergil.toolbox
Class FileEditorTableauFactory
java.lang.Object
ptolemy.kernel.util.NamedObj
ptolemy.kernel.util.Attribute
ptolemy.actor.gui.TableauFactory
ptolemy.vergil.toolbox.FileEditorTableauFactory
- All Implemented Interfaces:
- Changeable, java.lang.Cloneable, Debuggable, DebugListener, Derivable, ModelErrorHandler, MoMLExportable, Nameable, java.io.Serializable
- public class FileEditorTableauFactory
- extends TableauFactory
This class is an attribute that creates a text editor to edit a specified
file or URL given by an attribute in the container of this attribute.
It is similar to TextEditorTableauFactory, but instead of editing an
attribute in the container, it edits a file or URL referenced by that
attribute. The file or URL must be given in the container by an
instance of FileParameter.
- Since:
- Ptolemy II 4.0
- Version:
- $Id: FileEditorTableauFactory.java,v 1.7 2004/04/13 03:51:58 cxh Exp $
- Author:
- Edward A. Lee
- See Also:
TextEditorTableauFactory,
FileParameter,
Serialized Form
- Accepted Rating:
- Proposed Rating:
| Fields inherited from class ptolemy.kernel.util.NamedObj |
_changeListeners, _changeLock, _changeRequests, _debugging, _debugListeners, _elementName, _isPersistent, _workspace, ATTRIBUTES, CLASSNAME, COMPLETE, CONTENTS, DEEP, FULLNAME, LINKS |
| 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 |
attributeName
public StringAttribute attributeName
- The name of the file attribute giving the file name or URL.
FileEditorTableauFactory
public FileEditorTableauFactory(NamedObj container,
java.lang.String name)
throws IllegalActionException,
NameDuplicationException
- Create a factory with the given name and container.
- Parameters:
container - The container.name - The name.
- Throws:
IllegalActionException - If the container is incompatible
with this attribute.
NameDuplicationException - If the name coincides with
an attribute already in the container.
createTableau
public Tableau createTableau(Effigy effigy)
throws java.lang.Exception
- Create a tableau for the specified effigy. The tableau will be
created with a new unique name with the specified effigy as its
container. If this factory cannot create a tableau
for the given effigy (it is not an instance of PtolemyEffigy),
then return null.
- Overrides:
createTableau in class TableauFactory
- Parameters:
effigy - The component 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.