protected static String getIcon(String repository, String path) { if (ItemType.DELETED_NODE_MIXIN.equals(path)) { return ".resources/icons/16/document_deleted.gif"; } if (StringUtils.equals(repository, "website")) { return ".resources/icons/16/document_plain_earth.gif"; } if (StringUtils.equals(repository, "dms")) { String type = NodeDataUtil.getString(repository, path + "/type"); if("folder".equals(type)){ return ".resources/icons/16/folder.gif"; } else if(StringUtils.isNotEmpty(type)){ return StringUtils.removeStart(MIMEMapping.getMIMETypeIcon(type), "/"); } } return ".resources/icons/16/mail.gif"; }
protected void writeInnerHtml(Writer out, final boolean showImage, File control, StringBuffer htmlControlFileName, String link) throws IOException { out.write(htmlControlFileName.toString()); if (!showImage) { String iconPath = MIMEMapping.getMIMETypeIcon(control.getExtension()); out.write(Spacer.getHtml(0, 0)); out.write("<a href="); out.write(link); out.write(" target=\"_blank\">"); //$NON-NLS-1$ out.write("<img src=\"" //$NON-NLS-1$ + this.getRequest().getContextPath() + iconPath + "\" class=\"" //$NON-NLS-1$ + CssConstants.CSSCLASS_FILEICON + "\" border=\"0\">"); //$NON-NLS-1$ out.write(control.getFileName() + "." + control.getExtension() + "</a>"); //$NON-NLS-1$ //$NON-NLS-2$ } }
if (!showImage) String iconPath = MIMEMapping.getMIMETypeIcon(control.getExtension());
if (!showImage) String iconPath = MIMEMapping.getMIMETypeIcon(control.getExtension());
value = this.getContent().getHandle() + "/" + this.getNodeDataName() + fullExt; } else if (property.equals(ICON) && ext != null) { value = MIMEMapping.getMIMETypeIcon(ext); } else if (property.equals(SIZE_BYTES)) { value = props.getAttribute(PROPERTY_SIZE);
String iconPath = MIMEMapping.getMIMETypeIcon(control.getExtension());