fi.hut.tml.xsmiles.mlfc.smil.basic
Class SMILAElementImpl
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
fi.hut.tml.xsmiles.mlfc.smil.basic.ElementTimeControlImpl
fi.hut.tml.xsmiles.mlfc.smil.basic.ElementBasicTimeImpl
fi.hut.tml.xsmiles.mlfc.smil.basic.ElementTimeImpl
fi.hut.tml.xsmiles.mlfc.smil.basic.ElementTimeContainerImpl
fi.hut.tml.xsmiles.mlfc.smil.basic.SMILAElementImpl
- All Implemented Interfaces:
- java.lang.Cloneable, CSSStyleChangeListener, org.w3c.dom.Element, ElementTime, ElementTimeContainer, ElementTimeControl, org.w3c.dom.events.EventListener, org.w3c.dom.events.EventTarget, InitializableElement, MediaListener, org.w3c.dom.Node, org.w3c.dom.NodeList, PseudoClassController, ResourceFetcher, java.io.Serializable, SMILElement, StylableElement, org.w3c.dom.TypeInfo, VisualElement, XElementBasicTime, XSMILAElement, XSmilesLayoutReference
- public class SMILAElementImpl
- extends ElementTimeContainerImpl
- implements XSMILAElement, MediaListener
XSMILAElement is handled as an time container - containing media (or link or switch...).
Media will search through its parents for an a element. If it is found, the media element
will create a corresponding link.
- See Also:
- Serialized Form
| Fields inherited from class fi.hut.tml.xsmiles.mlfc.smil.basic.ElementBasicTimeImpl |
accActiveDuration, activateTime, activeDuration, beginTime, clipBeginTime, currentIntervalBegin, currentIntervalEnd, elementForceStartTime, manualRepeat, previousIntervalBegin, previousIntervalEnd, repeatIteration, repeatTime, startupTime, state, STATE_AFTERPLAY, STATE_DESTROYED, STATE_IDLE, STATE_PLAY, STATE_PREFETCHED, STATE_UNINIT, STATE_WAIT, TIMER_ACTIVATE, TIMER_DEACTIVATE, TIMER_SIMPLEDUR, zero |
| 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 |
| Fields inherited from interface org.w3c.dom.smil20.ElementTime |
FILLDEFAULT_AUTO, FILLDEFAULT_FREEZE, FILLDEFAULT_HOLD, FILLDEFAULT_INHERIT, FILLDEFAULT_REMOVE, FILLDEFAULT_TRANSITION, RESTARTDEFAULT_ALWAYS, RESTARTDEFAULT_INHERIT, RESTARTDEFAULT_NEVER, RESTARTDEFAULT_WHEN_NOT_ACTIVE, SYNCBEHAVIOR_CAN_SLIP, SYNCBEHAVIOR_DEFAULT, SYNCBEHAVIOR_INDEPENDENT, SYNCBEHAVIOR_LOCKED, SYNCBEHAVIORDEFAULT_CAN_SLIP, SYNCBEHAVIORDEFAULT_INDEPENDENT, SYNCBEHAVIORDEFAULT_INHERIT, SYNCBEHAVIORDEFAULT_LOCKED |
|
Constructor Summary |
SMILAElementImpl(org.apache.xerces.dom.DocumentImpl owner,
SMILDocumentImpl smil,
java.lang.String ns)
Constructor - Set the owner and name. |
| Methods inherited from class fi.hut.tml.xsmiles.mlfc.smil.basic.ElementTimeContainerImpl |
getAbstractAttr, getActiveChildrenAt, getAuthor, getCopyright, getFill, getRegion, setAbstractAttr, setAuthor, setCopyright, setFill, setRegion |
| Methods inherited from class fi.hut.tml.xsmiles.mlfc.smil.basic.ElementTimeImpl |
getFillDefault, getRestartDefault, getSyncBehavior, getSyncBehaviorDefault, getSyncTolerance, getSyncToleranceDefault, setFillDefault, setRestartDefault, setSyncBehavior, setSyncBehaviorDefault, setSyncTolerance, setSyncToleranceDefault |
| Methods inherited from class fi.hut.tml.xsmiles.mlfc.smil.basic.ElementBasicTimeImpl |
ACAdd, addIntervalBeginListener, addIntervalEndListener, addNewIntervalListener, addTime, beginElement, beginElementAt, childEnded, closeChildren, closedown, computeSimpleDuration, deactivate, defaultBegin, destroy, display, endElement, endElementAt, freeze, getBegin, getBeginList, getCurrentIntervalBegin, getCurrentIntervalEnd, getCurrentParentTime, getDur, getEnd, getEndList, getMax, getMin, getRepeat, getRepeatCount, getRepeatDur, getRestart, getState, getTimeChildren, getTimeInBodyTime, getTimeInParentTime, hasStarted, immediateIntervalEnd, init, isActive, isChildStartable, isResolved, isStartable, notifyBeginListeners, notifyEndListeners, notifyNewIntervalListeners, prefetch, reevaluateIntervalBegin, reevaluateIntervalEnd, remove, removeFreeze, repeat, repeatRemoveFreeze, resolveSeekTime, restartelement, restartelementparent, setBegin, setCurrentIntervalBegin, setCurrentIntervalEnd, setDur, setEnd, setForceStartTime, setMax, setMin, setRepeat, setRepeatCount, setRepeatDur, setRestart, simpleDurEnded, startChildren, startup, timeContainerHasEnded |
| Methods inherited from class fi.hut.tml.xsmiles.mlfc.smil.basic.SMILElementImpl |
dispatch, getAlt, getClassName, getId, getLongdesc, getOwnerDoc, getSMILDoc, getTitle, setAlt, setClassName, setId, setLongdesc, setTitle |
| Methods inherited from class fi.hut.tml.xsmiles.dom.VisualElementImpl |
addView, belongsToTree, getViews, handleEvent, 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, dispatchEventInMainThread, get, getApplyBindingSheets, getAuthorSheets, getChildNodes, getElementStatus, getOriginalClone, getPseudoClass, getResourceReferencer, getRuleNode, getStyle, 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.smil20.SMILElement |
destroy, getAlt, getClassName, getId, getLongdesc, getTitle, init, setAlt, setClassName, setId, setLongdesc, setTitle |
| 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 |
| Methods inherited from interface org.w3c.dom.smil20.XElementBasicTime |
closedown, deactivate, destroy, freeze, getBegin, getCurrentIntervalBegin, getDur, getEnd, getMax, getMin, getRepeat, getRepeatCount, getRepeatDur, getRestart, getTimeInBodyTime, hasStarted, isActive, prefetch, setBegin, setDur, setEnd, setMax, setMin, setRepeat, setRepeatCount, setRepeatDur, setRestart, startup |
| Methods inherited from interface org.w3c.dom.smil20.ElementTime |
getFillDefault, getRestartDefault, getSyncBehavior, getSyncBehaviorDefault, getSyncTolerance, getSyncToleranceDefault, setFillDefault, setRestartDefault, setSyncBehavior, setSyncBehaviorDefault, setSyncTolerance, setSyncToleranceDefault |
SOURCEPLAYSTATE_PLAY
public static final short SOURCEPLAYSTATE_PLAY
- See Also:
- Constant Field Values
SOURCEPLAYSTATE_PAUSE
public static final short SOURCEPLAYSTATE_PAUSE
- See Also:
- Constant Field Values
SOURCEPLAYSTATE_STOP
public static final short SOURCEPLAYSTATE_STOP
- See Also:
- Constant Field Values
DESTINATIONPLAYSTATE_PLAY
public static final short DESTINATIONPLAYSTATE_PLAY
- See Also:
- Constant Field Values
DESTINATIONPLAYSTATE_PAUSE
public static final short DESTINATIONPLAYSTATE_PAUSE
- See Also:
- Constant Field Values
DESTINATIONPLAYSTATE_STOP
public static final short DESTINATIONPLAYSTATE_STOP
- See Also:
- Constant Field Values
SHOW_REPLACE
public static final short SHOW_REPLACE
- See Also:
- Constant Field Values
SHOW_NEW
public static final short SHOW_NEW
- See Also:
- Constant Field Values
SHOW_PAUSE
public static final short SHOW_PAUSE
- See Also:
- Constant Field Values
ACTUATE_ONREQUEST
public static final short ACTUATE_ONREQUEST
- See Also:
- Constant Field Values
ACTUATE_ONLOAD
public static final short ACTUATE_ONLOAD
- See Also:
- Constant Field Values
SMILAElementImpl
public SMILAElementImpl(org.apache.xerces.dom.DocumentImpl owner,
SMILDocumentImpl smil,
java.lang.String ns)
- Constructor - Set the owner and name.
activate
public void activate()
- Overridden activate() - this will also show the media.
If actuate == ACTUATE_ONLOAD, this will immediately follow a link.
Otherwise, nothing is done. Links are actually handled in the media
element - clicking any media element under a link will actuate the link.
So, the link processing is actually done in the media element.
- Specified by:
activate in interface XElementBasicTime- Overrides:
activate in class ElementBasicTimeImpl
getHref
public java.lang.String getHref()
- See the href attribute.
- Specified by:
getHref in interface XSMILAElement
- Throws:
org.w3c.dom.DOMException - NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly.
setHref
public void setHref(java.lang.String href)
throws org.w3c.dom.DOMException
- Specified by:
setHref in interface XSMILAElement
- Throws:
org.w3c.dom.DOMException
getSourceLevel
public java.lang.String getSourceLevel()
- See the sourceLevel attribute.
- Specified by:
getSourceLevel in interface XSMILAElement
- Throws:
org.w3c.dom.DOMException - NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly.
setSourceLevel
public void setSourceLevel(java.lang.String sourceLevel)
throws org.w3c.dom.DOMException
- Specified by:
setSourceLevel in interface XSMILAElement
- Throws:
org.w3c.dom.DOMException
getDestinationLevel
public java.lang.String getDestinationLevel()
- See the destinationLevel attribute.
- Specified by:
getDestinationLevel in interface XSMILAElement
- Throws:
org.w3c.dom.DOMException - NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly.
setDestinationLevel
public void setDestinationLevel(java.lang.String destinationLevel)
throws org.w3c.dom.DOMException
- Specified by:
setDestinationLevel in interface XSMILAElement
- Throws:
org.w3c.dom.DOMException
getSourcePlaystate
public short getSourcePlaystate()
- See the sourcePlaystate attribute.
- Specified by:
getSourcePlaystate in interface XSMILAElement
- Throws:
org.w3c.dom.DOMException - NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly.
setSourcePlaystate
public void setSourcePlaystate(short sourcePlaystate)
throws org.w3c.dom.DOMException
- Specified by:
setSourcePlaystate in interface XSMILAElement
- Throws:
org.w3c.dom.DOMException
getDestinationPlaystate
public short getDestinationPlaystate()
- See the destinationPlaystate attribute.
- Specified by:
getDestinationPlaystate in interface XSMILAElement
- Throws:
org.w3c.dom.DOMException - NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly.
setDestinationPlaystate
public void setDestinationPlaystate(short destinationPlaystate)
throws org.w3c.dom.DOMException
- Specified by:
setDestinationPlaystate in interface XSMILAElement
- Throws:
org.w3c.dom.DOMException
getShow
public short getShow()
- See the show attribute.
- Specified by:
getShow in interface XSMILAElement
- Throws:
org.w3c.dom.DOMException - NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly.
setShow
public void setShow(short show)
throws org.w3c.dom.DOMException
- Specified by:
setShow in interface XSMILAElement
- Throws:
org.w3c.dom.DOMException
getAccessKey
public java.lang.String getAccessKey()
- See the accesskey attribute.
- Specified by:
getAccessKey in interface XSMILAElement
- Throws:
org.w3c.dom.DOMException - NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly.
setAccessKey
public void setAccessKey(java.lang.String accesskey)
throws org.w3c.dom.DOMException
- Specified by:
setAccessKey in interface XSMILAElement
- Throws:
org.w3c.dom.DOMException
getTabindex
public int getTabindex()
- See the tabindex attribute in LinkingAttributes module.
- Specified by:
getTabindex in interface XSMILAElement
- Throws:
org.w3c.dom.DOMException - NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly.
setTabindex
public void setTabindex(int tabindex)
throws org.w3c.dom.DOMException
- Specified by:
setTabindex in interface XSMILAElement
- Throws:
org.w3c.dom.DOMException
getTarget
public java.lang.String getTarget()
- See the target attribute.
- Specified by:
getTarget in interface XSMILAElement
- Throws:
org.w3c.dom.DOMException - NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly.
setTarget
public void setTarget(java.lang.String target)
throws org.w3c.dom.DOMException
- Specified by:
setTarget in interface XSMILAElement
- Throws:
org.w3c.dom.DOMException
getExternal
public boolean getExternal()
- See the external attribute.
- Specified by:
getExternal in interface XSMILAElement
- Throws:
org.w3c.dom.DOMException - NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly.
setExternal
public void setExternal(java.lang.String external)
throws org.w3c.dom.DOMException
- Specified by:
setExternal in interface XSMILAElement
- Throws:
org.w3c.dom.DOMException
getActuate
public short getActuate()
- See the actuate attribute.
- Specified by:
getActuate in interface XSMILAElement
- Throws:
org.w3c.dom.DOMException - NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly.
setActuate
public void setActuate(short actuate)
throws org.w3c.dom.DOMException
- Specified by:
setActuate in interface XSMILAElement
- Throws:
org.w3c.dom.DOMException
activateLink
public void activateLink(java.awt.event.MouseEvent e)
- Traverse link in this element. Opens the new document either in this
window or a new window. Or an internal or external link.
mouseClicked
public void mouseClicked(java.awt.event.MouseEvent e)
- Mouse events - this will be called if a link is clicked.
- Specified by:
mouseClicked in interface MediaListener
mouseEntered
public void mouseEntered()
- Specified by:
mouseEntered in interface MediaListener
mouseExited
public void mouseExited()
- Specified by:
mouseExited in interface MediaListener
mousePressed
public void mousePressed()
- Specified by:
mousePressed in interface MediaListener
mouseReleased
public void mouseReleased()
- Specified by:
mouseReleased in interface MediaListener
mediaPrefetched
public void mediaPrefetched()
- Description copied from interface:
MediaListener
- Called when the media has been prefetched.
- Specified by:
mediaPrefetched in interface MediaListener
mediaEnded
public void mediaEnded()
- Description copied from interface:
MediaListener
- Called when the media has ended.
- Specified by:
mediaEnded in interface MediaListener- Overrides:
mediaEnded in class ElementBasicTimeImpl
X-Smiles 1.2