public class CmsListInfoBean extends CmsIconBean implements I_CmsHasTitle, I_CmsHasType
org.opencms.gwt.client.ui.CmsListItemWidgets.org.opencms.gwt.client.ui.CmsListItemWidget| Modifier and Type | Class and Description |
|---|---|
static class |
CmsListInfoBean.LockIcon
Lock icons.
|
static class |
CmsListInfoBean.StateIcon
Enum for the type of page icon which should be displayed.
|
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CSS_CLASS_MULTI_LINE
CSS class for multi-line additional info's.
|
| Constructor and Description |
|---|
CmsListInfoBean()
Default constructor.
|
CmsListInfoBean(java.lang.String title,
java.lang.String subtitle,
java.util.List<CmsAdditionalInfoBean> additionalInfo)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addAdditionalInfo(java.lang.String name,
java.lang.String value)
Sets a new additional info.
|
void |
addAdditionalInfo(java.lang.String name,
java.lang.String value,
java.lang.String style)
Sets a new additional info.
|
java.util.List<CmsAdditionalInfoBean> |
getAdditionalInfo()
Returns the additional info.
|
java.lang.Boolean |
getIsFolder()
Returns a flag which indicates whether this info bean was generated for a folder.
|
CmsListInfoBean.LockIcon |
getLockIcon()
Returns the lock icon.
|
java.lang.String |
getLockIconTitle()
Returns the lock icon title.
|
CmsResourceState |
getResourceState()
Returns the resourceState.
|
java.lang.String |
getResourceType()
Returns the resource type name.
|
CmsListInfoBean.StateIcon |
getStateIcon()
Returns the state icon.
|
java.lang.String |
getSubTitle()
Returns the sub-title.
|
java.lang.String |
getTitle()
Returns the title.
|
java.lang.String |
getType()
Returns the type.
|
boolean |
hasAdditionalInfo()
Returns if the bean has additional info elements.
|
boolean |
isMarkChangedState()
Returns true if the 'changed' resource state should be marked by an icon.
|
void |
setAdditionalInfo(java.util.List<CmsAdditionalInfoBean> additionalInfo)
Sets the additional info.
|
void |
setIsFolder(java.lang.Boolean isFolder)
Sets thE 'isFolder' flag.
|
void |
setLockIcon(CmsListInfoBean.LockIcon lockIcon)
Sets the lock icon.
|
void |
setLockIconTitle(java.lang.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(java.lang.String resourceType)
Sets the resource type name.
|
void |
setStateIcon(CmsListInfoBean.StateIcon stateIcon)
Sets the state icon.
|
void |
setSubTitle(java.lang.String subTitle)
Sets the sub-title.
|
void |
setTitle(java.lang.String title)
Sets the title.
|
getBigIconClasses, getSmallIconClasses, setBigIconClasses, setSmallIconClassespublic static final java.lang.String CSS_CLASS_MULTI_LINE
public CmsListInfoBean()
public CmsListInfoBean(java.lang.String title, java.lang.String subtitle, java.util.List<CmsAdditionalInfoBean> additionalInfo)
title - the titlesubtitle - the subtitleadditionalInfo - the additional infopublic void addAdditionalInfo(java.lang.String name, java.lang.String value)
name - the additional info namevalue - the additional info valuepublic void addAdditionalInfo(java.lang.String name, java.lang.String value, java.lang.String style)
name - the additional info namevalue - the additional info valuestyle - the CSS style to apply to the infopublic java.util.List<CmsAdditionalInfoBean> getAdditionalInfo()
public java.lang.Boolean getIsFolder()
This may not be set (i.e. null).
public CmsListInfoBean.LockIcon getLockIcon()
public java.lang.String getLockIconTitle()
public CmsResourceState getResourceState()
public java.lang.String getResourceType()
public CmsListInfoBean.StateIcon getStateIcon()
The state icon indicates if a resource is exported, secure etc.
public java.lang.String getSubTitle()
public java.lang.String getTitle()
getTitle in interface I_CmsHasTitlepublic java.lang.String getType()
I_CmsHasTypegetType in interface I_CmsHasTypeI_CmsHasType.getType()public boolean hasAdditionalInfo()
true if the bean has additional info elementspublic boolean isMarkChangedState()
public void setAdditionalInfo(java.util.List<CmsAdditionalInfoBean> additionalInfo)
additionalInfo - the additional info to setpublic void setIsFolder(java.lang.Boolean isFolder)
isFolder - the new valuepublic void setLockIcon(CmsListInfoBean.LockIcon lockIcon)
lockIcon - the lock icon to setpublic void setLockIconTitle(java.lang.String lockIconTitle)
lockIconTitle - the lock icon title to setpublic void setMarkChangedState(boolean markChanged)
markChanged - true if the 'changed' state should be displayedpublic void setResourceState(CmsResourceState resourceState)
resourceState - the resourceState to setpublic void setResourceType(java.lang.String resourceType)
resourceType - the resource type name to setpublic void setStateIcon(CmsListInfoBean.StateIcon stateIcon)
The state icon indicates if a resource is exported, secure etc.
stateIcon - the state icon to setpublic void setSubTitle(java.lang.String subTitle)
subTitle - the sub-title to setpublic void setTitle(java.lang.String title)
title - the title to set