Listing 1. Typical formatter usage.
清单1.formatter的典型用法。
The Formatter class supports the following styles
Formatter类支持以下风格
On a newly created formatter, you can call several methods.
在新创建的formatter之上,可以调用几个方法。
The Formatter class has defined the fields for different styles.
Formatter类为不同的风格定义了字段。
Class Formatter: Creates locale-specific renditions of data items.
formatter类:创建数据项特定于地区的翻译。
The XSLT task accepts the file generated from the formatter toFile attribute.
xslt任务接受根据formatter tofile属性生成的文件。
This will be passed to a formatter that formats the report object for viewing.
报告对象将被发送到一个格式化程序中进行格式化以供查看。
It also checks whether each of the columns in the layout has a formatter attribute.
它还会检查布局中的每一列是否有formatter属性。
Even if the field formatter isn't supported yet, that doesn't mean you can't use it.
即使尚未受到支持的字段格式器,这并不意味着您不能使用它。
Formatter: : Template provides a simple templating system for renderer options.
Template提供了一个简单的包含各种显示选项的模板系统。
The first two lines demonstrate the difference between using toString and Formatter.
前两行展示了使用toString和Formatter的不同结果。
Printing the formatter object will display the content of the Appendable object.
打印formatter对象将显示Appendable对象的内容。
FOP is the world's first print formatter driven by XSL Formatting Objects (XSL-FO).
FOP是由xsl格式化对象(XSL - FO)推动的世界上第一个打印格式化程序。
In more complicated cases, there is both a display formatter and an input formatter.
在较为复杂的情况下,既有显示格式化器,也有输入格式化器。
Adding a number argument as well will tell the formatter how many decimal digits to use.
再添加一个数字实参就能告诉格式化程序要使用多少个小数位。
The second part of the connector is the formatter, which you'll look at in the next section.
连接器的第二个部分是formatter,我们将在下一节 介绍它。
For example, "n3" will tell the formatter to make the argument a number with 3 decimal points.
例如,“n3 ”就是让格式化程序将这个实参转变成一个具有3个小数点的数字。
After creating a Formatter class, you call its format method with format strings and arguments.
创建了formatter类后,用格式化字符串和参数调用其for mat方法。
n — is used for numbers, and denotes to the formatter to turn this Number object into a number.
n —用于整数位,以告知格式化程序将此Number对象转变成一个数字。
This argument can be used with a number, which tells the formatter how many decimal points to use.
这个参数可与一个数字联合使用,以告知格式化程序有多少个小数点要使用。
If a formatter attribute is present, the corresponding formatter method is hitched to the correct scope.
如果有,就将相应的formatter方法应用到正确的范围内。
We also provided a source code formatter and a hierarchy view to support the developer at his daily work.
我们还提供了一个源代码格式化工具以及一个支持开发者日常工作的层级视图。
The other part of the connector displays the connector data to the user, and is called the formatter.
连接器的另一部分称为formatter,用于向用户显示连接器数据。
You have to provide a locale identifier and a style of formatter as parameters to the construction method.
必须以参数的形式向这个构建方法提供一个locale标识符和formatter的一个样式。
To use a field formatter defined in a contributed module, you can check the table that tracks microdata support.
要使用所贡献模块中定义的字段格式器,您可以查看追踪微数据支持的表格。
You need the contents of these text fields and the Formatter class methods to format them, as Listing 2 shows.
您需要这些文本字段的内容和对其进行格式化的Formatter类方法,如 清单 2所示。
For example, "d2" will the formatter to make the number forcibly have 2 digits to the left of the decimal point.
例如“d2 ”就是让格式化程序制作一个小数点左边有两个数位的一个数字。
This argument can be used with a number, which tells the formatter how many digits to use before the decimal point.
这个实参可与一个数字联合使用,以告知格式化程序在小数点前有多少个数位。
Each type of format can take a numerical argument as well, to tell the formatter how to properly apply the pattern.
每一种格式都会用到一个数值实参来告诉格式化程序如何适当地应用模式。
Each type of format can take a numerical argument as well, to tell the formatter how to properly apply the pattern.
每一种格式都会用到一个数值实参来告诉格式化程序如何适当地应用模式。
应用推荐