Package net.sf.jasperreports.engine.util
Class DefaultFormatFactory
java.lang.Object
net.sf.jasperreports.engine.util.DefaultFormatFactory
- All Implemented Interfaces:
FormatFactory
- Author:
- Teodor Danciu (teodord@users.sourceforge.net)
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
static final String
static final String
Used in the date pattern to specify the default style.static final String
Used in the date pattern to specify the full style.static final String
Used in the date pattern to specify that the date or time should not be included.static final String
Used in the date pattern to specify the long style.static final String
Used in the date pattern to specify the medium style.static final String
Used in the date format pattern to separate the date and time styles.static final String
Used in the date pattern to specify the short style.static final String
Number pattern to show integer value as duration expressed in hours:minutes:seconds. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateDateFormat
(String pattern, Locale locale, TimeZone tz) static FormatFactory
createFormatFactory
(String formatFactoryClassName) createNumberFormat
(String pattern, Locale locale) protected static DateFormat
getDateFormat
(int[] dateStyle, int[] timeStyle, Locale locale) protected static int[]
getDateStyle
(String pattern)
-
Field Details
-
EXCEPTION_MESSAGE_KEY_FACTORY_INSTANCE_ERROR
- See Also:
-
EXCEPTION_MESSAGE_KEY_FACTORY_LOADING_ERROR
- See Also:
-
STANDARD_DATE_FORMAT_DEFAULT
Used in the date pattern to specify the default style.- See Also:
-
STANDARD_DATE_FORMAT_SHORT
Used in the date pattern to specify the short style.- See Also:
-
STANDARD_DATE_FORMAT_MEDIUM
Used in the date pattern to specify the medium style.- See Also:
-
STANDARD_DATE_FORMAT_LONG
Used in the date pattern to specify the long style.- See Also:
-
STANDARD_DATE_FORMAT_FULL
Used in the date pattern to specify the full style.- See Also:
-
STANDARD_DATE_FORMAT_HIDE
Used in the date pattern to specify that the date or time should not be included.- See Also:
-
STANDARD_DATE_FORMAT_SEPARATOR
Used in the date format pattern to separate the date and time styles.- See Also:
-
STANDARD_NUMBER_FORMAT_DURATION
Number pattern to show integer value as duration expressed in hours:minutes:seconds.- See Also:
-
-
Constructor Details
-
DefaultFormatFactory
public DefaultFormatFactory()
-
-
Method Details
-
createDateFormat
- Specified by:
createDateFormat
in interfaceFormatFactory
-
getDateStyle
-
getDateFormat
-
createNumberFormat
- Specified by:
createNumberFormat
in interfaceFormatFactory
-
createFormatFactory
-