public class WebElement extends StringAttribute
NamedObj.ContainedObjectsIterator
Settable.Visibility
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
BODY
A special constant indicating that the <body/> element should
be the parent.
|
static java.lang.String |
END
Special constant indicating to put content in a div with the name
"end" which occurs at the end of the HTML body.
|
static java.lang.String |
HEAD
A special constant indicating that the <head/> element should
be the parent.
|
static java.lang.String |
START
Special constant indicating to put content in a div with the name
"start" which occurs at the beginning of the HTML body.
|
_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 |
---|
WebElement(NamedObj container,
java.lang.String name)
Create an instance of this parameter.
|
Modifier and Type | Method and Description |
---|---|
static WebElement |
createWebElement(NamedObj container,
java.lang.String id,
java.lang.String webName)
Factory method for creating WebElements.
|
java.lang.String |
getParent()
Return the name of the desired parent element, or the empty string if
none.
|
java.lang.String |
getWebName()
Return the web name of this element; for example, "myElement" in
<div name="myElement"/> in HTML.
|
void |
setParent(java.lang.String parent)
Set the name of the desired parent element.
|
void |
setWebName(java.lang.String webName)
Set the web name of this element; for example, "myElement" in
<div name="myElement"/> 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 static final java.lang.String BODY
public static final java.lang.String HEAD
public static final java.lang.String START
public static final java.lang.String END
public WebElement(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 WebElement createWebElement(NamedObj container, java.lang.String id, java.lang.String webName) throws IllegalActionException
container
- The container object for the WebElementid
- The Ptolemy name for the WebElement (WebElement uses this as a
unique id)webName
- The web name of this WebElementIllegalActionException
- if the WebAttribute cannot be created
(perhaps another Attribute exists with the requested name)public java.lang.String getParent()
setParent(String)
public java.lang.String getWebName()
setWebName(String)
public void setParent(java.lang.String parent)
parent
- The name or special constant of the parent element.getParent()
public void setWebName(java.lang.String webName)
webName
- The web name of this element; for example, "myElement" in
<div name="myElement"/> in HTML.getWebName()