info.magnolia.templating.editor.client.dom
Class MgnlElement
java.lang.Object
info.magnolia.templating.editor.client.dom.MgnlElement
public class MgnlElement
- extends Object
MgnlElement Constructor.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MgnlElement
public MgnlElement(CMSComment comment,
MgnlElement parent)
throws IllegalArgumentException
- Throws:
IllegalArgumentException
- if comments tagname is not a defined marker.
isMgnlElement
public boolean isMgnlElement(String tagName)
isArea
public boolean isArea()
isComponent
public boolean isComponent()
isInherited
public boolean isInherited()
getParent
public MgnlElement getParent()
setParent
public void setParent(MgnlElement parent)
getChildren
public LinkedList<MgnlElement> getChildren()
getDescendants
public List<MgnlElement> getDescendants()
getAscendants
public List<MgnlElement> getAscendants()
getRootArea
public MgnlElement getRootArea()
getParentArea
public MgnlElement getParentArea()
getTopParentArea
public MgnlElement getTopParentArea()
getComment
@Deprecated
public CMSComment getComment()
- Deprecated.
getComponents
public List<MgnlElement> getComponents()
getAreas
public List<MgnlElement> getAreas()
getRoot
public MgnlElement getRoot()
isRelated
public boolean isRelated(MgnlElement relative)
delete
public void delete()
getFirstElement
public com.google.gwt.dom.client.Element getFirstElement()
setFirstElement
public void setFirstElement(com.google.gwt.dom.client.Element firstElement)
getLastElement
public com.google.gwt.dom.client.Element getLastElement()
setLastElement
public void setLastElement(com.google.gwt.dom.client.Element lastElement)
setComponentElement
public void setComponentElement(com.google.gwt.dom.client.Element componentElement)
setAreaElement
public void setAreaElement(com.google.gwt.dom.client.Element areaElement)
setEditElement
public void setEditElement(com.google.gwt.dom.client.Element editElement)
getComponentElement
public com.google.gwt.dom.client.Element getComponentElement()
getAreaElement
public com.google.gwt.dom.client.Element getAreaElement()
getEditElement
public com.google.gwt.dom.client.Element getEditElement()
setEndComment
public void setEndComment(CMSComment endComment)
getEndComment
public CMSComment getEndComment()
getAttribute
public String getAttribute(String key)
containsAttribute
public boolean containsAttribute(String key)
getAttributes
public Map<String,String> getAttributes()
Copyright © 2003–2014 Magnolia International Ltd.. All rights reserved.