public class Carousel extends AbstractFoundationComponent
/libs/foundation/components/carousel in the repository for implementation details.| Modifier and Type | Field and Description |
|---|---|
static String |
PROP_CONTROLS_TYPE |
static String |
PROP_LIMIT |
static String |
PROP_LIST_FROM |
static String |
PROP_ORDER_BY |
static String |
PROP_PAGES |
static String |
PROP_PARENT_PAGE |
static String |
PROP_PLAY_SPEED |
static String |
PROP_QUERY |
static String |
PROP_SAVED_QUERY |
static String |
PROP_SEARCH_IN |
static String |
PROP_TRANS_TIME |
static String |
RESOURCE_TYPE |
changeProperties, client, componentPath, DEFAULT_LOCATION, jsonNode, location, pagePath| Constructor and Description |
|---|
Carousel(ComponentClient client,
String pagePath,
String location,
String nameHint)
The constructor stores all the component path information like parentPage, name etc.
|
| Modifier and Type | Method and Description |
|---|---|
org.apache.sling.testing.clients.SlingHttpResponse |
edit(int playSpeed,
int transTime,
String controlsType,
String listFrom,
String orderBy,
int limit,
String parentPage,
String[] fixedList,
String searchIn,
String query,
String savedQuery,
int... expectedStatus)
Sends an editing request to a carousel component.
|
org.apache.sling.testing.clients.util.FormEntityBuilder |
getCreateFormEntity(String order)
Adds an additional parameter
parentResourceType to get properly inherited styles. |
String |
getResourceType()
The resource type for the component, e.g.
|
create, getClient, getComponentNode, getComponentPath, getFirstChild, getLocation, getName, getNext, getNextNodePath, getPagePath, getParentPath, getPrevious, getPreviousNodePath, getProperty, getPropertyAsString, getPropertyAsStringArray, reorder, save, setProperty, setPropertypublic static final String RESOURCE_TYPE
public static final String PROP_PLAY_SPEED
public static final String PROP_TRANS_TIME
public static final String PROP_CONTROLS_TYPE
public static final String PROP_LIST_FROM
public static final String PROP_ORDER_BY
public static final String PROP_LIMIT
public static final String PROP_PARENT_PAGE
public static final String PROP_PAGES
public static final String PROP_SEARCH_IN
public static final String PROP_QUERY
public static final String PROP_SAVED_QUERY
public Carousel(ComponentClient client, String pagePath, String location, String nameHint)
client - The ComponentClient that will be used for sending the requests.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. The AbstractComponent.getName() method will return the correct name after
AbstractComponent.create(String,int...) has been called.public org.apache.sling.testing.clients.util.FormEntityBuilder getCreateFormEntity(String order)
parentResourceType to get properly inherited styles.getCreateFormEntity in class AbstractComponentorder - orderpublic String getResourceType()
AbstractComponentsling:resourceType property of the node.getResourceType in class AbstractComponentpublic org.apache.sling.testing.clients.SlingHttpResponse edit(int playSpeed,
int transTime,
String controlsType,
String listFrom,
String orderBy,
int limit,
String parentPage,
String[] fixedList,
String searchIn,
String query,
String savedQuery,
int... expectedStatus)
throws org.apache.sling.testing.clients.ClientException
playSpeed - Time in milliseconds until the next slide is shown. Set 0 to not change.transTime - Time in milliseconds for a transition between 2 slides. Set 0 to not change.controlsType - Allowed values:listFrom - Allowed values:orderBy - Allowed values:limit - Maximum number of items displayed in list, set 0 to ignore.parentPage - If listFrom = children, defines the parent page.Set null to use current page.fixedList - If listFrom = static, set String array of pages that should doGet shown in carousel.searchIn - If listFrom = search, where to start search, Set null to use current site
(eg. /content/mysite)query - If listFrom = search, the search query to execute.savedQuery - If listFrom = querybuilder, the querybuilder predicate notation.expectedStatus - list of allowed HTTP Status to be returned. if not set, status 200 is assumedSlingHttpResponse wrapping the HTML response returned by Slingorg.apache.sling.testing.clients.ClientException - If something fails during request/response cycleCopyright © 2018. All rights reserved.