Class DefaultPluginFormElementTemplateIcon
- java.lang.Object
-
- de.xima.fc.plugin.models.retval.form.DefaultPluginFormElementTemplateIcon
-
- All Implemented Interfaces:
IPluginFormElementTemplateIcon
,Serializable
public final class DefaultPluginFormElementTemplateIcon extends Object implements IPluginFormElementTemplateIcon
Default POJO implementation ofIPluginFormElementTemplateIcon
.- Since:
- 8.0.1
- Author:
- XIMA MEDIA GmbH
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DefaultPluginFormElementTemplateIcon(String mediaType, URI uri)
Creates a new icon with a media type and URI.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getMediaType()
Gets the media type for the icon, such asimage/png
orimage/svg+xml
.URI
getUri()
The URI with the icon's data, which is then passed toloadIcon
.
-
-
-
Constructor Detail
-
DefaultPluginFormElementTemplateIcon
public DefaultPluginFormElementTemplateIcon(String mediaType, URI uri)
Creates a new icon with a media type and URI.- Parameters:
mediaType
- Media type of the icon, e.g.image/png
.uri
- URI of the icon, seeIPluginFormElementTemplateDescriptor.getIcon(Locale)
.
-
-
Method Detail
-
getMediaType
public String getMediaType()
Description copied from interface:IPluginFormElementTemplateIcon
Gets the media type for the icon, such asimage/png
orimage/svg+xml
.- Specified by:
getMediaType
in interfaceIPluginFormElementTemplateIcon
- Returns:
- The media type of the icon.
-
getUri
public URI getUri()
Description copied from interface:IPluginFormElementTemplateIcon
The URI with the icon's data, which is then passed toloadIcon
.Note: The resource might be cached with the returned URI as the cache key. Plugins should append e.g. a version parameter (such as the plugin version) to the URI if needed.
- Specified by:
getUri
in interfaceIPluginFormElementTemplateIcon
- Returns:
- URI for the icon's data.
-
-