numberconverter.html

来自「j2ee帮助文档软件设计/软件工程 文件格式」· HTML 代码 · 共 1,309 行 · 第 1/5 页

HTML
1,309
字号
<DD><p>Set the flag indicating whether <code>getAsString()</code> should include grouping separators if necessary.</p><P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>groupingUsed</CODE> - The new grouping used flag</DL></DD></DL><HR><A NAME="isIntegerOnly()"><!-- --></A><H3>isIntegerOnly</H3><PRE>public boolean <B>isIntegerOnly</B>()</PRE><DL><DD><p>Return <code>true</code> if only the integer portion of the given value should be returned from <code>getAsObject()</code>.  If not modified, the default value is <code>false</code>.</p><P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="setIntegerOnly(boolean)"><!-- --></A><H3>setIntegerOnly</H3><PRE>public void <B>setIntegerOnly</B>(boolean&nbsp;integerOnly)</PRE><DL><DD><p>Set to <code>true</code> if only the integer portion of the given value should be returned from <code>getAsObject()</code>.</p><P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>integerOnly</CODE> - The new integer-only flag</DL></DD></DL><HR><A NAME="getMaxFractionDigits()"><!-- --></A><H3>getMaxFractionDigits</H3><PRE>public int <B>getMaxFractionDigits</B>()</PRE><DL><DD><p>Return the maximum number of digits <code>getAsString()</code> should render in the fraction portion of the result.</p><P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="setMaxFractionDigits(int)"><!-- --></A><H3>setMaxFractionDigits</H3><PRE>public void <B>setMaxFractionDigits</B>(int&nbsp;maxFractionDigits)</PRE><DL><DD><p>Set the maximum number of digits <code>getAsString()</code> should render in the fraction portion of the result.  If not set, the number of digits depends on the value being converted.</p><P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>maxFractionDigits</CODE> - The new limit</DL></DD></DL><HR><A NAME="getMaxIntegerDigits()"><!-- --></A><H3>getMaxIntegerDigits</H3><PRE>public int <B>getMaxIntegerDigits</B>()</PRE><DL><DD><p>Return the maximum number of digits <code>getAsString()</code> should render in the integer portion of the result.</p><P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="setMaxIntegerDigits(int)"><!-- --></A><H3>setMaxIntegerDigits</H3><PRE>public void <B>setMaxIntegerDigits</B>(int&nbsp;maxIntegerDigits)</PRE><DL><DD><p>Set the maximum number of digits <code>getAsString()</code> should render in the integer portion of the result.  If not set, the number of digits depends on the value being converted.</p><P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>maxIntegerDigits</CODE> - The new limit</DL></DD></DL><HR><A NAME="getMinFractionDigits()"><!-- --></A><H3>getMinFractionDigits</H3><PRE>public int <B>getMinFractionDigits</B>()</PRE><DL><DD><p>Return the minimum number of digits <code>getAsString()</code> should render in the fraction portion of the result.</p><P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="setMinFractionDigits(int)"><!-- --></A><H3>setMinFractionDigits</H3><PRE>public void <B>setMinFractionDigits</B>(int&nbsp;minFractionDigits)</PRE><DL><DD><p>Set the minimum number of digits <code>getAsString()</code> should render in the fraction portion of the result.  If not set, the number of digits depends on the value being converted.</p><P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>minFractionDigits</CODE> - The new limit</DL></DD></DL><HR><A NAME="getMinIntegerDigits()"><!-- --></A><H3>getMinIntegerDigits</H3><PRE>public int <B>getMinIntegerDigits</B>()</PRE><DL><DD><p>Return the minimum number of digits <code>getAsString()</code> should render in the integer portion of the result.</p><P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="setMinIntegerDigits(int)"><!-- --></A><H3>setMinIntegerDigits</H3><PRE>public void <B>setMinIntegerDigits</B>(int&nbsp;minIntegerDigits)</PRE><DL><DD><p>Set the minimum number of digits <code>getAsString()</code> should render in the integer portion of the result.  If not set, the number of digits depends on the value being converted.</p><P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>minIntegerDigits</CODE> - The new limit</DL></DD></DL><HR><A NAME="getLocale()"><!-- --></A><H3>getLocale</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/util/Locale.html" title="class or interface in java.util">Locale</A> <B>getLocale</B>()</PRE><DL><DD><p>Return the <code>Locale</code> to be used when parsing numbers. If this value is <code>null</code>, the <code>Locale</code> stored in the <A HREF="../../../javax/faces/component/UIViewRoot.html" title="class in javax.faces.component"><CODE>UIViewRoot</CODE></A> for the current request  will be utilized.</p><P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="setLocale(java.util.Locale)"><!-- --></A><H3>setLocale</H3><PRE>public void <B>setLocale</B>(<A HREF="http://java.sun.com/j2se/1.5/docs/api/java/util/Locale.html" title="class or interface in java.util">Locale</A>&nbsp;locale)</PRE><DL><DD><p>Set the <code>Locale</code> to be used when parsing numbers. If set to <code>null</code>, the <code>Locale</code> stored in the <A HREF="../../../javax/faces/component/UIViewRoot.html" title="class in javax.faces.component"><CODE>UIViewRoot</CODE></A> for the current request  will be utilized.</p><P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>locale</CODE> - The new <code>Locale</code> (or <code>null</code>)</DL></DD></DL><HR><A NAME="getPattern()"><!-- --></A><H3>getPattern</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>getPattern</B>()</PRE><DL><DD><p>Return the format pattern to be used when formatting and parsing numbers.</p><P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="setPattern(java.lang.String)"><!-- --></A><H3>setPattern</H3><PRE>public void <B>setPattern</B>(<A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;pattern)</PRE><DL><DD><p>Set the format pattern to be used when formatting and parsing numbers.  Valid values are those supported by <code>java.text.DecimalFormat</code>. An invalid value will cause a <A HREF="../../../javax/faces/convert/ConverterException.html" title="class in javax.faces.convert"><CODE>ConverterException</CODE></A> when <code>getAsObject()</code> or <code>getAsString()</code> is called.</p><P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>pattern</CODE> - The new format pattern</DL></DD></DL><HR>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?