|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opencms.gwt.shared.CmsIconUtil
public class CmsIconUtil
Utility class for the resource icon CSS.
Field Summary | |
---|---|
static String |
SMALL_SUFFIX
The suffix for the CSS classes for small icons. |
static String |
TYPE_ICON_CLASS
The resource icon CSS class prefix. |
Constructor Summary | |
---|---|
protected |
CmsIconUtil()
Constructor. |
Method Summary | |
---|---|
protected static String |
getFileTypeIconClass(String resourceTypeName,
String fileName,
boolean small)
Returns the CSS class for the given filename. |
static String |
getResourceIconClasses(String resourceTypeName,
boolean small)
Returns the CSS classes of the resource icon for the given resource type name. |
static String |
getResourceIconClasses(String resourceTypeName,
String fileName,
boolean small)
Returns the CSS classes of the resource icon for the given resource type and filename. |
static String |
getResourceSubTypeIconClass(String resourceTypeName,
String suffix,
boolean small)
Returns the CSS class for a given resource type name and file name extension. |
static String |
getResourceTypeIconClass(String resourceTypeName,
boolean small)
Returns the CSS class for the given resource type. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String SMALL_SUFFIX
public static final String TYPE_ICON_CLASS
Constructor Detail |
---|
protected CmsIconUtil()
Method Detail |
---|
public static String getResourceIconClasses(String resourceTypeName, boolean small)
Use this function, if the resource type is known, but not the filename. If the filename is available use getResourceIconClasses(String, String, boolean)
resourceTypeName
- the resource type namesmall
- if true, get the icon classes for the small icon, else for the biggest one available
public static String getResourceIconClasses(String resourceTypeName, String fileName, boolean small)
Use this the resource type and filename is known. Otherwise use getResourceIconClasses(String,boolean)
resourceTypeName
- the resource type namefileName
- the filenamesmall
- if true, get the icon classes for the small icon, else for the biggest one available
public static String getResourceSubTypeIconClass(String resourceTypeName, String suffix, boolean small)
resourceTypeName
- the resource type namesuffix
- the file name extensionsmall
- if true, get the icon class for the small icon, else for the biggest one available
public static String getResourceTypeIconClass(String resourceTypeName, boolean small)
resourceTypeName
- the resource type namesmall
- if true, get the icon class for the small icon, else for the biggest one available
protected static String getFileTypeIconClass(String resourceTypeName, String fileName, boolean small)
resourceTypeName
- the resource type namefileName
- the filenamesmall
- if true, get the CSS class for the small icon, else for the biggest one available
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |