Package org.ametys.cms.content.version
Class CompareView.CompareElementDefinition<T>
- java.lang.Object
-
- org.ametys.runtime.model.AbstractModelItem
-
- org.ametys.runtime.model.ElementDefinition<T>
-
- org.ametys.cms.content.version.CompareView.CompareElementDefinition<T>
-
- All Implemented Interfaces:
Comparable<ModelItem>
,ModelItem
,Labelable
,ModifiableLabelable
- Enclosing class:
- CompareView
private class CompareView.CompareElementDefinition<T> extends ElementDefinition<T>
-
-
Field Summary
-
Fields inherited from class org.ametys.runtime.model.AbstractModelItem
__serviceManager
-
Fields inherited from interface org.ametys.runtime.model.ModelItem
ITEM_PATH_SEPARATOR
-
-
Constructor Summary
Constructors Constructor Description CompareElementDefinition(ElementDefinition<T> definitionToCopy)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
_handleExternal(String widgetToWrap, Map<String,I18nizableText> widgetParams)
Map<String,Object>
toJSON()
Converts the model item in a JSON map-
Methods inherited from class org.ametys.runtime.model.ElementDefinition
getCustomEnumerator, getCustomValidator, getDefaultValue, getDisableConditions, getEnumerator, getEnumeratorConfiguration, getPluginName, getType, getValidator, getValidatorConfiguration, getWidget, getWidgetParameters, isMultiple, of, setCustomEnumerator, setCustomValidator, setDefaultValue, setDisableConditions, setEnumerator, setEnumeratorConfiguration, setMultiple, setPluginName, setType, setValidator, setValidatorConfiguration, setWidget, setWidgetParameters
-
Methods inherited from class org.ametys.runtime.model.AbstractModelItem
addItemChecker, compareTo, equals, getDescription, getItemCheckers, getLabel, getModel, getName, getParent, getPath, hashCode, setDescription, setLabel, setModel, setName, setParent, setServiceManager, toString
-
-
-
-
Constructor Detail
-
CompareElementDefinition
CompareElementDefinition(ElementDefinition<T> definitionToCopy)
-
-
Method Detail
-
toJSON
public Map<String,Object> toJSON() throws ProcessingException
Description copied from interface:ModelItem
Converts the model item in a JSON map- Specified by:
toJSON
in interfaceModelItem
- Overrides:
toJSON
in classElementDefinition<T>
- Returns:
- The model item as a JSON map
- Throws:
ProcessingException
- If an error occurs when converting the model item
-
_handleExternal
private void _handleExternal(String widgetToWrap, Map<String,I18nizableText> widgetParams)
-
-