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
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
ConstructorsModifierConstructorDescriptionprotected
Constructor for serialization.CmsCategoryTreeEntry
(CmsCategory category) Clone constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addChild
(CmsCategoryTreeEntry child) Adds a child entry.Returns the children.Gets the 'forced visible' status.Gets the title of the category, or the name if the title is not set.boolean
isUsed()
Checks if the category is among the 'recently used' ones for the current user.void
setChildren
(List<CmsCategoryTreeEntry> children) Sets the children.void
setForcedVisible
(Boolean visibility) Sets the 'forced visible' status.void
setUsed
(boolean used) Sets the 'recently used' state.Methods inherited from class org.opencms.gwt.shared.CmsCategoryBean
getBasePath, getBigIconClasses, getDescription, getId, getPath, getRootPath, getSitePath, getSmallIconClasses, getTitle, matchesFilter, setDescription, setPath, setSitePath, setTitle
-
Constructor Details
-
CmsCategoryTreeEntry
Clone constructor.- Parameters:
category
- the category to clone
-
CmsCategoryTreeEntry
protected CmsCategoryTreeEntry()Constructor for serialization.
-
-
Method Details
-
getChildren
Returns the children.- Returns:
- the children
-
getForcedVisible
Gets the 'forced visible' status.A category tree entry with this status set to 'true' should be shown even if it is marked as hidden.
- Returns:
- the 'forced visible' status
-
getTitleOrName
Gets the title of the category, or the name if the title is not set.- Returns:
- the title or name
-
isUsed
Checks if the category is among the 'recently used' ones for the current user.- Returns:
- true if the category was recently used
-
setChildren
Sets the children.- Parameters:
children
- the children to set
-
setForcedVisible
Sets the 'forced visible' status.- Parameters:
visibility
- the new value
-
setUsed
Sets the 'recently used' state.- Parameters:
used
- the new 'recently used' state