public class WebAttribute extends StringAttribute
Red (ltrnc) |
Red (ltrnc) |
NamedObj.ContainedObjectsIterator
Settable.Visibility
_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 |
---|
WebAttribute(NamedObj container,
java.lang.String name)
Create an instance of this parameter.
|
Modifier and Type | Method and Description |
---|---|
static WebAttribute |
appendToWebAttribute(NamedObj container,
java.lang.String id,
java.lang.String webName,
java.lang.String content)
Factory method for creating WebAttributes that appends to the
attribute if it already exists and does not have the specified
content.
|
static WebAttribute |
createWebAttribute(NamedObj container,
java.lang.String id,
java.lang.String webName)
Factory method for creating WebAttributes.
|
java.lang.String |
getWebName()
Return the web name of this element; for example, "myElement" in
<div name="myElement"> </div> in HTML.
|
void |
setWebName(java.lang.String webName)
Set the web name of this element; for example, "myElement" in
<div name="myElement"> </div> in HTML.
|
_propagateValue, addValueListener, clone, exportMoML, getExpression, getVisibility, removeValueListener, setExpression, setVisibility, validate
getDefaultExpression, getValueAsString
_checkContainer, _getContainedObject, _propagateExistence, getContainer, moveDown, moveToFirst, moveToIndex, moveToLast, moveUp, setContainer, setName, updateContent
_addAttribute, _adjustOverride, _attachText, _cloneFixAttributeFields, _containedDecorators, _copyChangeRequestList, _debug, _debug, _debug, _debug, _debug, _description, _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, toString, uniqueName, validateSettables, workspace
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getDisplayName
description, getContainer, getFullName, getName, getName, setName
public WebAttribute(NamedObj container, java.lang.String name) throws IllegalActionException, NameDuplicationException
container
- The container.name
- The name.IllegalActionException
- If the superclass throws it.NameDuplicationException
- If the superclass throws it.public static WebAttribute appendToWebAttribute(NamedObj container, java.lang.String id, java.lang.String webName, java.lang.String content) throws IllegalActionException
container
- The container object for the WebAttributeid
- The Ptolemy name for the WebAttribute (needed to ensure a
unique Ptolemy name)webName
- The web name of this WebAttribute.content
- The value of this WebAttribute.IllegalActionException
- if the WebAttribute cannot be created
(perhaps another Attribute exists with the requested name)public java.lang.String getWebName()
setWebName(String)
public void setWebName(java.lang.String webName)
webName
- The web name of this element; for example, "myElement" in
<div name="myElement"> </div> in HTML.getWebName()
public static WebAttribute createWebAttribute(NamedObj container, java.lang.String id, java.lang.String webName) throws IllegalActionException
container
- The container object for the WebAttributeid
- The Ptolemy name for the WebAttribute (needed to ensure a
unique Ptolemy name)webName
- The web name of this WebAttributeIllegalActionException
- if the WebAttribute cannot be created
(perhaps another Attribute exists with the requested name)