Package org.ametys.odf.tree
Class AbstractStaticODFTreeIndicator
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.core.ui.StaticFileImportsClientSideElement
org.ametys.odf.tree.AbstractStaticODFTreeIndicator
- All Implemented Interfaces:
ClientSideElement,ODFTreeIndicator,LogEnabled,PluginAware,Prioritizable,Configurable,Serviceable
- Direct Known Subclasses:
CourseListTypeIndicator,CourseStepHolderIndicator,NotPublishableIndicator,ProgramItemCodeIndicator,SharedCoursePartIndicator,ShareStatusIndicator,WorkflowStepIndicator
public abstract class AbstractStaticODFTreeIndicator
extends StaticFileImportsClientSideElement
implements ODFTreeIndicator
Abstract class for a static
ODFTreeIndicator-
Nested Class Summary
Nested classes/interfaces inherited from interface org.ametys.core.ui.ClientSideElement
ClientSideElement.Script, ClientSideElement.ScriptFileNested classes/interfaces inherited from interface org.ametys.odf.tree.ODFTreeIndicator
ODFTreeIndicator.IndicatorData -
Field Summary
Fields inherited from class org.ametys.core.ui.StaticFileImportsClientSideElement
_currentUserProvider, _dependencies, _featureName, _id, _pluginName, _rightManager, _rights, _rightsMode, _script -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconfigure(Configuration configuration) Get the JS function to display the indicator.Get the indicator descriptionThe indicator glyph icongetLabel()Get the indicator labelGet the JS function to determines if indicator is available for a content.intGet the priority for the component.Methods inherited from class org.ametys.core.ui.StaticFileImportsClientSideElement
_configureDependencies, _configureImports, _configureRights, _configureRightsMode, _configureScript, getDependencies, getId, getPluginName, getRights, getScripts, getScripts, hasRight, service, setPluginInfo, toStringMethods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLoggerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.ametys.odf.tree.ODFTreeIndicator
getId, getIndicatorData, getScripts
-
Constructor Details
-
AbstractStaticODFTreeIndicator
public AbstractStaticODFTreeIndicator()
-
-
Method Details
-
configure
- Specified by:
configurein interfaceConfigurable- Overrides:
configurein classStaticFileImportsClientSideElement- Throws:
ConfigurationException
-
getPriority
Description copied from interface:PrioritizableGet the priority for the component. On components usingPrioritizableinterface, each implementation define the order. In most cases, less is the number, more prior is the component.- Specified by:
getPriorityin interfacePrioritizable- Returns:
- the priority
-
getLabel
Description copied from interface:ODFTreeIndicatorGet the indicator label- Specified by:
getLabelin interfaceODFTreeIndicator- Returns:
- the label
-
getDescription
Description copied from interface:ODFTreeIndicatorGet the indicator description- Specified by:
getDescriptionin interfaceODFTreeIndicator- Returns:
- the description
-
getIconGlyph
Description copied from interface:ODFTreeIndicatorThe indicator glyph icon- Specified by:
getIconGlyphin interfaceODFTreeIndicator- Returns:
- the CSS class for glyph icon
-
getMatchJSFunction
Description copied from interface:ODFTreeIndicatorGet the JS function to determines if indicator is available for a content. Can returnnullto use default one.- Specified by:
getMatchJSFunctionin interfaceODFTreeIndicator- Returns:
- the JS function or
nullto use default matcher
-
getApplyJSFunction
Description copied from interface:ODFTreeIndicatorGet the JS function to display the indicator. Can returnnullto use default one.- Specified by:
getApplyJSFunctionin interfaceODFTreeIndicator- Returns:
- the JS function or
nullto use default applyier
-