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 TypeMethodDescriptionvoidconfigure(Configuration configuration) getId()Retrieves the id of the content type.getLabel()Get the labelvoidsetPluginInfo(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, waitMethods inherited from interface org.ametys.odf.content.code.DisplayCodeProvider
getDisplayCode, isActive
-
Constructor Details
-
AbstractStaticProgramItemDisplayCodeProvider
-
-
Method Details
-
getId
Description copied from interface:DisplayCodeProviderRetrieves the id of the content type.- Specified by:
getIdin interfaceDisplayCodeProvider- Returns:
- the id.
-
getLabel
Description copied from interface:DisplayCodeProviderGet the label- Specified by:
getLabelin interfaceDisplayCodeProvider- Returns:
- The label
-
setPluginInfo
Description copied from interface:PluginAwareSets 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:
setPluginInfoin 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:
configurein interfaceConfigurable- Throws:
ConfigurationException
-