|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.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
XSmiles DOM Elements
| Nested Class Summary | |
class |
XSmilesElementImpl.PseudoNodeList
implementation of a nodelist that contains also pseudoelements |
| Field Summary | |
static short |
DESTROYED
|
protected short |
elementStatus
the current status (initialized etc.) |
static short |
INITIALIZED
|
static short |
INITIALIZING
|
protected java.util.Hashtable |
setPseudoClasses
|
protected org.w3c.dom.css.CSSStyleDeclaration |
style
the CSS style declaration for this element, Only updateStyle() is allowed to change this directly to null |
static short |
UNINITIALIZED
|
static java.lang.String |
xblpropname
|
| 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 | |
XSmilesElementImpl(org.apache.xerces.dom.DocumentImpl ownerDocument,
java.lang.String value)
|
|
XSmilesElementImpl(org.apache.xerces.dom.DocumentImpl ownerDocument,
java.lang.String namespaceURI,
java.lang.String qualifiedName)
|
|
| Method Summary | |
void |
addBinding(java.lang.String bindingURI)
|
boolean |
addUndistributedChild(org.w3c.dom.Node node)
Adds a node back to this element's content. |
java.lang.Object |
clone()
|
void |
clonePseudoElements(PseudoElementContainerService from,
PseudoElementContainerService to)
|
void |
cloneSubtree(org.w3c.dom.Element source)
|
static void |
debugNode(org.w3c.dom.Node n)
|
static void |
debugNode(org.w3c.dom.Node n,
boolean printPseudoElements)
|
void |
destroy()
Destroy this element and its descendants recursively. |
void |
dispatchEventInMainThread(org.w3c.dom.events.Event ev)
|
XSmilesConnection |
get(java.net.URL dest,
short type)
Retrieve a resource via an URL using authenticated HTTP get and store it as a resource under this contenthandler. |
boolean |
getApplyBindingSheets()
Returns value telling if styles included from XBL-tree into whose content-element this node is redistributed are applied to this element and its children. |
boolean |
getAuthorSheets()
Returns the value of authorSheets. |
org.w3c.dom.NodeList |
getChildNodes(boolean includePseudoElements)
this method includes also pseudoelements |
short |
getElementStatus()
|
java.lang.String |
getId()
by default return the value of 'id' attribute, any element can override this |
XSmilesElementImpl |
getOriginalClone()
Returns the original DOM tree of this element. |
boolean |
getPseudoClass(java.lang.String pseudoclass)
query only those set using setPseudoClassMethod |
ResourceReferencer |
getResourceReferencer()
|
RuleTreeNode |
getRuleNode()
|
org.w3c.dom.css.CSSStyleDeclaration |
getStyle()
returns the stored style for this element |
java.lang.String |
getStyleAttrValue()
By default return null, so style attribute is not supported, this can be overridden by subclasses |
java.lang.String |
getText()
|
static java.lang.String |
getText(org.w3c.dom.Node node)
|
java.util.Vector |
getUndistributedChildNodes()
Method for getting child nodes that aren't yet distributed. |
XBLImplementationList |
getXblImplementations()
The xblImplementations attribute on all elements must return an instance of an XBLImplementationList object (the same object for the lifetime of the element), which is a live list of the implementation objects provided by the bindings for that bound element at any particular point in time. |
boolean |
hasBinding(java.lang.String bindingURI)
|
boolean |
hasStyle()
|
void |
init()
Initialize this element. |
boolean |
initFinalFlattenedTree()
Clones this element's content so this element can be resetted with resetFinalFlattenedTree() sometime. |
void |
initStyle(XSmilesStyleSheet styleSheet)
|
boolean |
isInitedForReset()
|
boolean |
isPseudoClass(java.lang.String pseudoclass)
ask whether this element belongs to a certain CSS pseudoclass |
void |
removeBinding(java.lang.String bindingURI)
|
org.w3c.dom.Node |
removeUndistributedChild(org.w3c.dom.Node node)
Removes the the given node from this element, so that the node can be redistributed. |
void |
replaceNode(XSmilesElementImpl original,
XSmilesElementImpl current)
Replaces original-node with current-node. |
void |
resetFinalFlattenedTree()
Changes this node back to its original DOM tree. |
java.net.URL |
resolveURI(java.lang.String src)
Resolve an uri to an absolute uri using the base-uri of the current element. |
static org.w3c.dom.Element |
searchElementWithId(org.w3c.dom.Element e,
java.lang.String id)
Searches for element with id from the tree under element e. |
static org.w3c.dom.Element |
searchElementWithId(org.w3c.dom.Element e,
java.lang.String id,
int n)
Searches for the n-th element with id from the tree under element e. |
void |
setApplyBindingSheets(boolean b)
Sets if styles included from XBL-tree into whose content-element this node is redistributed are applied to this element and its children. |
void |
setAuthorSheets(boolean value)
Sets the attribute authorSheets to value. |
void |
setPseudoClass(java.lang.String pseudoclass,
boolean value)
sets pseudo class on/off |
void |
setRuleNode(RuleTreeNode rtn)
|
void |
setStyle(org.w3c.dom.css.CSSStyleDeclaration a_style)
set the resolved CSS style for this element |
void |
updateStyle()
Update this and child elements' styles |
| 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, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, 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, insertBefore, item, removeChild, replaceChild, 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 |
| Field Detail |
public static final short UNINITIALIZED
public static final short INITIALIZED
public static final short INITIALIZING
public static final short DESTROYED
protected org.w3c.dom.css.CSSStyleDeclaration style
protected short elementStatus
protected java.util.Hashtable setPseudoClasses
public static final java.lang.String xblpropname
| Constructor Detail |
public XSmilesElementImpl(org.apache.xerces.dom.DocumentImpl ownerDocument,
java.lang.String value)
public XSmilesElementImpl(org.apache.xerces.dom.DocumentImpl ownerDocument,
java.lang.String namespaceURI,
java.lang.String qualifiedName)
| Method Detail |
public void init()
init in interface InitializableElementpublic short getElementStatus()
public void dispatchEventInMainThread(org.w3c.dom.events.Event ev)
public void updateStyle()
public void setRuleNode(RuleTreeNode rtn)
setRuleNode in interface StylableElementpublic RuleTreeNode getRuleNode()
getRuleNode in interface StylableElementpublic void initStyle(XSmilesStyleSheet styleSheet)
public void destroy()
public org.w3c.dom.css.CSSStyleDeclaration getStyle()
getStyle in interface StylableElementpublic boolean hasStyle()
hasStyle in interface StylableElementpublic void setStyle(org.w3c.dom.css.CSSStyleDeclaration a_style)
setStyle in interface StylableElementpublic java.lang.String getId()
public java.lang.String getStyleAttrValue()
getStyleAttrValue in interface StylableElement
public static org.w3c.dom.Element searchElementWithId(org.w3c.dom.Element e,
java.lang.String id)
e - start elementid - id to search for
public static org.w3c.dom.Element searchElementWithId(org.w3c.dom.Element e,
java.lang.String id,
int n)
e - start elementid - id to search forn - which occurence
public java.lang.String getText()
public static java.lang.String getText(org.w3c.dom.Node node)
public void setPseudoClass(java.lang.String pseudoclass,
boolean value)
PseudoClassController
setPseudoClass in interface PseudoClassControllerpublic boolean getPseudoClass(java.lang.String pseudoclass)
PseudoClassController
getPseudoClass in interface PseudoClassControllerpublic boolean isPseudoClass(java.lang.String pseudoclass)
isPseudoClass in interface StylableElement
public java.net.URL resolveURI(java.lang.String src)
throws java.net.MalformedURLException
src - the uri to resolve
java.net.MalformedURLException - if the resulting URL has an unsupported scheme or a parse
error occured
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
java.lang.CloneNotSupportedException
public void clonePseudoElements(PseudoElementContainerService from,
PseudoElementContainerService to)
public void cloneSubtree(org.w3c.dom.Element source)
public org.w3c.dom.NodeList getChildNodes(boolean includePseudoElements)
includePseudoElements -
public static void debugNode(org.w3c.dom.Node n)
public static void debugNode(org.w3c.dom.Node n,
boolean printPseudoElements)
public ResourceReferencer getResourceReferencer()
public XSmilesConnection get(java.net.URL dest,
short type)
throws java.lang.Exception
ResourceFetcher
get in interface ResourceFetcherjava.lang.Exception
public void replaceNode(XSmilesElementImpl original,
XSmilesElementImpl current)
original - current - public XSmilesElementImpl getOriginalClone()
public void resetFinalFlattenedTree()
public boolean isInitedForReset()
public boolean initFinalFlattenedTree()
public java.util.Vector getUndistributedChildNodes()
public org.w3c.dom.Node removeUndistributedChild(org.w3c.dom.Node node)
node - Node to be removed
public boolean addUndistributedChild(org.w3c.dom.Node node)
node - Element to be added.
public void addBinding(java.lang.String bindingURI)
public void removeBinding(java.lang.String bindingURI)
public boolean hasBinding(java.lang.String bindingURI)
public void setApplyBindingSheets(boolean b)
b - value to be setpublic boolean getApplyBindingSheets()
public void setAuthorSheets(boolean value)
public boolean getAuthorSheets()
public XBLImplementationList getXblImplementations()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||