public class LeadFormCTAComponentTagHandler extends AbstractTagHandler
LeadFormCTAComponentTagHandler
handles the CTA Lead Form component. Maps various lead form fields to corresponding lead
components and other generic components with corresponding attributes/properties provided in imported zip.
Supported components are:
"mcm/components/cta-form/start"
"mcm/components/cta-form/end"
"mcm/components/cta-form/first-name"
"mcm/components/cta-form/last-name"
"mcm/components/cta-form/emailId"
"mcm/components/cta-form/address"
"mcm/components/cta-form/gender"
"mcm/components/cta-form/dateOfBirth"
"mcm/components/cta-form/about"
"mcm/components/cta-form/userId"
"mcm/components/cta-form/submit"
"foundation/components/form/text"
"foundation/components/form/checkbox"
"foundation/components/form/radio"
"foundation/components/form/password"
"foundation/components/form/hidden"
"foundation/components/parsys"
Custom component can be included inside cta-form by providing full path inside data-cq-component.Modifier and Type | Class and Description |
---|---|
class |
LeadFormCTAComponentTagHandler.ComponentDetails |
Modifier and Type | Field and Description |
---|---|
static String |
RESOURCE_TYPE_CHECKBOX |
static String |
RESOURCE_TYPE_CTA_LEADFORM_ABOUT |
static String |
RESOURCE_TYPE_CTA_LEADFORM_ADDRESS |
static String |
RESOURCE_TYPE_CTA_LEADFORM_DOB |
static String |
RESOURCE_TYPE_CTA_LEADFORM_EMAILID |
static String |
RESOURCE_TYPE_CTA_LEADFORM_END |
static String |
RESOURCE_TYPE_CTA_LEADFORM_FIRSTNAME |
static String |
RESOURCE_TYPE_CTA_LEADFORM_GENDER |
static String |
RESOURCE_TYPE_CTA_LEADFORM_LASTNAME |
static String |
RESOURCE_TYPE_CTA_LEADFORM_START |
static String |
RESOURCE_TYPE_CTA_LEADFORM_SUBMIT |
static String |
RESOURCE_TYPE_CTA_LEADFORM_USERID |
static String |
RESOURCE_TYPE_HIDDEN |
static String |
RESOURCE_TYPE_PARSYS |
static String |
RESOURCE_TYPE_PASSWORD |
static String |
RESOURCE_TYPE_RADIO |
static String |
RESOURCE_TYPE_TEXT |
NAME_HINT_PROPERTY_KEY
Constructor and Description |
---|
LeadFormCTAComponentTagHandler() |
Modifier and Type | Method and Description |
---|---|
void |
beginHandling(String uri,
String localName,
String qName,
Attributes atts)
Callback to signal the start of handling giving the tag handler a chance for running intialization routines.
|
void |
characters(char[] ch,
int start,
int length)
Callback to signal the encounter of character content within tags.
|
void |
endElement(String uri,
String localName,
String qName)
Callback to signal the encounter of a tag end.
|
void |
endHandling(String uri,
String localName,
String qName)
Callback to signal the end of handling giving the tag handler a chance for finalizing things.
|
Object |
getContent(HTMLContentType htmlContentType)
Gets the content of the type
HTMLContentType |
void |
startElement(String uri,
String localName,
String qName,
Attributes atts)
Callback to signal the encounter of a tag start.
|
boolean |
supportsContent(HTMLContentType htmlContentType)
Indicates whether the passed
HTMLContentType is supported or not |
getPageComponents, setDesignImporterContext, setPageBuilder, setTagHandlerProvider
public static final String RESOURCE_TYPE_CTA_LEADFORM_START
public static final String RESOURCE_TYPE_CTA_LEADFORM_END
public static final String RESOURCE_TYPE_CTA_LEADFORM_FIRSTNAME
public static final String RESOURCE_TYPE_CTA_LEADFORM_LASTNAME
public static final String RESOURCE_TYPE_CTA_LEADFORM_EMAILID
public static final String RESOURCE_TYPE_CTA_LEADFORM_ADDRESS
public static final String RESOURCE_TYPE_CTA_LEADFORM_GENDER
public static final String RESOURCE_TYPE_CTA_LEADFORM_DOB
public static final String RESOURCE_TYPE_CTA_LEADFORM_ABOUT
public static final String RESOURCE_TYPE_CTA_LEADFORM_USERID
public static final String RESOURCE_TYPE_CTA_LEADFORM_SUBMIT
public static final String RESOURCE_TYPE_TEXT
public static final String RESOURCE_TYPE_CHECKBOX
public static final String RESOURCE_TYPE_RADIO
public static final String RESOURCE_TYPE_PASSWORD
public static final String RESOURCE_TYPE_HIDDEN
public static final String RESOURCE_TYPE_PARSYS
public void beginHandling(String uri, String localName, String qName, Attributes atts) throws DesignImportException
TagHandler
TagHandler
s are registered against tag+attribute combination and are invoked by the HTMLContentHandler
as and when it
encounters a tag matching the tag attribute combination the tag handler is registered with.
beginHandling
in interface TagHandler
beginHandling
in class AbstractTagHandler
DesignImportException
public void startElement(String uri, String localName, String qName, Attributes atts) throws DesignImportException
TagHandler
Once a tag handler begins handling, it receives the start tag events for all the nested tags within the purview of the tag this tag handler is registered against.
startElement
in interface TagHandler
startElement
in class AbstractTagHandler
DesignImportException
public void characters(char[] ch, int start, int length) throws DesignImportException
TagHandler
characters
in interface TagHandler
characters
in class AbstractTagHandler
DesignImportException
public void endHandling(String uri, String localName, String qName) throws DesignImportException
TagHandler
This is arguably the last callback a tag handler receives. After this, the current tag handler is popped out from the chain and the subsequent Tika events are directed to preceding tag handlers.
endHandling
in interface TagHandler
endHandling
in class AbstractTagHandler
DesignImportException
public void endElement(String uri, String localName, String qName) throws DesignImportException
TagHandler
endElement
in interface TagHandler
endElement
in class AbstractTagHandler
DesignImportException
public boolean supportsContent(HTMLContentType htmlContentType)
HTMLContentProvider
HTMLContentType
is supported or notsupportsContent
in interface HTMLContentProvider
supportsContent
in class AbstractTagHandler
public Object getContent(HTMLContentType htmlContentType)
HTMLContentProvider
HTMLContentType
getContent
in interface HTMLContentProvider
getContent
in class AbstractTagHandler
"Copyright © 2006 - 2015 Adobe Systems Incorporated. All Rights Reserved"