ICGenericTemplateElement

ICGenericTemplateElement

This class exposes the data related to generic template element.

setTitle

This method to set the title for the generic template element data.

Syntax:  void setTitle(String title)

Parameters:

ParameterTypeDescription
titleStringThe title for the generic template element data.

getTitle

This method is used to return title for generic template element data.

Syntax:  String getTitle()

Return Value: title for the generic template element data.

setSubtitle

This method to set the subtitle for the generic template element data.

Syntax:  void setSubtitle(String subtitle)

Parameters: 

ParameterTypeDescription
subtitleStringThe subtitle for the generic template element data.

getSubtitle

This method is used to return subtitle for generic template element data.

Syntax:  String getSubtitle()

Return Value: subtitle for the generic template element data.

setImageURLs

This method to set the image urls for the generic template element data.

Syntax:  void setImageURLs(List<URL> imageURLs)

Parameters: 

ParameterTypeDescription
imageURLsListThe imageURLs for the generic template element data.

getImageURLs

This method is used to return image urls for generic template element data.

Syntax:  List<URL> getImageURLs()

Return Value: image urls for the generic template element data.

setButtons

This method to set the buttons for generic template element data.

Syntax:  void setButtons(List<ICButton> buttons)

Parameters: 

ParameterTypeDescription
buttonsListThe buttons for the generic template element data.

getButtons

This method is used to return buttons for generic template element data.

Syntax:  List<ICButton> getButtons()

Return Value: List of button for the generic template element data.

fromJSON

Instantiates a new ICGenericTemplateElement instance from the supplied JSONObject.

Syntax:  public static ICGenericTemplateElement fromJSON(JSONObject jsonObject)

Parameters:

ParameterTypeDescription
jsonObjectJSONObjectA valid JSONObject instance
containing generic template element data.

toJSON

This method returns a new JSONObject instance containing form generic template element data.

Syntax:  public JSONObject toJSON() throws JSONException

Returns: A JSONObject representation of the generic template element data.

Throws: org.json.JSONException