Package org.ametys.plugins.core.ui.glyph
Class StaticGlyphProvider
- java.lang.Object
-
- org.ametys.runtime.plugin.component.AbstractLogEnabled
-
- org.ametys.plugins.core.ui.glyph.StaticGlyphProvider
-
- All Implemented Interfaces:
GlyphProvider
,LogEnabled
,PluginAware
,Configurable
public class StaticGlyphProvider extends AbstractLogEnabled implements GlyphProvider, Configurable, PluginAware
Static implementation of aGlyphProvider
based on a static configuration
-
-
Field Summary
Fields Modifier and Type Field Description protected Map<String,String>
_cssFiles
The files declaredprotected String
_featureName
The name of the feature that declared the providerprotected String
_pluginName
The name of the plugin that declared the provider
-
Constructor Summary
Constructors Constructor Description StaticGlyphProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
configure(Configuration configuration)
Map<String,String>
getCSSFiles()
Get the path of CSS files with glyphs.void
setPluginInfo(String pluginName, String featureName, String id)
Sets the plugin info relative to the current component.
Note : The feature name may be null if the targeted component in declared at plugin level.-
Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
-
-
-
Field Detail
-
_pluginName
protected String _pluginName
The name of the plugin that declared the provider
-
_featureName
protected String _featureName
The name of the feature that declared the provider
-
-
Constructor Detail
-
StaticGlyphProvider
public StaticGlyphProvider()
-
-
Method Detail
-
setPluginInfo
public void setPluginInfo(String pluginName, String featureName, String id)
Description copied from interface:PluginAware
Sets the plugin info relative to the current component.
Note : The feature name may be null if the targeted component in declared at plugin level.- Specified by:
setPluginInfo
in interfacePluginAware
- Parameters:
pluginName
- Unique identifier for the plugin hosting the extensionfeatureName
- Unique feature identifier (unique for a given pluginName)id
- Unique identifier of this component
-
configure
public void configure(Configuration configuration) throws ConfigurationException
- Specified by:
configure
in interfaceConfigurable
- Throws:
ConfigurationException
-
getCSSFiles
public Map<String,String> getCSSFiles()
Description copied from interface:GlyphProvider
Get the path of CSS files with glyphs.- Specified by:
getCSSFiles
in interfaceGlyphProvider
- Returns:
- A non-null map of the CSS files with the prefix of glyphs
-
-