Package com.adobe.acs.commons.mcp.form
Class AbstractGroupingContainerComponent
- java.lang.Object
-
- com.adobe.acs.commons.mcp.form.FieldComponent
-
- com.adobe.acs.commons.mcp.form.AbstractContainerComponent
-
- com.adobe.acs.commons.mcp.form.ContainerComponent
-
- com.adobe.acs.commons.mcp.form.AbstractGroupingContainerComponent
-
- Direct Known Subclasses:
AbstractGroupingContainerComponent.AccordionComponent,AbstractGroupingContainerComponent.TabsComponent
public abstract class AbstractGroupingContainerComponent extends ContainerComponent
An expression of the tab layout container with convenience methods to build tabs more easily. The data structures are meant to show content in the order it is added.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAbstractGroupingContainerComponent.AccordionComponentstatic classAbstractGroupingContainerComponent.TabsComponent-
Nested classes/interfaces inherited from class com.adobe.acs.commons.mcp.form.FieldComponent
FieldComponent.ClientLibraryType
-
-
Field Summary
Fields Modifier and Type Field Description static StringGENERIC_GROUPstatic StringITEMSstatic StringMARGIN_PROPERTY-
Fields inherited from class com.adobe.acs.commons.mcp.form.ContainerComponent
JCR_TITLE
-
-
Constructor Summary
Constructors Constructor Description AbstractGroupingContainerComponent()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddComponent(String group, String fieldName, FieldComponent component)org.apache.sling.api.resource.ResourcebuildComponentResource()If your component needs child nodes then override this method, call the superclass implementation, and then use addChildren to add additional nodes to it.StringgetLayout()ContainerComponentgetOrCreateGroup(String groupName)booleanisMargin()voidsetLayout(String layout)voidsetMargin(boolean margin)-
Methods inherited from class com.adobe.acs.commons.mcp.form.ContainerComponent
getTitle, init, setTitle
-
Methods inherited from class com.adobe.acs.commons.mcp.form.AbstractContainerComponent
addComponent, applyDialogProviderSettings, generateDefaultChildComponent, generateItemsResource, getDialogStyle, getFieldComponents, getGroupingContainer, getPropertiesTabName, hasCategories, isComposite, isForceDotSlashPrefix, setComposite, setDefaultChildComponent, setDialogStyle, setForceDotSlashPrefix, setGroupingContainer, setPropertiesTabName
-
Methods inherited from class com.adobe.acs.commons.mcp.form.FieldComponent
addClientLibraries, addClientLibraries, addClientLibraries, addClientLibrary, getAccessibleObject, getBooleanOption, getCategory, getClientLibraryCategories, getComponentMetadata, getField, getFieldDefinition, getHelper, getHtml, getName, getOption, getOptionNames, getPath, getResourceSuperType, getResourceType, hasOption, purgeEmptyMetadata, setCategory, setHelper, setPath, setResourceSuperType, setResourceType, setup
-
-
-
-
Field Detail
-
GENERIC_GROUP
public static String GENERIC_GROUP
-
MARGIN_PROPERTY
public static final String MARGIN_PROPERTY
- See Also:
- Constant Field Values
-
ITEMS
public static final String ITEMS
- See Also:
- Constant Field Values
-
-
Method Detail
-
getOrCreateGroup
public ContainerComponent getOrCreateGroup(String groupName)
-
addComponent
public void addComponent(String group, String fieldName, FieldComponent component)
-
buildComponentResource
public org.apache.sling.api.resource.Resource buildComponentResource()
Description copied from class:FieldComponentIf your component needs child nodes then override this method, call the superclass implementation, and then use addChildren to add additional nodes to it.- Overrides:
buildComponentResourcein classContainerComponent- Returns:
-
getLayout
public String getLayout()
- Returns:
- the layout
-
setLayout
public void setLayout(String layout)
- Parameters:
layout- the layout to set
-
isMargin
public boolean isMargin()
- Returns:
- the margin
-
setMargin
public void setMargin(boolean margin)
- Parameters:
margin- the margin to set
-
-