public class LiveLink extends FileParameter implements Editable
A common way to use this attribute is to put
a text annotation in a model with text something like
"See also Foo", where "Foo" is the name of another
related model. Drag an instance of this LiveLink attribute
onto the text annotation. Alt double click (or right click
and select Configure) on the text
annotation to set the file name for the model Foo to
link to a file or a URL to link to a web page.
The file name can be relative to the location of
the model containing the annotation. It can also
have any of the forms supported by
FileParameter. For example, a file name
can begin with $PTII, indicating that the file
is in the Ptolemy II installation tree.
The default URL is "http://ptolemy.org#in_browser", which is the home page of the Ptolemy Project with an additional annotation indicating that the page should be opened in a browser. The suffix "#in_browser" will always be interpreted this way. Without this suffix, Vergil will be used to open the URL. Note that Vergil's HTML viewer does not handle many modern pages well.
IconLink| Red (cxh) |
| Yellow (eal) |
Variable.CircularDependencyError, Variable.VariableScopeNamedObj.ContainedObjectsIteratorSettable.Visibility_currentExpression, _needsEvaluation, _parserScope, _parseTreeValid, _valueListeners_changeListeners, _changeLock, _changeRequests, _debugging, _debugListeners, _deferChangeRequests, _elementName, _isPersistent, _verbose, _workspace, ATTRIBUTES, CLASSNAME, COMPLETE, CONTENTS, DEEP, FULLNAME, LINKSEXPERT, FULL, NONE, NOT_EDITABLE| Constructor and Description |
|---|
LiveLink(NamedObj container,
java.lang.String name)
Construct a factory with the specified container and name.
|
| Modifier and Type | Method and Description |
|---|---|
void |
createEditor()
Create an editor.
|
void |
createEditor(NamedObj object)
Create an editor for configuring the specified object.
|
void |
createEditor(NamedObj object,
java.awt.Frame parent)
Create a doc viewer for the specified object with the
specified parent window.
|
asFile, asURL, clone, close, getBaseDirectory, isOutput, openForReading, openForWriting, openForWriting, setBaseDirectorystringValueaddChoice, exportMoML, getChoices, removeAllChoices, removeChoice_description, _evaluate, _notifyValueListeners, _parseIfNecessary, _propagate, _propagateToValueListeners, _propagateValue, _setToken, _setTokenAndNotify, addValueListener, getDeclaredType, getExpression, getFreeIdentifiers, getParserScope, getScope, getScope, getToken, getType, getTypeTerm, getValueAsString, getVariable, getVisibility, invalidate, isKnown, isLazy, isStringMode, isTypeAcceptable, removeValueListener, reset, setContainer, setExpression, setLazy, setName, setParseTreeEvaluator, setStringMode, setToken, setToken, setTypeAtLeast, setTypeAtLeast, setTypeAtMost, setTypeEquals, setTypeSameAs, setUnknown, setVisibility, stringRepresentation, toString, typeConstraintList, typeConstraints, validate, valueChangedgetDefaultExpression_checkContainer, _getContainedObject, _propagateExistence, getContainer, moveDown, moveToFirst, moveToIndex, moveToLast, moveUp, updateContent_addAttribute, _adjustOverride, _attachText, _cloneFixAttributeFields, _containedDecorators, _copyChangeRequestList, _debug, _debug, _debug, _debug, _debug, _executeChangeRequests, _exportMoMLContents, _getIndentPrefix, _isMoMLSuppressed, _markContentsDerived, _notifyHierarchyListenersAfterChange, _notifyHierarchyListenersBeforeChange, _removeAttribute, _splitName, _stripNumericSuffix, _validateSettables, addChangeListener, addDebugListener, addHierarchyListener, attributeChanged, attributeDeleted, attributeList, attributeList, attributeTypeChanged, clone, containedObjectsIterator, decorators, deepContains, depthInHierarchy, description, description, event, executeChangeRequests, exportMoML, exportMoML, exportMoML, exportMoML, exportMoMLPlain, getAttribute, getAttribute, getAttributes, getChangeListeners, getClassName, getDecoratorAttribute, getDecoratorAttributes, getDerivedLevel, getDerivedList, getDisplayName, getElementName, getFullName, getModelErrorHandler, getName, getName, getPrototypeList, getSource, handleModelError, isDeferringChangeRequests, isOverridden, isPersistent, lazyContainedObjectsIterator, message, notifyOfNameChange, propagateExistence, propagateValue, propagateValues, removeAttribute, removeChangeListener, removeDebugListener, removeHierarchyListener, requestChange, setClassName, setDeferringChangeRequests, setDerivedLevel, setDisplayName, setModelErrorHandler, setPersistent, setSource, sortContainedObjects, toplevel, uniqueName, validateSettables, workspaceequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddValueListener, getDefaultExpression, getDisplayName, getExpression, getValueAsString, getVisibility, removeValueListener, setExpression, setVisibility, validatedescription, getContainer, getFullName, getName, getName, setNamepublic LiveLink(NamedObj container, java.lang.String name) throws IllegalActionException, NameDuplicationException
container - The container.name - The name of the factory.IllegalActionException - If the factory is not of an
acceptable attribute for the container.NameDuplicationException - If the name coincides with
an attribute already in the container.public void createEditor()
createEditor in interface Editablepublic void createEditor(NamedObj object)
createEditor in interface Editableobject - The object to configure.public void createEditor(NamedObj object, java.awt.Frame parent)
createEditor in interface Editableobject - The object to configure, which is required to
an instance of DocAttribute.parent - The parent window, which is required to be an
instance of TableauFrame.