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 a
GlyphProvider
based on a static configuration-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
configure
(Configuration configuration) 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 Details
-
_pluginName
The name of the plugin that declared the provider -
_featureName
The name of the feature that declared the provider -
_cssFiles
The files declared
-
-
Constructor Details
-
StaticGlyphProvider
public StaticGlyphProvider()
-
-
Method Details
-
setPluginInfo
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
- Specified by:
configure
in interfaceConfigurable
- Throws:
ConfigurationException
-
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
-