Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

Overview 

Modifier and TypeMethod and Description

com.cardinalcommerce.shared.

userinterfaces.ButtonCustomization

getButtonCustomization(ButtonType buttonType)
Gets button customization.

com.cardinalcommerce.shared.

userinterfaces.ButtonCustomization

getButtonCustomization(String buttonType)
Gets button customization.

com.cardinalcommerce.shared.

userinterfaces.LabelCustomization

getLabelCustomization()
Gets label customization.

com.cardinalcommerce.shared.

userinterfaces.TextBoxCustomization

getTextBoxCustomization()
Gets text box customization.

com.cardinalcommerce.shared.

userinterfaces.ToolbarCustomization

getToolbarCustomization()
Gets toolbar customization.
voidsetButtonCustomization(ButtonCustomization buttonCustomization,ButtonType buttonType)
Sets button customization.
voidsetButtonCustomization(ButtonCustomization buttonCustomization, java.lang.String buttonType)
Sets button customization.
voidsetLabelCustomization(LabelCustomization labelCustomization)
Sets label customization.
voidsetTextBoxCustomization(TextBoxCustomization textBoxCustomization)
Sets text box customization.
voidsetToolbarCustomization(ToolbarCustomization toolbarCustomization)
Sets toolbar customization.

Customization

Modifier and TypeMethod and Description
java.lang.StringgetTextColor()
Gets text color.
java.lang.StringgetTextFontName()
Gets text font name.
intgetTextFontSize()
Gets text font size.
voidsetTextColor(java.lang.String textColor)
Sets text color.
voidsetTextFontName(java.lang.String textFontName)
Sets text font name.
voidsetTextFontSize(int textFontSize)
Sets text font size.

ButtonCustomization

Methods inherited from Customization

getTextColor, getTextFontName, getTextFontSize, setTextColor, setTextFontName, setTextFontSize
Modifier and TypeMethod and Description
java.lang.StringgetBackgroundColor()
This method shall return the background color of the button
intgetCornerRadius()
The getCornerRadius method shall return the radius of the button corners.
voidsetBackgroundColor(java.lang.String hexColorCode)
Sets background color.
voidsetCornerRadius(int cornerRadius)
Sets corner radius.

LabelCustomization

Methods inherited from Customization

getTextColor, getTextFontName, getTextFontSize, setTextColor, setTextFontName, setTextFontSize
Modifier and TypeMethod and Description
java.lang.StringgetHeadingTextColor()
Gets heading text color.
java.lang.StringgetHeadingTextFontName()
Gets heading text font name.
intgetHeadingTextFontSize()
Gets heading text font size.
voidsetHeadingTextColor(java.lang.String hexColorCode)
set the background color
voidsetHeadingTextFontName(java.lang.String fontName)
set the font type of the heading label text
voidsetHeadingTextFontSize(int fontSize)
set the font size of the heading label text.

TextBoxCustomization

Methods inherited from Customization

getTextColor, getTextFontName, getTextFontSize, setTextColor, setTextFontName, setTextFontSize
Modifier and TypeMethod and Description
java.lang.StringgetBackgroundColor()
Gets background color.
java.lang.StringgetButtonText()
Gets button text.
java.lang.StringgetHeaderText()
Gets header text.
voidsetBackgroundColor(java.lang.String hexColorCode)
set the background color for the toolbar
voidsetButtonText(java.lang.String buttonText)
Sets button text.
voidsetHeaderText(java.lang.String headerText)
Sets header text.

ToolbarCustomization

Methods inherited from Customization

getTextColor, getTextFontName, getTextFontSize, setTextColor, setTextFontName, setTextFontSize
Modifier and TypeMethod and Description
java.lang.StringgetBorderColor()
Gets border color.
intgetBorderWidth()
Gets border width.
intgetCornerRadius()
Gets corner radius.
voidsetBorderColor(java.lang.String hexColorCode)
set the background color for the toolbar
voidsetBorderWidth(int borderWidth)
Sets border width.
voidsetCornerRadius(int cornerRadius)
Sets corner radius.

Sample Code 

Sample Code
//Verify Button Customization
ButtonCustomization verifyButton = new ButtonCustomization();
verifyButton.setTextColor("#ffffff");
verifyButton.setBackgroundColor("#5585a2");
verifyButton.setTextFontName("font/amaticsc.ttf");
verifyButton.setCornerRadius(1);
verifyButton.setTextFontSize(16);
//Resend Button Customization
ButtonCustomization resendButton = new ButtonCustomization();
resendButton.setTextColor("#ffffff");
resendButton.setBackgroundColor("#5585a2");
resendButton.setTextFontName("font/amaticsc.ttf");
resendButton.setCornerRadius(1);
resendButton.setTextFontSize(16);

//Toolbar Customization
ToolbarCustomization toolbarCustomization = new ToolbarCustomization();
toolbarCustomization.setBackgroundColor("#003759");
toolbarCustomization.setButtonText("CANCEL");
toolbarCustomization.setHeaderText("DEMO CHECKOUT");
toolbarCustomization.setTextColor("#ffffff");
toolbarCustomization.setTextFontName("font/amaticsc.ttf");
toolbarCustomization.setTextFontSize(20);

//Textbox Customization
TextBoxCustomization textBoxCustomization = new TextBoxCustomization();
textBoxCustomization.setBorderColor("#000000");
textBoxCustomization.setBorderWidth(5);
textBoxCustomization.setCornerRadius(1);
textBoxCustomization.setTextColor("#00ff2a");
textBoxCustomization.setTextFontName("font/amaticsc.ttf");
textBoxCustomization.setTextFontSize(25);

//Label Customization
LabelCustomization labelCustomization = new LabelCustomization();
labelCustomization.setHeadingTextColor("#660000");
labelCustomization.setHeadingTextFontName("font/amaticsc.ttf");
labelCustomization.setHeadingTextFontSize(35);
labelCustomization.setTextColor("#000000");
labelCustomization.setTextFontName("font/amaticsc.ttf");
labelCustomization.setTextFontSize(15);

uiCustomization.setButtonCustomization(verifyButton, ButtonType.VERIFY);
uiCustomization.setButtonCustomization(resendButton, ButtonType.RESEND);
uiCustomization.setToolbarCustomization(toolbarCustomization);
uiCustomization.setTextBoxCustomization(textBoxCustomization);
uiCustomization.setLabelCustomization(labelCustomization);

Fonts have to be added to the application and the path should be provided in the UI customization

Sample Screenshots  

  • No labels