Package org.opencms.gwt.shared
Class CmsListInfoBean
java.lang.Object
org.opencms.gwt.shared.CmsIconBean
org.opencms.gwt.shared.CmsListInfoBean
- All Implemented Interfaces:
com.google.gwt.user.client.rpc.IsSerializable
,I_CmsHasIconClasses
,I_CmsHasTitle
,I_CmsHasType
- Direct Known Subclasses:
CmsExternalLinkInfoBean
,CmsGalleryFolderBean
,CmsGalleryType
,CmsModelResourceInfo
,CmsNewResourceInfo
,CmsPublishResource
,CmsResourceListInfo
,CmsResourceTypeBean
,CmsResultItemBean
A bean holding all info to be displayed in
org.opencms.gwt.client.ui.CmsListItemWidget
s.- Since:
- 8.0.0
- See Also:
-
org.opencms.gwt.client.ui.CmsListItemWidget
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Lock icons.static enum
Enum for the type of page icon which should be displayed. -
Field Summary
-
Constructor Summary
ConstructorDescriptionDefault constructor.CmsListInfoBean
(String title, String subtitle, List<CmsAdditionalInfoBean> additionalInfo) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addAdditionalInfo
(String name, String value) Sets a new additional info.void
addAdditionalInfo
(String name, String value, String style) Sets a new additional info.Returns the additional info.Returns a flag which indicates whether this info bean was generated for a folder.Returns the lock icon.Returns the lock icon title.Returns the resourceState.Returns the resource type name.Returns the state icon.Returns the sub-title.getTitle()
Returns the title.getType()
Returns the type.boolean
Returns if the bean has additional info elements.boolean
Returns true if the 'changed' resource state should be marked by an icon.void
setAdditionalInfo
(List<CmsAdditionalInfoBean> additionalInfo) Sets the additional info.void
setIsFolder
(Boolean isFolder) Sets thE 'isFolder' flag.void
setLockIcon
(CmsListInfoBean.LockIcon lockIcon) Sets the lock icon.void
setLockIconTitle
(String lockIconTitle) Sets the lock icon title.void
setMarkChangedState
(boolean markChanged) Enables or disables the display of the 'changed' icon for the 'changed' resource state.void
setResourceState
(CmsResourceState resourceState) Sets the resourceState.void
setResourceType
(String resourceType) Sets the resource type name.void
setStateIcon
(CmsListInfoBean.StateIcon stateIcon) Sets the state icon.void
setSubTitle
(String subTitle) Sets the sub-title.void
Sets the title.Methods inherited from class org.opencms.gwt.shared.CmsIconBean
getBigIconClasses, getSmallIconClasses, setBigIconClasses, setSmallIconClasses
-
Field Details
-
CSS_CLASS_MULTI_LINE
CSS class for multi-line additional info's.- See Also:
-
-
Constructor Details
-
CmsListInfoBean
public CmsListInfoBean()Default constructor. -
CmsListInfoBean
Constructor.- Parameters:
title
- the titlesubtitle
- the subtitleadditionalInfo
- the additional info
-
-
Method Details
-
addAdditionalInfo
Sets a new additional info.- Parameters:
name
- the additional info namevalue
- the additional info value
-
addAdditionalInfo
Sets a new additional info.- Parameters:
name
- the additional info namevalue
- the additional info valuestyle
- the CSS style to apply to the info
-
getAdditionalInfo
Returns the additional info.- Returns:
- the additional info
-
getIsFolder
Returns a flag which indicates whether this info bean was generated for a folder.This may not be set (i.e. null).
- Returns:
- a Boolean indicating whether this bean was generated for a folder
-
getLockIcon
Returns the lock icon.- Returns:
- the lockIcon
-
getLockIconTitle
Returns the lock icon title.- Returns:
- the lock icon title
-
getResourceState
Returns the resourceState.- Returns:
- the resourceState
-
getResourceType
Returns the resource type name.- Returns:
- the resource type name
-
getStateIcon
Returns the state icon.The state icon indicates if a resource is exported, secure etc.
- Returns:
- the state Icon
-
getSubTitle
Returns the sub-title.- Returns:
- the sub-title
-
getTitle
Returns the title.- Specified by:
getTitle
in interfaceI_CmsHasTitle
- Returns:
- the title
-
getType
Description copied from interface:I_CmsHasType
Returns the type.- Specified by:
getType
in interfaceI_CmsHasType
- Returns:
- the type
- See Also:
-
hasAdditionalInfo
Returns if the bean has additional info elements.- Returns:
true
if the bean has additional info elements
-
isMarkChangedState
Returns true if the 'changed' resource state should be marked by an icon.- Returns:
- true if the 'changed' resource state should be marked by an icon.
-
setAdditionalInfo
Sets the additional info.- Parameters:
additionalInfo
- the additional info to set
-
setIsFolder
Sets thE 'isFolder' flag.- Parameters:
isFolder
- the new value
-
setLockIconTitle
Sets the lock icon title.- Parameters:
lockIconTitle
- the lock icon title to set
-
setMarkChangedState
Enables or disables the display of the 'changed' icon for the 'changed' resource state.- Parameters:
markChanged
- true if the 'changed' state should be displayed
-
setResourceState
Sets the resourceState.- Parameters:
resourceState
- the resourceState to set
-
setResourceType
Sets the resource type name.- Parameters:
resourceType
- the resource type name to set
-
setSubTitle
Sets the sub-title.- Parameters:
subTitle
- the sub-title to set
-
setTitle
Sets the title.- Parameters:
title
- the title to set
-