|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.alfresco.repo.web.scripts.FileTypeImageUtils
public class FileTypeImageUtils
Contains utility methods
Constructor Summary | |
---|---|
FileTypeImageUtils()
|
Method Summary | |
---|---|
static java.lang.String |
getFileTypeImage(javax.faces.context.FacesContext fc,
java.lang.String name,
boolean small)
Return the image path to the filetype icon for the specified file name string |
static java.lang.String |
getFileTypeImage(javax.faces.context.FacesContext fc,
java.lang.String name,
org.alfresco.service.cmr.repository.FileTypeImageSize size)
Return the image path to the filetype icon for the specified file name string |
static java.lang.String |
getFileTypeImage(javax.servlet.ServletContext sc,
java.lang.String name,
boolean small)
Return the image path to the filetype icon for the specified file name string |
static java.lang.String |
getFileTypeImage(javax.servlet.ServletContext sc,
java.lang.String name,
org.alfresco.service.cmr.repository.FileTypeImageSize size)
Return the image path to the filetype icon for the specified file name string |
static java.lang.String |
getFileTypeImage(java.lang.String name,
boolean small)
Return the image path to the filetype icon for the specified file name string |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FileTypeImageUtils()
Method Detail |
---|
public static java.lang.String getFileTypeImage(java.lang.String name, boolean small)
name
- File name to build filetype icon path forsmall
- True for the small 16x16 icon or false for the large 32x32
public static java.lang.String getFileTypeImage(javax.faces.context.FacesContext fc, java.lang.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 32x32
public static java.lang.String getFileTypeImage(javax.faces.context.FacesContext fc, java.lang.String name, org.alfresco.service.cmr.repository.FileTypeImageSize size)
fc
- FacesContextname
- File name to build filetype icon path forsize
- Size of the icon to return
public static java.lang.String getFileTypeImage(javax.servlet.ServletContext sc, java.lang.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 32x32
public static java.lang.String getFileTypeImage(javax.servlet.ServletContext sc, java.lang.String name, org.alfresco.service.cmr.repository.FileTypeImageSize size)
sc
- ServletContextname
- File name to build filetype icon path forsize
- Size of the icon to return
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |