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.VariableScope
NamedObj.ContainedObjectsIterator
Settable.Visibility
_currentExpression, _needsEvaluation, _parserScope, _parseTreeValid, _valueListeners
_changeListeners, _changeLock, _changeRequests, _debugging, _debugListeners, _deferChangeRequests, _elementName, _isPersistent, _verbose, _workspace, ATTRIBUTES, CLASSNAME, COMPLETE, CONTENTS, DEEP, FULLNAME, LINKS
EXPERT, 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, setBaseDirectory
stringValue
addChoice, 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, valueChanged
getDefaultExpression
_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, workspace
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addValueListener, getDefaultExpression, getDisplayName, getExpression, getValueAsString, getVisibility, removeValueListener, setExpression, setVisibility, validate
description, getContainer, getFullName, getName, getName, setName
public 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 Editable
public void createEditor(NamedObj object)
createEditor
in interface Editable
object
- The object to configure.public void createEditor(NamedObj object, java.awt.Frame parent)
createEditor
in interface Editable
object
- 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.