info.magnolia.ui.vaadin.gwt.client.editor.dom
Class CmsNode

java.lang.Object
  extended by 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

Field Summary
protected  CmsNode parent
           
 
Constructor Summary
CmsNode(CmsNode parent)
           
 
Method Summary
 MgnlElement asMgnlElement()
           
 void delete()
           
 List<MgnlArea> getAreas()
           
 List<CmsNode> getAscendants()
           
 LinkedList<CmsNode> getChildren()
           
 List<MgnlComponent> getComponents()
           
 List<CmsNode> getDescendants()
           
 int getLevel()
           
 CmsNode getParent()
           
 MgnlArea getParentArea()
           
 CmsNode getRoot()
           
 MgnlArea getRootArea()
           
 boolean isRelated(CmsNode relative)
           
 void setParent(CmsNode parent)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

parent

protected CmsNode parent
Constructor Detail

CmsNode

public CmsNode(CmsNode parent)
Method Detail

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.