Package org.opencms.ade.contenteditor
Class CmsContentTypeVisitor.DisplayTypeEvaluator
java.lang.Object
org.opencms.ade.contenteditor.CmsContentTypeVisitor.DisplayTypeEvaluator
- Enclosing class:
- CmsContentTypeVisitor
Helper class to evaluate the widget display type.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
DisplayTypeEvaluator
(CmsAttributeConfiguration config, I_CmsXmlContentHandler.DisplayType configuredType, I_CmsXmlContentHandler.DisplayType defaultType, CmsContentTypeVisitor.EvaluationRule rule) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected String
Returns the attribute name.protected CmsAttributeConfiguration
getEvaluatedConfiguration
(I_CmsXmlContentHandler.DisplayType predecessor, I_CmsXmlContentHandler.DisplayType successor) Returns the attribute configuration with the evaluated display type.protected I_CmsXmlContentHandler.DisplayType
Returns the proposed display type.protected void
setAttributeName
(String attributeName) Sets the attribute name.
-
Constructor Details
-
Method Details
-
getAttributeName
Returns the attribute name.- Returns:
- the attribute name
-
getEvaluatedConfiguration
protected CmsAttributeConfiguration getEvaluatedConfiguration(I_CmsXmlContentHandler.DisplayType predecessor, I_CmsXmlContentHandler.DisplayType successor) Returns the attribute configuration with the evaluated display type.- Parameters:
predecessor
- the proposed predecessor display typesuccessor
- the proposed successor display type- Returns:
- the attribute configuration
-
getProposedType
Returns the proposed display type.- Returns:
- the proposed display type
-
setAttributeName
Sets the attribute name.- Parameters:
attributeName
- the attribute name
-