|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.batik.bridge.svg12.ContentManager
public class ContentManager
A class to manage all XBL content elements in a shadow tree.
Nested Class Summary | |
---|---|
protected class |
ContentManager.ContentElementDOMAttrModifiedEventListener
The DOM EventListener invoked when an attribute is modified, for content elements. |
protected class |
ContentManager.DOMAttrModifiedEventListener
The DOM EventListener invoked when an attribute is modified. |
protected class |
ContentManager.DOMNodeInsertedEventListener
The DOM EventListener invoked when a node is added. |
protected class |
ContentManager.DOMNodeRemovedEventListener
The DOM EventListener invoked when a node is removed. |
protected class |
ContentManager.DOMSubtreeModifiedEventListener
The DOM EventListener invoked when a subtree has changed. |
protected class |
ContentManager.ShadowTreeNodeInsertedListener
The DOM EventListener invoked when a node in the shadow tree has been inserted. |
protected class |
ContentManager.ShadowTreeNodeRemovedListener
The DOM EventListener invoked when a node in the shadow tree has been removed. |
protected class |
ContentManager.ShadowTreeSubtreeModifiedListener
The DOM EventListener invoked when a subtree of the shadow tree has changed. |
Field Summary | |
---|---|
protected org.w3c.dom.Element |
boundElement
The bound element that owns the shadow tree. |
protected ContentManager.ContentElementDOMAttrModifiedEventListener |
contentElementDomAttrModifiedEventListener
DOMAttrModified listener for content elements. |
protected java.util.LinkedList |
contentElementList
List of content elements. |
protected ContentManager.DOMAttrModifiedEventListener |
domAttrModifiedEventListener
DOMAttrModified listener for bound element children. |
protected ContentManager.DOMNodeInsertedEventListener |
domNodeInsertedEventListener
DOMNodeInserted listener for bound element children. |
protected ContentManager.DOMNodeRemovedEventListener |
domNodeRemovedEventListener
DOMNodeRemoved listener for bound element children. |
protected ContentManager.DOMSubtreeModifiedEventListener |
domSubtreeModifiedEventListener
DOMSubtreeModified listener for shadow tree nodes. |
protected java.util.HashMap |
listeners
Map of XBLContentElement objects to EventListenerList objects. |
protected org.w3c.dom.Node |
removedNode
The recently removed node from the shadow tree. |
protected java.util.HashMap |
selectedNodes
Map of content elements to a list of nodes that were selected by that content element. |
protected java.util.HashMap |
selectors
Map of content elements to selectors. |
protected XBLOMShadowTreeElement |
shadowTree
The shadow tree whose content elements this object is managing. |
protected ContentManager.ShadowTreeNodeInsertedListener |
shadowTreeNodeInsertedListener
DOMNodeInserted listener for content elements in the shadow tree. |
protected ContentManager.ShadowTreeNodeRemovedListener |
shadowTreeNodeRemovedListener
DOMNodeRemoved listener for content elements in the shadow tree. |
protected ContentManager.ShadowTreeSubtreeModifiedListener |
shadowTreeSubtreeModifiedListener
DOMSubtreeModified listener for content elements in the shadow tree. |
protected DefaultXBLManager |
xblManager
The XBL manager. |
Constructor Summary | |
---|---|
ContentManager(XBLOMShadowTreeElement s,
XBLManager xm)
Creates a new ContentManager object. |
Method Summary | |
---|---|
void |
addContentSelectionChangedListener(XBLOMContentElement e,
ContentSelectionChangedListener l)
Adds the specified ContentSelectionChangedListener to the listener list. |
protected void |
dispatchContentSelectionChangedEvent(XBLOMContentElement e)
Dispatches the ContentSelectionChangedEvent to the registered listeners. |
void |
dispose()
Disposes this ContentManager. |
protected XBLOMContentElement |
getContentElement(org.w3c.dom.Node n)
Returns the content element that selected a given node. |
protected java.lang.String |
getContentSelectorLanguage(org.w3c.dom.Element e)
Returns the selector language to be used for the given xbl:content element. |
org.w3c.dom.NodeList |
getSelectedContent(XBLOMContentElement e)
Returns a NodeList of the content that was selected by the given content element. |
void |
removeContentSelectionChangedListener(XBLOMContentElement e,
ContentSelectionChangedListener l)
Removes the specified ContentSelectionChangedListener from the listener list. |
protected void |
update(boolean first)
Updates all content elements. |
protected boolean |
update(boolean first,
org.w3c.dom.Node n)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected XBLOMShadowTreeElement shadowTree
protected org.w3c.dom.Element boundElement
protected DefaultXBLManager xblManager
protected java.util.HashMap selectors
protected java.util.HashMap selectedNodes
protected java.util.LinkedList contentElementList
protected org.w3c.dom.Node removedNode
protected java.util.HashMap listeners
protected ContentManager.ContentElementDOMAttrModifiedEventListener contentElementDomAttrModifiedEventListener
protected ContentManager.DOMAttrModifiedEventListener domAttrModifiedEventListener
protected ContentManager.DOMNodeInsertedEventListener domNodeInsertedEventListener
protected ContentManager.DOMNodeRemovedEventListener domNodeRemovedEventListener
protected ContentManager.DOMSubtreeModifiedEventListener domSubtreeModifiedEventListener
protected ContentManager.ShadowTreeNodeInsertedListener shadowTreeNodeInsertedListener
protected ContentManager.ShadowTreeNodeRemovedListener shadowTreeNodeRemovedListener
protected ContentManager.ShadowTreeSubtreeModifiedListener shadowTreeSubtreeModifiedListener
Constructor Detail |
---|
public ContentManager(XBLOMShadowTreeElement s, XBLManager xm)
s
- the shadow tree element whose content elements this object
will be managingxm
- the XBLManager for this documentMethod Detail |
---|
public void dispose()
public org.w3c.dom.NodeList getSelectedContent(XBLOMContentElement e)
protected XBLOMContentElement getContentElement(org.w3c.dom.Node n)
public void addContentSelectionChangedListener(XBLOMContentElement e, ContentSelectionChangedListener l)
public void removeContentSelectionChangedListener(XBLOMContentElement e, ContentSelectionChangedListener l)
protected void dispatchContentSelectionChangedEvent(XBLOMContentElement e)
protected void update(boolean first)
first
- Whether this is the first update for this ContentManager.protected boolean update(boolean first, org.w3c.dom.Node n)
protected java.lang.String getContentSelectorLanguage(org.w3c.dom.Element e)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |