Package org.ametys.odf.content.code
Class AbstractStaticProgramItemDisplayCodeProvider
java.lang.Object
org.ametys.odf.content.code.AbstractStaticProgramItemDisplayCodeProvider
- All Implemented Interfaces:
DisplayCodeProvider
,PluginAware
,Supporter<Content>
,Configurable
- Direct Known Subclasses:
AmetysDisplayCodeProvider
,AttributeBasedDisplayCodeProvider
public abstract class AbstractStaticProgramItemDisplayCodeProvider
extends Object
implements DisplayCodeProvider, Configurable, PluginAware
Abstract class for a static
DisplayCodeProvider
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
configure
(Configuration configuration) getId()
Retrieves the id of the content type.getLabel()
Get the labelvoid
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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.ametys.odf.content.code.DisplayCodeProvider
getDisplayCode, isActive
-
Constructor Details
-
AbstractStaticProgramItemDisplayCodeProvider
-
-
Method Details
-
getId
Description copied from interface:DisplayCodeProvider
Retrieves the id of the content type.- Specified by:
getId
in interfaceDisplayCodeProvider
- Returns:
- the id.
-
getLabel
Description copied from interface:DisplayCodeProvider
Get the label- Specified by:
getLabel
in interfaceDisplayCodeProvider
- Returns:
- The label
-
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
-