Class Creditcard
- java.lang.Object
-
- com.adobe.cq.testing.client.components.AbstractComponent
-
- com.adobe.cq.testing.client.components.foundation.form.AbstractFormFieldComponent
-
- com.adobe.cq.testing.client.components.foundation.form.Creditcard
-
public class Creditcard extends AbstractFormFieldComponent
Wraps the Creditcard foundation component, providing methods for editing it. See/libs/foundation/components/form/creditcardin the repository for implementation details.
-
-
Field Summary
Fields Modifier and Type Field Description static StringPROP_APPLYCCTYPEFILTERstatic StringPROP_NAMEstatic StringPROP_READONLYstatic StringPROP_REQUIREDstatic StringPROP_SHOWCCVstatic StringPROP_TITLEstatic StringRESOURCE_TYPE-
Fields inherited from class com.adobe.cq.testing.client.components.foundation.form.AbstractFormFieldComponent
OPT_CONSTRAINT_TYPE_DATE, OPT_CONSTRAINT_TYPE_EMAIL, OPT_CONSTRAINT_TYPE_NAME, OPT_CONSTRAINT_TYPE_NUMERIC, PROP_CONSTRAINT_MESSAGE, PROP_CONSTRAINT_TYPE, PROP_DEFAULT_VALUE, PROP_DESCRIPTION, PROP_ELEMENT_NAME, PROP_HIDE_TITLE, PROP_REQUIRED_MESSAGE, PROP_STYLING_CSS
-
Fields inherited from class com.adobe.cq.testing.client.components.AbstractComponent
changeProperties, client, componentPath, DEFAULT_LOCATION, jsonNode, location, pagePath
-
-
Constructor Summary
Constructors Constructor Description Creditcard(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 StringgetResourceType()The resource type for the component, e.g.-
Methods inherited from class com.adobe.cq.testing.client.components.foundation.form.AbstractFormFieldComponent
getCreateFormEntity, getElementName, setConstraint, setDefaultValue, setDescription, setElementName, setHideTitle, setStylingCss, setTitle, setUseConstraint
-
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_TITLE
public static final String PROP_TITLE
- See Also:
- Constant Field Values
-
PROP_NAME
public static final String PROP_NAME
- See Also:
- Constant Field Values
-
PROP_REQUIRED
public static final String PROP_REQUIRED
- See Also:
- Constant Field Values
-
PROP_READONLY
public static final String PROP_READONLY
- See Also:
- Constant Field Values
-
PROP_APPLYCCTYPEFILTER
public static final String PROP_APPLYCCTYPEFILTER
- See Also:
- Constant Field Values
-
PROP_SHOWCCV
public static final String PROP_SHOWCCV
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Creditcard
public Creditcard(ComponentClient client, String pagePath, String location, String nameHint) throws org.apache.sling.testing.clients.ClientException
The constructor stores all the component path information like parentPage, name etc.- Parameters:
client- TheComponentClientthat'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.- Throws:
org.apache.sling.testing.clients.ClientException- if the request fails
-
-
Method Detail
-
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
-
-