Class AbstractContainerImpl
- java.lang.Object
-
- com.adobe.cq.forms.core.components.util.AbstractComponentImpl
-
- com.adobe.cq.forms.core.components.util.AbstractFormComponentImpl
-
- com.adobe.cq.forms.core.components.util.AbstractBaseImpl
-
- com.adobe.cq.forms.core.components.util.AbstractContainerImpl
-
- All Implemented Interfaces:
com.adobe.cq.export.json.ComponentExporter,com.adobe.cq.export.json.ContainerExporter,Base,BaseConstraint,Container,ContainerConstraint,FormComponent,Component
public abstract class AbstractContainerImpl extends AbstractBaseImpl implements Container, ContainerConstraint
Abstract class which can be used as base class forContainerimplementations.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.adobe.cq.forms.core.components.models.form.BaseConstraint
BaseConstraint.Type
-
-
Field Summary
-
Fields inherited from class com.adobe.cq.forms.core.components.util.AbstractFormComponentImpl
CUSTOM_DOR_PROPERTY_WRAPPER, CUSTOM_JCR_PATH_PROPERTY_WRAPPER, CUSTOM_RULE_PROPERTY_WRAPPER
-
Fields inherited from interface com.adobe.cq.forms.core.components.models.form.Base
DATE_FORMATTER, DEFAULT_LANGUAGE
-
Fields inherited from interface com.adobe.cq.forms.core.components.models.form.FormComponent
CUSTOM_PROPERTY_WRAPPER
-
-
Constructor Summary
Constructors Constructor Description AbstractContainerImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Map<java.lang.String,java.lang.String>getColumnClassNames()intgetColumnCount()com.day.cq.wcm.foundation.model.export.AllowedComponentsExportergetExportedAllowedComponents()@NotNull java.util.Map<java.lang.String,? extends com.adobe.cq.export.json.ComponentExporter>getExportedItems()@NotNull java.lang.String[]getExportedItemsOrder()@Nullable java.lang.StringgetGridClassNames()java.util.List<? extends com.adobe.cq.export.json.ComponentExporter>getItems()Returns the list of items present inside the container as an array.java.lang.IntegergetMaxItems()Returns the maximum items of the container (ie array data type)java.lang.IntegergetMaxOccur()Returns the maximum occurrence of the container (ie array data type)java.lang.IntegergetMinItems()Returns the minimum items of the container (ie array data type)java.lang.IntegergetMinOccur()Returns the minimum occurrence of the container (ie array data type)java.lang.BooleanisRepeatable()-
Methods inherited from class com.adobe.cq.forms.core.components.util.AbstractBaseImpl
getConstraintMessages, getCustomLayoutProperties, getDescription, getEnabledIfPresent, getExportedType, getHtmlScreenReaderText, getLabel, getLang, getScreenReaderText, getTooltip, getTooltipText, getType, getValidationExpression, isEnabled, isTooltipVisible
-
Methods inherited from class com.adobe.cq.forms.core.components.util.AbstractFormComponentImpl
getData, getDataRef, getDorProperties, getEvents, getFieldType, getLinkUrl, getName, getPath, getProperties, getRules, getText, getTitle, getVisibleIfPresent, isVisible, setI18n
-
Methods inherited from class com.adobe.cq.forms.core.components.util.AbstractComponentImpl
getAppliedCssClasses, getId
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.adobe.cq.forms.core.components.models.form.Base
getConstraintMessages, getDescription, getHtmlScreenReaderText, getLabel, getLang, getScreenReaderText, getTooltip, isEnabled, isTooltipVisible
-
Methods inherited from interface com.adobe.cq.forms.core.components.models.form.BaseConstraint
getType, getValidationExpression
-
Methods inherited from interface com.adobe.cq.forms.core.components.models.form.Container
getAppliedCssClasses, getExportedType, getRoleAttribute, isRequired
-
Methods inherited from interface com.adobe.cq.forms.core.components.models.form.FormComponent
getDataRef, getDorProperties, getEvents, getFieldType, getName, getPath, getProperties, getRules, isVisible, setI18n
-
-
-
-
Method Detail
-
isRepeatable
public java.lang.Boolean isRepeatable()
- Specified by:
isRepeatablein interfaceContainerConstraint
-
getMinOccur
public java.lang.Integer getMinOccur()
Description copied from interface:ContainerConstraintReturns the minimum occurrence of the container (ie array data type)- Specified by:
getMinOccurin interfaceContainerConstraint- Returns:
- the minimum occurrence
-
getMaxOccur
public java.lang.Integer getMaxOccur()
Description copied from interface:ContainerConstraintReturns the maximum occurrence of the container (ie array data type)- Specified by:
getMaxOccurin interfaceContainerConstraint- Returns:
- the maximum occurrence
-
getMinItems
public java.lang.Integer getMinItems()
Description copied from interface:ContainerConstraintReturns the minimum items of the container (ie array data type)- Specified by:
getMinItemsin interfaceContainerConstraint- Returns:
- the minimum items
-
getMaxItems
public java.lang.Integer getMaxItems()
Description copied from interface:ContainerConstraintReturns the maximum items of the container (ie array data type)- Specified by:
getMaxItemsin interfaceContainerConstraint- Returns:
- the maximum items
-
getItems
public java.util.List<? extends com.adobe.cq.export.json.ComponentExporter> getItems()
Description copied from interface:ContainerReturns the list of items present inside the container as an array.
-
getExportedItemsOrder
@NotNull public @NotNull java.lang.String[] getExportedItemsOrder()
- Specified by:
getExportedItemsOrderin interfaceContainer- Specified by:
getExportedItemsOrderin interfacecom.adobe.cq.export.json.ContainerExporter
-
getExportedItems
@NotNull public @NotNull java.util.Map<java.lang.String,? extends com.adobe.cq.export.json.ComponentExporter> getExportedItems()
- Specified by:
getExportedItemsin interfaceContainer- Specified by:
getExportedItemsin interfacecom.adobe.cq.export.json.ContainerExporter- See Also:
ContainerExporter.getExportedItems()
-
getGridClassNames
@Nullable public @Nullable java.lang.String getGridClassNames()
- Specified by:
getGridClassNamesin interfaceContainer- Returns:
- The CSS class names to be applied to the current grid.
-
getColumnClassNames
@Nonnull public java.util.Map<java.lang.String,java.lang.String> getColumnClassNames()
- Specified by:
getColumnClassNamesin interfaceContainer- Returns:
- The CSS class names associated with each responsive grid column and listed by column name
-
getColumnCount
public int getColumnCount()
- Specified by:
getColumnCountin interfaceContainer- Returns:
- The number of columns available for direct children in the grid.
-
getExportedAllowedComponents
public com.day.cq.wcm.foundation.model.export.AllowedComponentsExporter getExportedAllowedComponents()
- Specified by:
getExportedAllowedComponentsin interfaceContainer- Returns:
- Allowed Components object for the current grid.
-
-