Class End
java.lang.Object
com.adobe.cq.testing.client.components.AbstractComponent
com.adobe.cq.testing.client.components.foundation.form.End
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic 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
ConstructorsConstructorDescriptionEnd(ComponentClient client, String pagePath, String location, String nameHint) The constructor stores all the component path information like parentPage, name etc. -
Method Summary
Modifier and TypeMethodDescriptionThe resource type for the component, e.g.Returns the start component wrapper that corresponds to this end componentprotected voidsetStartComponent(Start start) Internal method to set the start component that belongs to this end componentvoidsetSubmitButtons(String submitTitle, String resetTitle) Convenience method to create submit and reset buttons for the form.Methods inherited from class com.adobe.cq.testing.client.components.AbstractComponent
create, getClient, getComponentNode, getComponentPath, getCreateFormEntity, getFirstChild, getLocation, getName, getNext, getNextNodePath, getPagePath, getParentPath, getPrevious, getPreviousNodePath, getProperty, getPropertyAsString, getPropertyAsStringArray, reorder, save, setProperty, setProperty
-
Field Details
-
RESOURCE_TYPE
- See Also:
-
TYPE_SUBMIT
- See Also:
-
TYPE_RESET
- See Also:
-
PROP_SUBMIT
- See Also:
-
PROP_RESET
- See Also:
-
PROP_SUBMIT_DELETE
- See Also:
-
PROP_RESET_DELETE
- See Also:
-
PROP_SUBMIT_TITLE
- See Also:
-
PROP_RESET_TITLE
- See Also:
-
PROP_DESCRIPTION
- See Also:
-
-
Constructor Details
-
End
The constructor stores all the component path information like parentPage, name etc.- Parameters:
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. TheAbstractComponent.getName()method will return the correct name after(order,int...)has been called.
-
-
Method Details
-
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
-
setStartComponent
Internal method to set the start component that belongs to this end component- Parameters:
start- reference to the corresponding start component
-
getStartComponent
Returns the start component wrapper that corresponds to this end component- Returns:
- returns corresponding start component
-
setSubmitButtons
Convenience method to create submit and reset buttons for the form.- Parameters:
submitTitle- submit button titleresetTitle- reset button title
-