Package org.ametys.odf.tree
Interface ODFTreeIndicator
- All Superinterfaces:
Prioritizable
- All Known Implementing Classes:
AbstractStaticODFTreeIndicator,CourseListTypeIndicator,CourseStepHolderIndicator,ExcludedFromMCCIndicator,NotPublishableIndicator,ProgramItemCodeIndicator,SharedCoursePartIndicator,ShareStatusIndicator,WorkflowStepIndicator
Interface for an ODF tree indicator
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final recordRecord for indicator data -
Method Summary
Modifier and TypeMethodDescriptionGet the JS function to display the indicator.Get the indicator descriptionThe indicator glyph icongetId()Get the idgetIndicatorData(Content content) Get the indicator values for a program item.getLabel()Get the indicator labelGet the JS function to determines if indicator is available for a content.getScripts(Map<String, Object> contextParameters) Get scripts that will be used on client side.Methods inherited from interface org.ametys.runtime.plugin.component.Prioritizable
getPriority
-
Method Details
-
getId
Get the id- Returns:
- the id
-
getLabel
Get the indicator label- Returns:
- the label
-
getDescription
Get the indicator description- Returns:
- the description
-
getIconGlyph
The indicator glyph icon- Returns:
- the CSS class for glyph icon
-
getScripts
Get scripts that will be used on client side.- Parameters:
contextParameters- Contextuals parameters transmitted by the environment.- Returns:
- The list of scripts or an empty list.
-
getMatchJSFunction
Get the JS function to determines if indicator is available for a content. Can returnnullto use default one.- Returns:
- the JS function or
nullto use default matcher
-
getApplyJSFunction
Get the JS function to display the indicator. Can returnnullto use default one.- Returns:
- the JS function or
nullto use default applyier
-
getIndicatorData
Get the indicator values for a program item. Returnnullif the indicator is not available for this program item- Parameters:
content- the content- Returns:
- the indicator data for this program item. Can be null.
-