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

public class CmsListInfoBean extends CmsIconBean implements I_CmsHasTitle, I_CmsHasType
A bean holding all info to be displayed in org.opencms.gwt.client.ui.CmsListItemWidgets.

Since:
8.0.0
See Also:
  • org.opencms.gwt.client.ui.CmsListItemWidget
  • Field Details

  • Constructor Details

  • Method Details

    • addAdditionalInfo

      public void addAdditionalInfo(String name, String value)
      Sets a new additional info.

      Parameters:
      name - the additional info name
      value - the additional info value
    • addAdditionalInfo

      public void addAdditionalInfo(String name, String value, String style)
      Sets a new additional info.

      Parameters:
      name - the additional info name
      value - the additional info value
      style - the CSS style to apply to the info
    • getAdditionalInfo

      Returns the additional info.

      Returns:
      the additional info
    • getIsFolder

      public Boolean 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

      public String getSubTitle()
      Returns the sub-title.

      Returns:
      the sub-title
    • getTitle

      public String getTitle()
      Returns the title.

      Specified by:
      getTitle in interface I_CmsHasTitle
      Returns:
      the title
    • getType

      public String getType()
      Description copied from interface: I_CmsHasType
      Returns the type.

      Specified by:
      getType in interface I_CmsHasType
      Returns:
      the type
      See Also:
    • hasAdditionalInfo

      public boolean hasAdditionalInfo()
      Returns if the bean has additional info elements.

      Returns:
      true if the bean has additional info elements
    • isMarkChangedState

      public boolean 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

      public void setAdditionalInfo(List<CmsAdditionalInfoBean> additionalInfo)
      Sets the additional info.

      Parameters:
      additionalInfo - the additional info to set
    • setIsFolder

      public void setIsFolder(Boolean isFolder)
      Sets thE 'isFolder' flag.

      Parameters:
      isFolder - the new value
    • setLockIcon

      public void setLockIcon(CmsListInfoBean.LockIcon lockIcon)
      Sets the lock icon.

      Parameters:
      lockIcon - the lock icon to set
    • setLockIconTitle

      public void setLockIconTitle(String lockIconTitle)
      Sets the lock icon title.

      Parameters:
      lockIconTitle - the lock icon title to set
    • setMarkChangedState

      public void setMarkChangedState(boolean markChanged)
      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

      public void setResourceState(CmsResourceState resourceState)
      Sets the resourceState.

      Parameters:
      resourceState - the resourceState to set
    • setResourceType

      public void setResourceType(String resourceType)
      Sets the resource type name.

      Parameters:
      resourceType - the resource type name to set
    • setStateIcon

      public void setStateIcon(CmsListInfoBean.StateIcon stateIcon)
      Sets the state icon.

      The state icon indicates if a resource is exported, secure etc.

      Parameters:
      stateIcon - the state icon to set
    • setSubTitle

      public void setSubTitle(String subTitle)
      Sets the sub-title.

      Parameters:
      subTitle - the sub-title to set
    • setTitle

      public void setTitle(String title)
      Sets the title.

      Parameters:
      title - the title to set