Overview  Package   Class  Use  Tree  Deprecated  Index  Help 
PREV CLASS   NEXT CLASS FRAMES    NO FRAMES    All Classes
SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

org.alfresco.repo.web.scripts
Class FileTypeImageUtils
java.lang.Object
  org.alfresco.repo.web.scripts.FileTypeImageUtils

public class FileTypeImageUtils
extends Object
Contains utility methods
Author:
Roy Wetherall

Constructor Summary
FileTypeImageUtils()
Method Summary
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, org.alfresco.service.cmr.repository.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, org.alfresco.service.cmr.repository.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
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Constructor Detail
FileTypeImageUtils
public FileTypeImageUtils()
Method Detail
getFileTypeImage
public static String getFileTypeImage(String name,
                                      boolean small)
Return the image path to the filetype icon for the specified file name string
Parameters:
name - File name to build filetype icon path for
small - True for the small 16x16 icon or false for the large 32x32
Returns:
the image path for the specified node type or the default icon if not found

getFileTypeImage
public static String getFileTypeImage(FacesContext fc,
                                      String name,
                                      boolean small)
Return the image path to the filetype icon for the specified file name string
Parameters:
fc - FacesContext
name - File name to build filetype icon path for
small - True for the small 16x16 icon or false for the large 32x32
Returns:
the image path for the specified node type or the default icon if not found

getFileTypeImage
public static String getFileTypeImage(FacesContext fc,
                                      String name,
                                      org.alfresco.service.cmr.repository.FileTypeImageSize size)
Return the image path to the filetype icon for the specified file name string
Parameters:
fc - FacesContext
name - File name to build filetype icon path for
size - Size of the icon to return
Returns:
the image path for the specified node type or the default icon if not found

getFileTypeImage
public static String getFileTypeImage(ServletContext sc,
                                      String name,
                                      boolean small)
Return the image path to the filetype icon for the specified file name string
Parameters:
sc - ServletContext
name - File name to build filetype icon path for
small - True for the small 16x16 icon or false for the large 32x32
Returns:
the image path for the specified node type or the default icon if not found

getFileTypeImage
public static String getFileTypeImage(ServletContext sc,
                                      String name,
                                      org.alfresco.service.cmr.repository.FileTypeImageSize size)
Return the image path to the filetype icon for the specified file name string
Parameters:
sc - ServletContext
name - File name to build filetype icon path for
size - Size of the icon to return
Returns:
the image path for the specified node type or the default icon if not found

Overview  Package   Class  Use  Tree  Deprecated  Index  Help 
PREV CLASS   NEXT CLASS FRAMES    NO FRAMES    All Classes
SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

Copyright © 2005–2016 Alfresco Software. All rights reserved.

Java API documentation generated with DocFlex/Javadoc 1.6.1 using JavadocPro template set.