public class PInfranetMessageFormat extends MessageFormat
PInfranetMessageFormat is a MessageFormat derivative
that makes use of Portal view permissions and permission masks. It also has
implicit knowedge of the kinds of data usually displayed, for example, currency.MessageFormat.Field| Constructor and Description |
|---|
PInfranetMessageFormat(String format)
Creates an instance of a
PInfranetMessageFormat object
for the default locale in the specified format. |
PInfranetMessageFormat(String format,
Locale loc)
Creates an instance of a
PInfranetMessageFormat object
in the specified format and locale. |
| Modifier and Type | Method and Description |
|---|---|
static String |
createFormatFor(Object[] args)
A static utility method called to create a default format
for a number of arguments.
|
static String |
format(String format,
Object[] args)
A static utility method called to format an array of
Object
arguments that follow a supplied format string. |
static String |
format(String format,
Object[] args,
Locale loc)
A static utility method called to format an array of
Object arguments that follow a suppled
format string for a specified locale. |
static String |
format(String format,
Vector args)
A static utility method called to format an array of
Vector arguments that follow a supplied
format string. |
static String |
format(String format,
Vector args,
Locale loc)
A static utility method called to format an array of
Vector arguments that follow a supplied
format string for a specified locale. |
String |
format(Vector v)
Formats the data in a vector.
|
void |
overrideCurrencySymbol(String newSymbol)
Overrides the currency symbol used by the default locale, given a
new currency symbol to use in its place.
|
void |
setCurrencyFormat(NumberFormat newCurFormatter)
Change the currency format to the new currency format.
|
applyPattern, clone, equals, format, format, formatToCharacterIterator, getFormats, getFormatsByArgumentIndex, getLocale, hashCode, parse, parse, parseObject, setFormat, setFormatByArgumentIndex, setFormats, setFormatsByArgumentIndex, setLocale, toPatternformat, parseObjectpublic PInfranetMessageFormat(String format)
PInfranetMessageFormat object
for the default locale in the specified format.format - a String with the format to usepublic void setCurrencyFormat(NumberFormat newCurFormatter)
newCurFormatter - The new currency format.public void overrideCurrencySymbol(String newSymbol)
newSymbol - the new currency symbolpublic String format(Vector v)
v - a Vector of objects to supply to the formatterpublic static String format(String format, Object[] args)
Object
arguments that follow a supplied format string.format - a String with the format to useargs - an array of objects to formatpublic static String format(String format, Object[] args, Locale loc)
Object arguments that follow a suppled
format string for a specified locale.format - a String with the format to useargs - an array of objects to formatloc - the locale to format topublic static String format(String format, Vector args, Locale loc)
Vector arguments that follow a supplied
format string for a specified locale.format - a String with the format to useargs - a Vector of objects to formatloc - the locale to format topublic static String format(String format, Vector args)
Vector arguments that follow a supplied
format string.format - a String with the format to useargs - a Vector of objects to formatCopyright © 2003, 2023, Oracle and/or its affiliates.