|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.merlotxml.merlot.MerlotDOMNode
org.merlotxml.merlot.MerlotDOMDocument
DOM document container for Merlot. Contains a DOM node, handles getting an icon for a particular node, getting the editor for a node, etc. Also implements transferable so that the node can be drag and dropped, or cut and pasted.
Nested Class Summary | |
class |
MerlotDOMDocument.SearchCriteria
|
Field Summary | |
protected IDManager |
_idManager
The IDManager for this document |
protected java.util.HashMap |
_nodeDescription
Node descriptors |
Fields inherited from class org.merlotxml.merlot.MerlotDOMNode |
_children, _clonedFrom, _dtdPluginConfig, _file, _listeners, _parent, _theNode, DOM_TREENODE_FLAVOR |
Fields inherited from interface org.merlotxml.merlot.MerlotConstants |
ACTION_MENU_ACCELERATOR, ACTION_MENU_ICON, ACTION_NAME, ACTION_SHORT_DESCRIPTION, ACTION_SMALL_ICON, AFTER, BEFORE, ERR, INTO, UI, XML |
Constructor Summary | |
MerlotDOMDocument(org.w3c.dom.Document data,
XMLFile doc)
|
Method Summary | |
MerlotDOMFragment |
createDocumentFragment()
|
java.util.Vector |
findAllDescendants(MerlotDOMNode startNode,
MerlotDOMDocument.SearchCriteria c)
Visits every node in the tree from the top down, and retrieves all nodes matching the criteria. |
MerlotDOMNode |
findFirstDescendant(MerlotDOMNode startNode,
MerlotDOMDocument.SearchCriteria c)
Visits nodes in the tree from the top down, but stops as soon as a node is found that matches the criteria. |
MerlotDOMNode |
findMerlotDOMNode(org.w3c.dom.Node node)
Finds the corresponding MerlotDOMNode for a Node. |
MerlotDOMNode |
findNodeById(java.lang.String id)
|
MerlotDOMNode |
findNodeByIdSlow(java.lang.String id)
Finds the first node with the specified ID. |
org.w3c.dom.Document |
getDocument()
|
IDManager |
getIdManager()
Return THE IDManager specific to the document containing this node. |
MerlotDOMNode |
getMerlotDOMNode(org.w3c.dom.Node node)
|
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
protected IDManager _idManager
protected java.util.HashMap _nodeDescription
Constructor Detail |
public MerlotDOMDocument(org.w3c.dom.Document data, XMLFile doc)
Method Detail |
public org.w3c.dom.Document getDocument()
getDocument
in class MerlotDOMNode
public MerlotDOMFragment createDocumentFragment()
public IDManager getIdManager()
MerlotDOMNode
getIdManager
in class MerlotDOMNode
public MerlotDOMNode getMerlotDOMNode(org.w3c.dom.Node node)
public MerlotDOMNode findMerlotDOMNode(org.w3c.dom.Node node)
public MerlotDOMNode findNodeById(java.lang.String id)
public MerlotDOMNode findNodeByIdSlow(java.lang.String id)
public MerlotDOMNode findFirstDescendant(MerlotDOMNode startNode, MerlotDOMDocument.SearchCriteria c)
SearchCriteria
in order to
do different searches.
public java.util.Vector findAllDescendants(MerlotDOMNode startNode, MerlotDOMDocument.SearchCriteria c)
SearchCriteria
in order to do different searches.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |