Package org.opencms.gwt.shared
Class CmsCategoryBean
java.lang.Object
org.opencms.gwt.shared.CmsCategoryBean
- All Implemented Interfaces:
com.google.gwt.user.client.rpc.IsSerializable
,I_CmsHasIconClasses
,I_CmsHasPath
,I_CmsHasTitle
- Direct Known Subclasses:
CmsCategoryTreeEntry
public class CmsCategoryBean
extends Object
implements I_CmsHasTitle, I_CmsHasPath, com.google.gwt.user.client.rpc.IsSerializable, I_CmsHasIconClasses
A specific bean holding all info to be displayed in the categories tab.
- Since:
- 8.0.0
-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
Constructor for serialization only.CmsCategoryBean
(CmsCategoryTreeEntry categoryTreeEntry) Constructor.CmsCategoryBean
(CmsCategory category) Constructor.CmsCategoryBean
(CmsUUID id, String title, String description, String path, String basePath, String rootPath) The constructor. -
Method Summary
Modifier and TypeMethodDescriptionReturns the base path.Returns the big icon CSS classes.Returns the description.getId()
Returns the id.getPath()
Returns the category path.Returns the root path.Returns the category site path.Returns the small icon CSS classes.getTitle()
Returns the title.boolean
matchesFilter
(String filter) Returns if the category matches the given filter.void
setDescription
(String description) Sets the description.void
Sets the category path.void
setSitePath
(String sitePath) Sets the category site path.void
Sets the title.
-
Field Details
-
BIG_ICON_CLASSES
The big category type icon classes.- See Also:
-
SMALL_ICON_CLASSES
The small category type icon classes.- See Also:
-
-
Constructor Details
-
CmsCategoryBean
Constructor.- Parameters:
category
- the server-side category
-
CmsCategoryBean
public CmsCategoryBean(CmsUUID id, String title, String description, String path, String basePath, String rootPath) The constructor.- Parameters:
id
- the category idtitle
- the title to setdescription
- the subtitle to setpath
- the category pathbasePath
- the category base pathrootPath
- the category root path
-
CmsCategoryBean
protected CmsCategoryBean()Constructor for serialization only.
-
-
Method Details
-
getBasePath
Returns the base path.- Returns:
- the base path
-
getBigIconClasses
Description copied from interface:I_CmsHasIconClasses
Returns the big icon CSS classes.- Specified by:
getBigIconClasses
in interfaceI_CmsHasIconClasses
- Returns:
- the big icon CSS classes
- See Also:
-
getDescription
Returns the description.- Returns:
- the description
-
getId
Returns the id.- Returns:
- the id
-
getPath
Returns the category path.- Specified by:
getPath
in interfaceI_CmsHasPath
- Returns:
- the category path
-
getRootPath
Returns the root path.- Returns:
- the root path
-
getSitePath
Returns the category site path.- Returns:
- the category site path
-
getSmallIconClasses
Description copied from interface:I_CmsHasIconClasses
Returns the small icon CSS classes.- Specified by:
getSmallIconClasses
in interfaceI_CmsHasIconClasses
- Returns:
- the small icon CSS classes
- See Also:
-
getTitle
Returns the title.- Specified by:
getTitle
in interfaceI_CmsHasTitle
- Returns:
- the title
-
matchesFilter
Returns if the category matches the given filter.- Parameters:
filter
- the filter to match- Returns:
true
if the gallery matches the given filter.
-
setDescription
Sets the description.- Parameters:
description
- the description to set
-
setPath
Sets the category path.- Parameters:
path
- the category path to set
-
setSitePath
Sets the category site path.- Parameters:
sitePath
- category site path
-
setTitle
Sets the title.- Parameters:
title
- the title to set
-