fi.hut.tml.xsmiles.mlfc.smil.basic
Class SMILElementImpl
java.lang.Object
org.apache.xerces.dom.NodeImpl
org.apache.xerces.dom.ChildNode
org.apache.xerces.dom.ParentNode
org.apache.xerces.dom.ElementImpl
org.apache.xerces.dom.ElementNSImpl
fi.hut.tml.xsmiles.dom.XSmilesElementImpl
fi.hut.tml.xsmiles.dom.VisualElementImpl
fi.hut.tml.xsmiles.mlfc.smil.basic.SMILElementImpl
- All Implemented Interfaces:
- java.lang.Cloneable, CSSStyleChangeListener, org.w3c.dom.Element, org.w3c.dom.events.EventListener, org.w3c.dom.events.EventTarget, InitializableElement, org.w3c.dom.Node, org.w3c.dom.NodeList, PseudoClassController, ResourceFetcher, java.io.Serializable, SMILElement, StylableElement, org.w3c.dom.TypeInfo, VisualElement, XSmilesLayoutReference
- Direct Known Subclasses:
- ElementTimeControlImpl, SMILCustomAttributesElementImpl, SMILCustomTestElementImpl, SMILHeadElementImpl, SMILLayoutElementImpl, SMILMetadataElementImpl, SMILMetaElementImpl, SMILParamElementImpl, SMILRegionElementImpl, SMILRootLayoutElementImpl, SMILSMILElementImpl, SMILTopLayoutElementImpl, XSMILRegPointElementImpl
- public class SMILElementImpl
- extends VisualElementImpl
- implements SMILElement
The SMILElement is the base for all SMIL element
types. It follows the model of the HTMLElement in the HTML
DOM, extending the base Element class to denote SMIL-specific
elements.
Note that the SMILElement interface overlaps with the
HTMLElement interface. In practice, an integrated document
profile that include HTML and SMIL modules will effectively implement both
interfaces (see also the DOM documentation discussion of Inheritance vs
Flattened Views of the API ). // etc. This needs attention
- See Also:
- Serialized Form
| Fields inherited from class org.apache.xerces.dom.ElementNSImpl |
localName, namespaceURI |
| Fields inherited from class org.apache.xerces.dom.ElementImpl |
attributes, name |
| Fields inherited from class org.apache.xerces.dom.ParentNode |
firstChild, fNodeListCache, ownerDocument |
| Fields inherited from class org.apache.xerces.dom.ChildNode |
nextSibling, previousSibling |
| Fields inherited from class org.apache.xerces.dom.NodeImpl |
DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_IS_CONTAINED, DOCUMENT_POSITION_PRECEDING, ELEMENT_DEFINITION_NODE, FIRSTCHILD, flags, HASSTRING, ID, IGNORABLEWS, OWNED, ownerNode, READONLY, SPECIFIED, SYNCCHILDREN, SYNCDATA, TREE_POSITION_ANCESTOR, TREE_POSITION_DESCENDANT, TREE_POSITION_DISCONNECTED, TREE_POSITION_EQUIVALENT, TREE_POSITION_FOLLOWING, TREE_POSITION_PRECEDING, TREE_POSITION_SAME_NODE, UNNORMALIZED |
| Fields inherited from interface org.w3c.dom.Node |
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE |
|
Constructor Summary |
SMILElementImpl(org.apache.xerces.dom.DocumentImpl owner,
SMILDocumentImpl smil,
java.lang.String nameSpace,
java.lang.String name)
Constructor - Set the owner, name and namespace. |
|
Method Summary |
protected void |
dispatch(java.lang.String type,
boolean bubble)
Dispatch the event to DOM for this element. |
java.lang.String |
getAlt()
The alt text attribute. |
java.lang.String |
getClassName()
The class attribute. |
java.lang.String |
getId()
Get the unique id. |
java.lang.String |
getLongdesc()
The longdesc attribute. |
protected org.apache.xerces.dom.DocumentImpl |
getOwnerDoc()
Get the value of ownerDoc. |
protected SMILDocumentImpl |
getSMILDoc()
Get the value of smilDoc. |
java.lang.String |
getTitle()
The title attribute. |
void |
setAlt(java.lang.String alt)
|
void |
setClassName(java.lang.String cl)
|
void |
setId(java.lang.String id)
Set the value of id. |
void |
setLongdesc(java.lang.String longdesc)
|
void |
setTitle(java.lang.String title)
|
| Methods inherited from class fi.hut.tml.xsmiles.dom.VisualElementImpl |
addView, belongsToTree, getViews, handleEvent, init, insertBefore, isCurrentlyVisible, isFocusPoint, isPseudoClass, isVisibleByCSSProperties, notifyPseudoRemoved, removeAllViews, removeAttribute, removeChild, replaceChild, setAttribute, setStatus, styleChanged, updateViews |
| Methods inherited from class fi.hut.tml.xsmiles.dom.XSmilesElementImpl |
addBinding, addUndistributedChild, clone, clonePseudoElements, cloneSubtree, debugNode, debugNode, destroy, dispatchEventInMainThread, get, getApplyBindingSheets, getAuthorSheets, getChildNodes, getElementStatus, getOriginalClone, getPseudoClass, getResourceReferencer, getRuleNode, getStyle, getStyleAttrValue, getText, getText, getUndistributedChildNodes, getXblImplementations, hasBinding, hasStyle, initFinalFlattenedTree, initStyle, isInitedForReset, removeBinding, removeUndistributedChild, replaceNode, resetFinalFlattenedTree, resolveURI, searchElementWithId, searchElementWithId, setApplyBindingSheets, setAuthorSheets, setPseudoClass, setRuleNode, setStyle, updateStyle |
| Methods inherited from class org.apache.xerces.dom.ElementNSImpl |
getBaseURI, getLocalName, getNamespaceURI, getPrefix, getTypeName, getTypeNamespace, setPrefix, setType, setValues |
| Methods inherited from class org.apache.xerces.dom.ElementImpl |
cloneNode, getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getAttributes, getDefaultAttributes, getElementsByTagName, getElementsByTagNameNS, getNodeName, getNodeType, getSchemaTypeInfo, getTagName, getXercesAttribute, hasAttribute, hasAttributeNS, hasAttributes, isEqualNode, normalize, reconcileDefaultAttributes, removeAttributeNode, removeAttributeNS, setAttributeNode, setAttributeNodeNS, setAttributeNS, setIdAttribute, setIdAttributeNode, setIdAttributeNS, setReadOnly, setupDefaultAttributes, setXercesAttributeNode, synchronizeData |
| Methods inherited from class org.apache.xerces.dom.ParentNode |
getChildNodes, getChildNodesUnoptimized, getFirstChild, getLastChild, getLength, getOwnerDocument, getTextContent, hasChildNodes, item, setTextContent, synchronizeChildren |
| Methods inherited from class org.apache.xerces.dom.ChildNode |
getNextSibling, getParentNode, getPreviousSibling |
| Methods inherited from class org.apache.xerces.dom.NodeImpl |
addEventListener, appendChild, changed, changes, compareDocumentPosition, compareTreePosition, dispatchEvent, getContainer, getFeature, getNodeNumber, getNodeValue, getReadOnly, getUserData, getUserData, isDefaultNamespace, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, needsSyncChildren, removeEventListener, setNodeValue, setUserData, setUserData, toString |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.w3c.dom.Element |
getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getElementsByTagName, getElementsByTagNameNS, getTagName, hasAttribute, hasAttributeNS, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS |
| Methods inherited from interface org.w3c.dom.Node |
appendChild, cloneNode, getAttributes, getChildNodes, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, hasAttributes, hasChildNodes, insertBefore, isSupported, normalize, removeChild, replaceChild, setNodeValue, setPrefix |
smilDoc
protected SMILDocumentImpl smilDoc
SMILElementImpl
public SMILElementImpl(org.apache.xerces.dom.DocumentImpl owner,
SMILDocumentImpl smil,
java.lang.String nameSpace,
java.lang.String name)
- Constructor - Set the owner, name and namespace.
getSMILDoc
protected SMILDocumentImpl getSMILDoc()
- Get the value of smilDoc.
- Returns:
- Value of smilDoc.
getOwnerDoc
protected org.apache.xerces.dom.DocumentImpl getOwnerDoc()
- Get the value of ownerDoc.
- Returns:
- Value of ownerDoc.
dispatch
protected void dispatch(java.lang.String type,
boolean bubble)
- Dispatch the event to DOM for this element.
- Parameters:
type - event typebubble - true if the event should bubble
getId
public java.lang.String getId()
- Get the unique id.
- Specified by:
getId in interface SMILElement- Overrides:
getId in class XSmilesElementImpl
- Returns:
- id
- Throws:
org.w3c.dom.DOMException - NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly.
setId
public void setId(java.lang.String id)
throws org.w3c.dom.DOMException
- Set the value of id.
- Specified by:
setId in interface SMILElement
- Parameters:
id - Value to assign to id.
- Throws:
org.w3c.dom.DOMException
getClassName
public java.lang.String getClassName()
- The class attribute. This method should be called getClass, but it is
already reserved by java.lang.Object.
- Specified by:
getClassName in interface SMILElement
- Throws:
org.w3c.dom.DOMException - NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly.
setClassName
public void setClassName(java.lang.String cl)
throws org.w3c.dom.DOMException
- Specified by:
setClassName in interface SMILElement
- Throws:
org.w3c.dom.DOMException
getTitle
public java.lang.String getTitle()
- The title attribute.
- Specified by:
getTitle in interface SMILElement
- Throws:
org.w3c.dom.DOMException - NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly.
setTitle
public void setTitle(java.lang.String title)
throws org.w3c.dom.DOMException
- Specified by:
setTitle in interface SMILElement
- Throws:
org.w3c.dom.DOMException
getAlt
public java.lang.String getAlt()
- The alt text attribute.
- Specified by:
getAlt in interface SMILElement
- Throws:
org.w3c.dom.DOMException - NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly.
setAlt
public void setAlt(java.lang.String alt)
throws org.w3c.dom.DOMException
- Specified by:
setAlt in interface SMILElement
- Throws:
org.w3c.dom.DOMException
getLongdesc
public java.lang.String getLongdesc()
- The longdesc attribute.
- Specified by:
getLongdesc in interface SMILElement
- Throws:
org.w3c.dom.DOMException - NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly.
setLongdesc
public void setLongdesc(java.lang.String longdesc)
throws org.w3c.dom.DOMException
- Specified by:
setLongdesc in interface SMILElement
- Throws:
org.w3c.dom.DOMException
X-Smiles 1.2