@AlfrescoPublicApi public class FileTypeImageUtils extends Object
Constructor and Description |
---|
FileTypeImageUtils() |
Modifier and Type | Method and Description |
---|---|
static String |
getFileTypeImage(FacesContext fc,
String name,
boolean small)
Return the image path to the filetype icon for the specified file name string
|
static String |
getFileTypeImage(FacesContext fc,
String name,
FileTypeImageSize size)
Return the image path to the filetype icon for the specified file name string
|
static String |
getFileTypeImage(ServletContext sc,
String name,
boolean small)
Return the image path to the filetype icon for the specified file name string
|
static String |
getFileTypeImage(ServletContext sc,
String name,
FileTypeImageSize size)
Return the image path to the filetype icon for the specified file name string
|
static String |
getFileTypeImage(String name,
boolean small)
Return the image path to the filetype icon for the specified file name string
|
public static String getFileTypeImage(String name, boolean small)
name
- File name to build filetype icon path forsmall
- True for the small 16x16 icon or false for the large 32x32public static String getFileTypeImage(FacesContext fc, String name, boolean small)
fc
- FacesContextname
- File name to build filetype icon path forsmall
- True for the small 16x16 icon or false for the large 32x32public static String getFileTypeImage(FacesContext fc, String name, FileTypeImageSize size)
fc
- FacesContextname
- File name to build filetype icon path forsize
- Size of the icon to returnpublic static String getFileTypeImage(ServletContext sc, String name, boolean small)
sc
- ServletContextname
- File name to build filetype icon path forsmall
- True for the small 16x16 icon or false for the large 32x32public static String getFileTypeImage(ServletContext sc, String name, FileTypeImageSize size)
sc
- ServletContextname
- File name to build filetype icon path forsize
- Size of the icon to returnCopyright © 2005–2017 Alfresco Software. All rights reserved.