Class Slideshow
java.lang.Object
com.adobe.cq.testing.client.components.AbstractComponent
com.adobe.cq.testing.client.components.foundation.AbstractFoundationComponent
com.adobe.cq.testing.client.components.foundation.Slideshow
Wraps the Slideshow foundation component, providing methods for editing it. See
/libs/foundation/components/slideshow in the repository for implementation details.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from class com.adobe.cq.testing.client.components.AbstractComponent
changeProperties, client, componentPath, DEFAULT_LOCATION, jsonNode, location, pagePath -
Constructor Summary
ConstructorsConstructorDescriptionSlideshow(ComponentClient client, String pagePath, String location, String nameHint) The constructor stores all the component path information like parentPage, name etc. -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.sling.testing.clients.util.FormEntityBuildergetCreateFormEntity(String order) Adds an additional parameterparentResourceTypeto get properly inherited styles.The resource type for the component, e.g.Methods inherited from class com.adobe.cq.testing.client.components.AbstractComponent
create, getClient, getComponentNode, getComponentPath, getFirstChild, getLocation, getName, getNext, getNextNodePath, getPagePath, getParentPath, getPrevious, getPreviousNodePath, getProperty, getPropertyAsString, getPropertyAsStringArray, reorder, save, setProperty, setProperty
-
Field Details
-
RESOURCE_TYPE
- See Also:
-
PROP_HREF
- See Also:
-
PROP_TYPE
- See Also:
-
PROP_TITLE
- See Also:
-
PROP_IMAGE1_REF
- See Also:
-
PROP_IMAGE1_TITLE
- See Also:
-
PROP_IMAGE2_REF
- See Also:
-
PROP_IMAGE2_TITLE
- See Also:
-
PROP_IMAGE3_REF
- See Also:
-
PROP_IMAGE3_TITLE
- See Also:
-
PROP_SLIDESHOW_WIDTH
- See Also:
-
PROP_SLIDESHOW_HEIGHT
- See Also:
-
-
Constructor Details
-
Slideshow
The constructor stores all the component path information like parentPage, name etc.- Parameters:
client- TheFoundationClientthat's creating this instance.pagePath- path to the page that will contain the component.location- relative location to the parent node inside the page that will contain the component node.nameHint- name to be used for the component node. Might get altered by the server if a naming conflict occurs. TheAbstractComponent.getName()method will return the correct name afterAbstractComponent.create(String,int...)has been called.
-
-
Method Details
-
getCreateFormEntity
Adds an additional parameterparentResourceTypeto get properly inherited styles.- Overrides:
getCreateFormEntityin classAbstractComponent- Parameters:
order- the order- Returns:
- FormEntityBuilder to be used for the create POST request.
-
getResourceType
Description copied from class:AbstractComponentThe resource type for the component, e.g. foundation/components/text. this will be set in thesling:resourceTypeproperty of the node.- Specified by:
getResourceTypein classAbstractComponent- Returns:
- the resource type
-