Package org.opencms.gwt.shared
Class CmsCategoryTreeEntry
- java.lang.Object
-
- org.opencms.gwt.shared.CmsCategoryBean
-
- org.opencms.gwt.shared.CmsCategoryTreeEntry
-
- All Implemented Interfaces:
com.google.gwt.user.client.rpc.IsSerializable
,I_CmsHasIconClasses
,I_CmsHasPath
,I_CmsHasTitle
public class CmsCategoryTreeEntry extends CmsCategoryBean
Recursive category tree entry.- Since:
- 8.0.0
-
-
Field Summary
-
Fields inherited from class org.opencms.gwt.shared.CmsCategoryBean
BIG_ICON_CLASSES, SMALL_ICON_CLASSES
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
CmsCategoryTreeEntry()
Constructor for serialization.CmsCategoryTreeEntry(CmsCategory category)
Clone constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addChild(CmsCategoryTreeEntry child)
Adds a child entry.java.util.List<CmsCategoryTreeEntry>
getChildren()
Returns the children.java.lang.Object
getTitleOrName()
Gets the title of the category, or the name if the title is not set.void
setChildren(java.util.List<CmsCategoryTreeEntry> children)
Sets the children.-
Methods inherited from class org.opencms.gwt.shared.CmsCategoryBean
getBasePath, getBigIconClasses, getDescription, getId, getPath, getRootPath, getSitePath, getSmallIconClasses, getTitle, matchesFilter, setDescription, setPath, setSitePath, setTitle
-
-
-
-
Constructor Detail
-
CmsCategoryTreeEntry
public CmsCategoryTreeEntry(CmsCategory category)
Clone constructor.- Parameters:
category
- the category to clone
-
CmsCategoryTreeEntry
protected CmsCategoryTreeEntry()
Constructor for serialization.
-
-
Method Detail
-
addChild
public void addChild(CmsCategoryTreeEntry child)
Adds a child entry.- Parameters:
child
- the child to add
-
getChildren
public java.util.List<CmsCategoryTreeEntry> getChildren()
Returns the children.- Returns:
- the children
-
getTitleOrName
public java.lang.Object getTitleOrName()
Gets the title of the category, or the name if the title is not set.- Returns:
- the title or name
-
setChildren
public void setChildren(java.util.List<CmsCategoryTreeEntry> children)
Sets the children.- Parameters:
children
- the children to set
-
-