public class FlashTemplateFormatter extends TemplateFormatter
The methods in this class are accessible from within a template via the
$fmt variable.
| Modifier and Type | Field and Description |
|---|---|
private static long |
serialVersionUID
The class' serialization version id.
|
| Constructor and Description |
|---|
FlashTemplateFormatter() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
ccExpire(CreditCard cc)
Return a formatted credit card expiration string.
|
static java.lang.String |
ccMaskNum(java.lang.String ccNum)
Returns a formatted (masked) credit card number string.
|
static java.lang.String |
ccNumber(CreditCard cc)
Returns a formatted (masked) credit card number string.
|
static java.lang.String |
ccType(CreditCard cc)
Return a formatted credit card type string.
|
static java.lang.String |
custAddress(Customer cust)
Returns a formatted customer address string using the html <br> tag
as the address line delimiter.
|
static java.lang.String |
custAddress(Customer cust,
java.lang.String delimiter)
Returns a formatted customer address string using the given address line
delimiter.
|
static java.lang.String |
priceInput(java.math.BigDecimal value)
Returns a formatted unit price input string.
|
static java.lang.String |
priceInput0(java.math.BigDecimal value)
Returns a formatted unit price input string.
|
static java.lang.String |
priceOutput(java.math.BigDecimal value)
Returns a formatted unit price output string.
|
static java.lang.String |
priceOutput0(java.math.BigDecimal value)
Returns a formatted unit price output string.
|
static java.lang.String |
priceOutputC(java.math.BigDecimal value)
Returns a formatted unit price output string.
|
static java.lang.String |
quantityInput(int value)
Returns a formatted quantity input string.
|
static java.lang.String |
quantityInput0(int value)
Returns a formatted quantity input string.
|
static java.lang.String |
quantityOutput(int value)
Returns a formatted quantity output string.
|
static java.lang.String |
quantityOutput0(int value)
Returns a formatted quantity output string.
|
static java.lang.String |
siteAddress(FlashSiteInfo info)
Returns a formatted site info address string using the html <br> tag
as the address line delimiter.
|
static java.lang.String |
siteAddress(FlashSiteInfo info,
java.lang.String delimiter)
Returns a formatted site info address string using the given address line
delimiter.
|
static java.lang.String |
totalInput(java.math.BigDecimal value)
Returns a formatted extended or total amount input string.
|
static java.lang.String |
totalInput0(java.math.BigDecimal value)
Returns a formatted extended or total amount input string.
|
static java.lang.String |
totalOutput(java.math.BigDecimal value)
Returns a formatted extended or total amount output string.
|
static java.lang.String |
totalOutput(double value)
Returns a formatted extended or total amount output string.
|
static java.lang.String |
totalOutput0(java.math.BigDecimal value)
Returns a formatted extended or total amount output string.
|
static java.lang.String |
totalOutput0(double value)
Returns a formatted extended or total amount output string.
|
static java.lang.String |
totalOutputC(java.math.BigDecimal value)
Returns a formatted extended or total amount output string.
|
static java.lang.String |
totalOutputC(double value)
Returns a formatted extended or total amount output string.
|
static java.lang.String |
userName(User user)
Returns a formatted user name string.
|
static java.lang.String |
userType(User user)
Returns a formatted user type string.
|
currencyInput, currencyInput, currencyInput0, currencyInput0, currencyOutput, currencyOutput, currencyOutput0, currencyOutput0, dateInput, dateInput, dateInput, dateOutput, dateOutput, dateOutput, datetimeOutput, datetimeOutput, datetimeOutput, numberInput, numberInput, numberInput, numberInput0, numberInput0, numberInput0, numberOutput, numberOutput, numberOutput, numberOutput0, numberOutput0, numberOutput0, timeInput, timeInput, timeInput, timeOutput, timeOutput, timeOutput, toYesNoprivate static final long serialVersionUID
public static java.lang.String ccExpire(CreditCard cc)
cc - (CreditCard) The credit card to format.public static java.lang.String ccNumber(CreditCard cc)
cc - (CreditCard) The credit card to format.public static java.lang.String ccMaskNum(java.lang.String ccNum)
ccNum - (String) The credit card number to format.public static java.lang.String ccType(CreditCard cc)
cc - (CreditCard) The credit card to format.public static java.lang.String custAddress(Customer cust)
cust - (Customer) The customer to format.public static java.lang.String custAddress(Customer cust, java.lang.String delimiter)
cust - (Customer) The customer to format.delimiter - (String) The character(s) to use as a separator
between each line of address.public static java.lang.String quantityInput(int value)
value - (int) The value to format.public static java.lang.String quantityInput0(int value)
value - (int) The value to format.public static java.lang.String quantityOutput(int value)
value - (int) The value to format.public static java.lang.String quantityOutput0(int value)
value - (int) The value to format.public static java.lang.String priceInput(java.math.BigDecimal value)
value - (BigDecimal) The value to format.public static java.lang.String priceInput0(java.math.BigDecimal value)
value - (BigDecimal) The value to format.public static java.lang.String priceOutput(java.math.BigDecimal value)
value - (BigDecimal) The value to format.public static java.lang.String priceOutput0(java.math.BigDecimal value)
value - (BigDecimal) The value to format.public static java.lang.String priceOutputC(java.math.BigDecimal value)
value - (BigDecimal) The value to format.public static java.lang.String siteAddress(FlashSiteInfo info)
info - (FlashSiteInfo) The site info to format.public static java.lang.String siteAddress(FlashSiteInfo info, java.lang.String delimiter)
info - (FlashSiteInfo) The site info to format.delimiter - (String) The character(s) to use as a separator
between each line of address.public static java.lang.String totalInput(java.math.BigDecimal value)
value - (BigDecimal) The value to format.public static java.lang.String totalInput0(java.math.BigDecimal value)
value - (BigDecimal) The value to format.public static java.lang.String totalOutput(double value)
value - (double) The value to format.public static java.lang.String totalOutput(java.math.BigDecimal value)
value - (BigDecimal) The value to format.public static java.lang.String totalOutput0(double value)
value - (double) The value to format.public static java.lang.String totalOutput0(java.math.BigDecimal value)
value - (BigDecimal) The value to format.public static java.lang.String totalOutputC(double value)
value - (double) The value to format.public static java.lang.String totalOutputC(java.math.BigDecimal value)
value - (BigDecimal) The value to format.public static java.lang.String userName(User user)
user - (User) The user to format.public static java.lang.String userType(User user)
user - (User) The user to format.