Package com.adobe.aemds.guide.common
Class GuidePanel
- java.lang.Object
-
- com.adobe.cq.sightly.WCMUsePojo
-
- com.adobe.aemds.guide.common.GuideNode
-
- com.adobe.aemds.guide.common.GuideItemsContainer
-
- com.adobe.aemds.guide.common.GuidePanel
-
- All Implemented Interfaces:
FDField
,StyledFDField
,java.io.Serializable
,Use
- Direct Known Subclasses:
GuideTable
,GuideTableRow
public class GuidePanel extends GuideItemsContainer implements java.io.Serializable
GuidePanel class encapsulates basic properties of adaptive forms Panels. Some of the properties that it encapsulates are listed below:- Minimum count of the panel
- Maximum count of the panel
- Long Description of the panel
- Since:
- AEM 6.0
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description GuidePanel()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getAfFragmentMarker()
Checks if the panel has a fragment reference and returns the CSS class of the fragment markerjava.lang.String
getAssetRef()
java.util.Map<java.lang.String,java.lang.Object>
getAuthoringConfig()
AuthoringConfig is a map populated only for authoring and it contains key value pairs that govern components behaviour.java.lang.String
getDoRLayoutType()
Returns the dorLayoutType property of the layout.java.util.Map<java.lang.String,java.lang.String>
getFragmentDetails()
Returns a map containing details for fragment that has been created from a panel.java.lang.String
getFragRef()
Returns the reference to the fragment configured during authoringjava.lang.String
getFragRefPropertyFromResource()
Returns the fragRef property present at the resource.int
getInitialOccur()
boolean
getIsRepeatable()
Returns whether the current panel is repeatable or notjava.lang.String
getLayoutFromFragRootPanel()
java.lang.String
getLongDescription()
Returns the long description of the panel configured in authoring dialogint
getMaxOccur()
Returns the current panel's maximum count configured in the authoring dialogint
getMinOccur()
Returns the current panel's minimum count configured in the authoring dialogjava.lang.String
getOptimizeRenderPerformance()
java.lang.String
getPanelDescriptionInlineStyles()
Returns the string containing the inline style specified for the panel descriptionjava.lang.String
getPanelInlineStyles()
Returns the string containing the inline style specified for the panelGuideItemsContainer
getToolbar()
Returns the toolbar configured for the panelboolean
isFragmentAvailable()
Returns a boolean indicating whether the fragment is available or not.boolean
isHasToolbar()
Returns if toolbar present for the paneljava.lang.Boolean
isNewResponsiveLayout()
Returns whether panel is of new responsive layout type or notboolean
validate(ResourceResolver serviceResourceResolver)
This API is meant to validate the current AF object.-
Methods inherited from class com.adobe.aemds.guide.common.GuideItemsContainer
getItems
-
Methods inherited from class com.adobe.aemds.guide.common.GuideNode
activate, checkIfPathIsAbsolute, externalize, getAddMessage, getAppearance, getAuthoringConfigJSON, getBindRef, getClientLibRef, getColspan, getCssClassName, getDescription, getEnabled, getEnabledExp, getError, getFieldInlineStyles, getGuideFieldType, getHeight, getI18n, getId, getInlineCssClass, getInlineStyles, getIsEditMode, getLayoutPath, getLayoutTabType, getLongDescriptionInlineStyles, getName, getNavTitle, getNodeClass, getNonNavigableProperty, getPath, getQuestionMarkInlineStyles, getRemoveMessage, getResourceSuperType, getResourceType, getResponsiveClasses, getSlingRequest, getStyles, getTargetVersion, getTitle, getToolbarPosition, getVersion, getVisible, getVisibleExp, getWidth, getXssapi, getXssDescription, isDocumentFragmentGroup, isLayoutNavigable, isMenuRequired, isValid, isValidDorTemplateRef, setClientLibRef, setResource, setSlingRequest, syncNode
-
Methods inherited from class com.adobe.cq.sightly.WCMUsePojo
get, getComponent, getComponentContext, getCurrentDesign, getCurrentPage, getCurrentStyle, getDesigner, getEditContext, getInheritedProperties, getPageManager, getPageProperties, getProperties, getRequest, getResource, getResourceDesign, getResourcePage, getResourceResolver, getResponse, getSlingScriptHelper, getWcmMode, getXSSAPI, init
-
-
-
-
Method Detail
-
getMinOccur
public int getMinOccur()
Returns the current panel's minimum count configured in the authoring dialog- Returns:
- Integer representing the panel's minimum count
-
getMaxOccur
public int getMaxOccur()
Returns the current panel's maximum count configured in the authoring dialog- Returns:
- Integer representing the panel's maximum count
-
getInitialOccur
public int getInitialOccur()
-
getFragRefPropertyFromResource
public java.lang.String getFragRefPropertyFromResource()
Returns the fragRef property present at the resource.- Returns:
- String representing the fragRef
-
getFragRef
public java.lang.String getFragRef()
Returns the reference to the fragment configured during authoring- Returns:
- path of the fragment reference configured for the panel component
-
isFragmentAvailable
public boolean isFragmentAvailable()
Returns a boolean indicating whether the fragment is available or not.- Returns:
- Boolean indicating whether the fragment is available or not.
-
getFragmentDetails
public java.util.Map<java.lang.String,java.lang.String> getFragmentDetails()
Returns a map containing details for fragment that has been created from a panel.- Returns:
- Map containing title of the fragment and details of fields contained in the fragment.
-
getOptimizeRenderPerformance
public java.lang.String getOptimizeRenderPerformance()
-
getAssetRef
public java.lang.String getAssetRef()
- Returns:
- asset ref (String)
-
getLayoutFromFragRootPanel
public java.lang.String getLayoutFromFragRootPanel()
-
getAfFragmentMarker
public java.lang.String getAfFragmentMarker()
Checks if the panel has a fragment reference and returns the CSS class of the fragment marker- Returns:
- CSS class of the af fragment marker
-
isNewResponsiveLayout
public java.lang.Boolean isNewResponsiveLayout()
Returns whether panel is of new responsive layout type or not- Returns:
- Boolean.TRUE if panel is of new responsive layout type
-
getAuthoringConfig
public java.util.Map<java.lang.String,java.lang.Object> getAuthoringConfig()
Description copied from class:GuideNode
AuthoringConfig is a map populated only for authoring and it contains key value pairs that govern components behaviour. There may be a use case where one wants to access few list of properties of AEM form component during authoring, this API is built for this.- Overrides:
getAuthoringConfig
in classGuideNode
- Returns:
- Map
authoringConfig Map
-
getDoRLayoutType
public java.lang.String getDoRLayoutType()
Returns the dorLayoutType property of the layout.- Returns:
- String
-
getPanelInlineStyles
public java.lang.String getPanelInlineStyles()
Returns the string containing the inline style specified for the panel- Returns:
- inline style of the panel
-
getPanelDescriptionInlineStyles
public java.lang.String getPanelDescriptionInlineStyles()
Returns the string containing the inline style specified for the panel description- Returns:
- inline style of the panel description
-
getIsRepeatable
public boolean getIsRepeatable()
Returns whether the current panel is repeatable or not- Overrides:
getIsRepeatable
in classGuideNode
- Returns:
- boolean indicating if panel is repeatable or not
-
isHasToolbar
public boolean isHasToolbar()
Returns if toolbar present for the panel- Returns:
- true if toolbar is present else false
-
getLongDescription
public java.lang.String getLongDescription()
Returns the long description of the panel configured in authoring dialog- Returns:
- String representing the long description
-
getToolbar
public GuideItemsContainer getToolbar()
Returns the toolbar configured for the panel- Returns:
GuideItemsContainer
representing the tool bar
-
validate
public boolean validate(ResourceResolver serviceResourceResolver)
Description copied from class:GuideNode
This API is meant to validate the current AF object. It could validate and auto-fix if required
-
-