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
-
public class Slideshow extends AbstractFoundationComponent
Wraps the Slideshow foundation component, providing methods for editing it. See/libs/foundation/components/slideshowin the repository for implementation details.
-
-
Field Summary
Fields Modifier and Type Field Description static StringPROP_HREFstatic StringPROP_IMAGE1_REFstatic StringPROP_IMAGE1_TITLEstatic StringPROP_IMAGE2_REFstatic StringPROP_IMAGE2_TITLEstatic StringPROP_IMAGE3_REFstatic StringPROP_IMAGE3_TITLEstatic StringPROP_SLIDESHOW_HEIGHTstatic StringPROP_SLIDESHOW_WIDTHstatic StringPROP_TITLEstatic StringPROP_TYPEstatic StringRESOURCE_TYPE-
Fields inherited from class com.adobe.cq.testing.client.components.AbstractComponent
changeProperties, client, componentPath, DEFAULT_LOCATION, jsonNode, location, pagePath
-
-
Constructor Summary
Constructors Constructor Description Slideshow(ComponentClient client, String pagePath, String location, String nameHint)The constructor stores all the component path information like parentPage, name etc.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.sling.testing.clients.util.FormEntityBuildergetCreateFormEntity(String order)Adds an additional parameterparentResourceTypeto get properly inherited styles.StringgetResourceType()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 Detail
-
RESOURCE_TYPE
public static final String RESOURCE_TYPE
- See Also:
- Constant Field Values
-
PROP_HREF
public static final String PROP_HREF
- See Also:
- Constant Field Values
-
PROP_TYPE
public static final String PROP_TYPE
- See Also:
- Constant Field Values
-
PROP_TITLE
public static final String PROP_TITLE
- See Also:
- Constant Field Values
-
PROP_IMAGE1_REF
public static final String PROP_IMAGE1_REF
- See Also:
- Constant Field Values
-
PROP_IMAGE1_TITLE
public static final String PROP_IMAGE1_TITLE
- See Also:
- Constant Field Values
-
PROP_IMAGE2_REF
public static final String PROP_IMAGE2_REF
- See Also:
- Constant Field Values
-
PROP_IMAGE2_TITLE
public static final String PROP_IMAGE2_TITLE
- See Also:
- Constant Field Values
-
PROP_IMAGE3_REF
public static final String PROP_IMAGE3_REF
- See Also:
- Constant Field Values
-
PROP_IMAGE3_TITLE
public static final String PROP_IMAGE3_TITLE
- See Also:
- Constant Field Values
-
PROP_SLIDESHOW_WIDTH
public static final String PROP_SLIDESHOW_WIDTH
- See Also:
- Constant Field Values
-
PROP_SLIDESHOW_HEIGHT
public static final String PROP_SLIDESHOW_HEIGHT
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Slideshow
public Slideshow(ComponentClient client, String pagePath, String location, String nameHint)
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 Detail
-
getCreateFormEntity
public org.apache.sling.testing.clients.util.FormEntityBuilder getCreateFormEntity(String order)
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
public String 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
-
-