public String getIconCssClass() { if (item instanceof VFSContainer) { return "b_filetype_folder"; } return CSSHelper.createFiletypeIconCssClassFor(item.getName()); }
/** * 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); }