Package org.opencms.workplace.explorer
Class CmsIconRule
java.lang.Object
org.opencms.workplace.explorer.CmsIconRule
- All Implemented Interfaces:
 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 Summary
Constructors - 
Method Summary
 
- 
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 extensionicon- the small icon's file namebigIcon- the big icon's file namesmallIconStyle- the small icon CSS style classbigIconStyle- the big icon CSS style class
 
 - 
 - 
Method Details
- 
clone
 - 
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
Returns the file name extension for this rule.- Returns:
 - the file name extension for this rule
 
 - 
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
 
 
 -