@Deprecated public class FileTypeResolver extends FileTypeResolver implements Serializable
Note : The icons are associated purely to mime-types, so a file may not have a custom icon accessible with this class.
| Modifier and Type | Field and Description |
|---|---|
static Resource |
DEFAULT_ICON
Deprecated.
Default icon given if no icon is specified for a mime-type.
|
DEFAULT_MIME_TYPE| Modifier and Type | Method and Description |
|---|---|
static void |
addIcon(String mimeType,
Resource icon)
Deprecated.
Adds a icon for the given mime-type.
|
static Resource |
getIcon(File file)
Deprecated.
Gets the descriptive icon representing a file.
|
static Resource |
getIcon(String fileName)
Deprecated.
Gets the descriptive icon representing file, based on the filename.
|
static Map<String,Resource> |
getMIMETypeToIconMapping()
Deprecated.
Gets the internal mime-type to icon mapping.
|
addExtension, getExtensionToMIMETypeMapping, getMIMEType, getMIMETypepublic static Resource DEFAULT_ICON
public static Resource getIcon(String fileName)
fileName - the name of the file whose icon is requested.public static Resource getIcon(File file)
file - the file whose icon is requested.public static void addIcon(String mimeType, Resource icon)
mimeType - the mime-type whose icon is to be changed.icon - the new icon to be associated with MIMEType.Copyright © 2019 Vaadin Ltd. All rights reserved.