Class CmsIconRule

java.lang.Object
org.opencms.workplace.explorer.CmsIconRule
All Implemented Interfaces:
Serializable

public class CmsIconRule extends Object implements Serializable
An icon configuration rule for an explorer type.

Each rule consists of a file name extension and (at most) two icon file names for icons which should be used for resources with that extension.

Since:
8.0.0
See Also:
  • Constructor Details

    • CmsIconRule

      public CmsIconRule(String extension, String icon, String bigIcon, String smallIconStyle, String bigIconStyle)
      Creates a new icon rule.

      Parameters:
      extension - the file name extension
      icon - the small icon's file name
      bigIcon - the big icon's file name
      smallIconStyle - the small icon CSS style class
      bigIconStyle - the big icon CSS style class
  • Method Details

    • clone

      public Object clone()
      Overrides:
      clone in class Object
      See Also:
    • getBigIcon

      public String getBigIcon()
      Returns the big icon's file name.

      Returns:
      the big icon's file name
    • getBigIconIfAvailable

      Returns the biggest icon available.

      Returns:
      the biggest icon available
    • getBigIconStyle

      Returns the big icon CSS style class.

      Returns:
      the big icon style
    • getExtension

      public String getExtension()
      Returns the file name extension for this rule.

      Returns:
      the file name extension for this rule
    • getIcon

      public String getIcon()
      Returns the small icon's file name.

      Returns:
      the small icon's file name
    • getSmallIconStyle

      Returns the small icon CSS style class.

      Returns:
      the small icon style