|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface NlsFormatterManager
This is the interface for a manager of NlsFormatters.
A legal implementation of this interface has to be thread-safe.
| Field Summary | |
|---|---|
static String |
STYLE_CURRENCY
|
static String |
STYLE_FULL
|
static String |
STYLE_INTEGER
|
static String |
STYLE_ISO_8601
|
static String |
STYLE_LONG
|
static String |
STYLE_MEDIUM
|
static String |
STYLE_PERCENT
|
static String |
STYLE_SHORT
|
static String |
TYPE_CHOICE
|
static String |
TYPE_DATE
|
static String |
TYPE_DATETIME
|
static String |
TYPE_NUMBER
|
static String |
TYPE_TIME
|
static String |
TYPE_TYPE
Format for Type |
| Method Summary | |
|---|---|
NlsFormatter<Object> |
getFormatter()
This method gets the default NlsFormatter. |
NlsFormatter<?> |
getFormatter(String formatType)
This method gets the NlsFormatter for the given
formatType. |
NlsFormatter<?> |
getFormatter(String formatType,
String formatStyle)
This method gets the NlsFormatter for the given
formatType and formatStyle. |
| Field Detail |
|---|
static final String TYPE_NUMBER
NumberFormat,
Constant Field Valuesstatic final String TYPE_DATE
DateFormat.getDateInstance(int, java.util.Locale),
Constant Field Valuesstatic final String TYPE_TIME
DateFormat.getTimeInstance(int, java.util.Locale),
Constant Field Valuesstatic final String TYPE_DATETIME
DateFormat.getDateTimeInstance(int, int, java.util.Locale),
Constant Field Valuesstatic final String TYPE_CHOICE
ChoiceFormat,
Constant Field Valuesstatic final String TYPE_TYPE
Type
static final String STYLE_SHORT
DateFormat.SHORT,
Constant Field Valuesstatic final String STYLE_MEDIUM
DateFormat.MEDIUM,
Constant Field Valuesstatic final String STYLE_LONG
DateFormat.LONG,
Constant Field Valuesstatic final String STYLE_FULL
DateFormat.FULL,
Constant Field Valuesstatic final String STYLE_INTEGER
NumberFormat.getIntegerInstance(),
Constant Field Valuesstatic final String STYLE_CURRENCY
NumberFormat.getCurrencyInstance(),
Constant Field Valuesstatic final String STYLE_PERCENT
NumberFormat.getPercentInstance(),
Constant Field Valuesstatic final String STYLE_ISO_8601
Iso8601Util,
Constant Field Values| Method Detail |
|---|
NlsFormatter<Object> getFormatter()
NlsFormatter.
NlsFormatter instance.getFormatter(String, String)NlsFormatter<?> getFormatter(String formatType)
NlsFormatter for the given
formatType.
formatType - is the type to be formatted.
NlsFormatter instance.getFormatter(String, String)
NlsFormatter<?> getFormatter(String formatType,
String formatStyle)
NlsFormatter for the given
formatType and formatStyle.MessageFormat the following types
and styles need to be supported by the implementation: formatType:
formatStyle:
shortmediumlongfullintegercurrencypercentChoiceFormats is NOT provided in a
compatible way as by hacking internal arrays of
MessageFormat. Instead this implementation provides a
clean configuration via formatStyle when
formatType is choice (see
NlsFormatterChoice).
formatType - is the type to be formatted.formatStyle - is the style defining details of formatting.
NlsFormatter instance.MessageFormat
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||