Exemplo n.º 1
0
 public String getIconCssClass() {
   if (item instanceof VFSContainer) {
     return "b_filetype_folder";
   }
   return CSSHelper.createFiletypeIconCssClassFor(item.getName());
 }
Exemplo n.º 2
0
 /**
  * Get the icon css class that represents the filetype based on the file name
  *
  * @param filename
  * @return The css class for the file or a default css class
  */
 public static String getFiletypeIconCss(String filename) {
   return CSSHelper.createFiletypeIconCssClassFor(filename);
 }