org.merlotxml.merlot
Class MerlotDOMElement
java.lang.Object
|
+--org.merlotxml.merlot.MerlotDOMNode
|
+--org.merlotxml.merlot.MerlotDOMElement
- Direct Known Subclasses:
- MerlotLibraryItem
- public class MerlotDOMElement
- extends MerlotDOMNode
DOM element 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.
Method Summary |
java.lang.String |
getAttribute(java.lang.String s)
|
java.lang.String |
getElementName()
Returns the DTD name of the element (which we consider it's type)
in the context of merlot |
boolean |
isElement()
Element nodes should overload this to return true. |
void |
setAttribute(java.lang.String name,
java.lang.String value)
sets the attributes one at a time |
void |
setAttributes(java.util.HashMap h)
Sets the attributes according the given hashtable. |
Methods inherited from class org.merlotxml.merlot.MerlotDOMNode |
addMerlotNodeListener,
appendChild,
array2String,
array2String,
clone,
delete,
equals,
fireNodeChanged,
fireNodeDeleted,
fireNodeInserted,
fireNodeRemoved,
getAppendableElements,
getAttributes,
getChildIndex,
getChildNodes,
getChildText,
getClonedFrom,
getDisplayText,
getDocument,
getDTDAttributes,
getDTDPluginConfig,
getEditor,
getEditPanel,
getFirstChild,
getIcon,
getIndices,
getInsertableElements,
getMerlotDOMDocument,
getMerlotNodeListeners,
getNodeName,
getNodes,
getParentNode,
getPreviousSibling,
getPreviousSibling,
getRealNode,
getSmallIcon,
getTransferData,
getTransferDataFlavors,
getXMLFile,
hashCode,
importChild,
importChildAfter,
importChildBefore,
insertAfter,
insertBefore,
insertChildAt,
isAllowableChild,
isDataFlavorSupported,
newChild,
newChild,
newSiblingAfter,
newSiblingAfter,
newSiblingBefore,
newSiblingBefore,
printNode,
printNode,
removeAllMerlotDOMNodeListeners,
removeChild,
removeMerlotNodeListener,
resetCache,
setClonedFrom,
setParentNode,
setParentNode,
toString |
Methods inherited from class java.lang.Object |
finalize,
getClass,
notify,
notifyAll,
wait,
wait,
wait |
MerlotDOMElement
public MerlotDOMElement(org.w3c.dom.Element data,
XMLFile doc)
isElement
public boolean isElement()
- Description copied from class: MerlotDOMNode
- Element nodes should overload this to return true.
- Overrides:
- isElement in class MerlotDOMNode
getElementName
public java.lang.String getElementName()
- Returns the DTD name of the element (which we consider it's type)
in the context of merlot
getAttribute
public java.lang.String getAttribute(java.lang.String s)
setAttributes
public void setAttributes(java.util.HashMap h)
- Sets the attributes according the given hashtable.
(probably should make getAttributes consistent with this at some point
- Overrides:
- setAttributes in class MerlotDOMNode
setAttribute
public void setAttribute(java.lang.String name,
java.lang.String value)
- sets the attributes one at a time