Example usage for com.liferay.portal.kernel.repository.model FileEntry getIcon

List of usage examples for com.liferay.portal.kernel.repository.model FileEntry getIcon

Introduction

In this page you can find the example usage for com.liferay.portal.kernel.repository.model FileEntry getIcon.

Prototype

public String getIcon();

Source Link

Usage

From source file:com.liferay.portlet.documentlibrary.util.DLImpl.java

License:Open Source License

@Override
public String getFileEntryImage(FileEntry fileEntry, ThemeDisplay themeDisplay) {

    StringBundler sb = new StringBundler(5);

    sb.append("<img src=\"");
    sb.append(themeDisplay.getPathThemeImages());
    sb.append("/file_system/small/");
    sb.append(fileEntry.getIcon());
    sb.append(".png\" style=\"border-width: 0; text-align: left;\">");

    return sb.toString();
}