- Created by Siddhartha Chikatamalla on Mar 18, 2019
You are viewing an old version of this page. View the current version.
Compare with Current View Page History
Version 1 Next »
Overview
Modifier and Type | Method and Description |
---|---|
| getButtonCustomization(com.cardinalcommerce.shared.models.enums.ButtonType buttonType) Gets button customization. |
| getButtonCustomization(java.lang.String buttonType) Gets button customization. |
| getLabelCustomization() Gets label customization. |
| getTextBoxCustomization() Gets text box customization. |
| getToolbarCustomization() Gets toolbar customization. |
void | setButtonCustomization(ButtonCustomization buttonCustomization, com.cardinalcommerce.shared.models.enums.ButtonType buttonType) Sets button customization. |
void | setButtonCustomization(ButtonCustomization buttonCustomization, java.lang.String buttonType) Sets button customization. |
void | setLabelCustomization(LabelCustomization labelCustomization) Sets label customization. |
void | setTextBoxCustomization(TextBoxCustomization textBoxCustomization) Sets text box customization. |
void | setToolbarCustomization(ToolbarCustomization toolbarCustomization) Sets toolbar customization. |
Customization
Modifier and Type | Method and Description |
---|---|
java.lang.String | getTextColor() Gets text color. |
java.lang.String | getTextFontName() Gets text font name. |
int | getTextFontSize() Gets text font size. |
void | setTextColor(java.lang.String textColor) Sets text color. |
void | setTextFontName(java.lang.String textFontName) Sets text font name. |
void | setTextFontSize(int textFontSize) Sets text font size. |
ButtonCustomization
Methods inherited from Customization |
---|
getTextColor, getTextFontName, getTextFontSize, setTextColor, setTextFontName, setTextFontSize |
Modifier and Type | Method and Description |
---|---|
java.lang.String | getBackgroundColor() This method shall return the background color of the button |
int | getCornerRadius() The getCornerRadius method shall return the radius of the button corners. |
void | setBackgroundColor(java.lang.String hexColorCode) Sets background color. |
void | setCornerRadius(int cornerRadius) Sets corner radius. |
LabelCustomization
Methods inherited from Customization |
---|
getTextColor, getTextFontName, getTextFontSize, setTextColor, setTextFontName, setTextFontSize |
Modifier and Type | Method and Description |
---|---|
java.lang.String | getHeadingTextColor() Gets heading text color. |
java.lang.String | getHeadingTextFontName() Gets heading text font name. |
int | getHeadingTextFontSize() Gets heading text font size. |
void | setHeadingTextColor(java.lang.String hexColorCode) set the background color |
void | setHeadingTextFontName(java.lang.String fontName) set the font type of the heading label text |
void | setHeadingTextFontSize(int fontSize) set the font size of the heading label text. |
TextBoxCustomization
Methods inherited from Customization |
---|
getTextColor, getTextFontName, getTextFontSize, setTextColor, setTextFontName, setTextFontSize |
Modifier and Type | Method and Description |
---|---|
java.lang.String | getBackgroundColor() Gets background color. |
java.lang.String | getButtonText() Gets button text. |
java.lang.String | getHeaderText() Gets header text. |
void | setBackgroundColor(java.lang.String hexColorCode) set the background color for the toolbar |
void | setButtonText(java.lang.String buttonText) Sets button text. |
void | setHeaderText(java.lang.String headerText) Sets header text. |
ToolbarCustomization
Methods inherited from Customization |
---|
getTextColor, getTextFontName, getTextFontSize, setTextColor, setTextFontName, setTextFontSize |
Modifier and Type | Method and Description |
---|---|
java.lang.String | getBorderColor() Gets border color. |
int | getBorderWidth() Gets border width. |
int | getCornerRadius() Gets corner radius. |
void | setBorderColor(java.lang.String hexColorCode) set the background color for the toolbar |
void | setBorderWidth(int borderWidth) Sets border width. |
void | setCornerRadius(int cornerRadius) Sets corner radius. |
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