info.magnolia.ui.vaadin.gwt.client.editor.dom
Class CmsNode
java.lang.Object
info.magnolia.ui.vaadin.gwt.client.editor.dom.CmsNode
- Direct Known Subclasses:
- MgnlElement
public class CmsNode
- extends Object
Represents a node inside the tree structure built by the CommentProcessor
.
Holds a reference to its parent node and a list to its children and allows navigating inside the tree structure.
- See Also:
MgnlPage
,
MgnlArea
,
MgnlComponent
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
parent
protected CmsNode parent
CmsNode
public CmsNode(CmsNode parent)
getParent
public CmsNode getParent()
setParent
public void setParent(CmsNode parent)
getChildren
public LinkedList<CmsNode> getChildren()
getDescendants
public List<CmsNode> getDescendants()
getAscendants
public List<CmsNode> getAscendants()
getParentArea
public MgnlArea getParentArea()
getRootArea
public MgnlArea getRootArea()
getComponents
public List<MgnlComponent> getComponents()
getAreas
public List<MgnlArea> getAreas()
getRoot
public CmsNode getRoot()
isRelated
public boolean isRelated(CmsNode relative)
delete
public void delete()
asMgnlElement
public MgnlElement asMgnlElement()
getLevel
public int getLevel()
Copyright © 2013 Magnolia International Ltd.. All Rights Reserved.