📄 gauge.html
字号:
<CODE>static int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/microedition/lcdui/Gauge.html#INCREMENTAL_UPDATING">INCREMENTAL_UPDATING</A></B></CODE><BR> The value representing the incremental-updating state of a non-interactive <code>Gauge</code> with indefinite range.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/microedition/lcdui/Gauge.html#INDEFINITE">INDEFINITE</A></B></CODE><BR> A special value used for the maximum value in order to indicate that the <code>Gauge</code> has indefinite range.</TD></TR></TABLE> <A NAME="fields_inherited_from_class_javax.microedition.lcdui.Item"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Fields inherited from class javax.microedition.lcdui.<A HREF="../../../javax/microedition/lcdui/Item.html">Item</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../javax/microedition/lcdui/Item.html#BUTTON">BUTTON</A>, <A HREF="../../../javax/microedition/lcdui/Item.html#HYPERLINK">HYPERLINK</A>, <A HREF="../../../javax/microedition/lcdui/Item.html#LAYOUT_2">LAYOUT_2</A>, <A HREF="../../../javax/microedition/lcdui/Item.html#LAYOUT_BOTTOM">LAYOUT_BOTTOM</A>, <A HREF="../../../javax/microedition/lcdui/Item.html#LAYOUT_CENTER">LAYOUT_CENTER</A>, <A HREF="../../../javax/microedition/lcdui/Item.html#LAYOUT_DEFAULT">LAYOUT_DEFAULT</A>, <A HREF="../../../javax/microedition/lcdui/Item.html#LAYOUT_EXPAND">LAYOUT_EXPAND</A>, <A HREF="../../../javax/microedition/lcdui/Item.html#LAYOUT_LEFT">LAYOUT_LEFT</A>, <A HREF="../../../javax/microedition/lcdui/Item.html#LAYOUT_NEWLINE_AFTER">LAYOUT_NEWLINE_AFTER</A>, <A HREF="../../../javax/microedition/lcdui/Item.html#LAYOUT_NEWLINE_BEFORE">LAYOUT_NEWLINE_BEFORE</A>, <A HREF="../../../javax/microedition/lcdui/Item.html#LAYOUT_RIGHT">LAYOUT_RIGHT</A>, <A HREF="../../../javax/microedition/lcdui/Item.html#LAYOUT_SHRINK">LAYOUT_SHRINK</A>, <A HREF="../../../javax/microedition/lcdui/Item.html#LAYOUT_TOP">LAYOUT_TOP</A>, <A HREF="../../../javax/microedition/lcdui/Item.html#LAYOUT_VCENTER">LAYOUT_VCENTER</A>, <A HREF="../../../javax/microedition/lcdui/Item.html#LAYOUT_VEXPAND">LAYOUT_VEXPAND</A>, <A HREF="../../../javax/microedition/lcdui/Item.html#LAYOUT_VSHRINK">LAYOUT_VSHRINK</A>, <A HREF="../../../javax/microedition/lcdui/Item.html#PLAIN">PLAIN</A></CODE></TD></TR></TABLE> <!-- ======== CONSTRUCTOR SUMMARY ======== --><A NAME="constructor_summary"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Constructor Summary</B></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../javax/microedition/lcdui/Gauge.html#Gauge(java.lang.String, boolean, int, int)">Gauge</A></B>(String label, boolean interactive, int maxValue, int initialValue)</CODE><BR> Creates a new <code>Gauge</code> object with the given label, in interactive or non-interactive mode, with the given maximum and initial values.</TD></TR></TABLE> <!-- ========== METHOD SUMMARY =========== --><A NAME="method_summary"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Method Summary</B></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/microedition/lcdui/Gauge.html#getMaxValue()">getMaxValue</A></B>()</CODE><BR> Gets the maximum value of this <code>Gauge</code> object.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/microedition/lcdui/Gauge.html#getValue()">getValue</A></B>()</CODE><BR> Gets the current value of this <code>Gauge</code> object.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/microedition/lcdui/Gauge.html#isInteractive()">isInteractive</A></B>()</CODE><BR> Tells whether the user is allowed to change the value of the <code>Gauge</code>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/microedition/lcdui/Gauge.html#setMaxValue(int)">setMaxValue</A></B>(int maxValue)</CODE><BR> Sets the maximum value of this <code>Gauge</code> object.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/microedition/lcdui/Gauge.html#setValue(int)">setValue</A></B>(int value)</CODE><BR> Sets the current value of this <code>Gauge</code> object.</TD></TR></TABLE> <A NAME="methods_inherited_from_class_javax.microedition.lcdui.Item"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class javax.microedition.lcdui.<A HREF="../../../javax/microedition/lcdui/Item.html">Item</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../javax/microedition/lcdui/Item.html#addCommand(javax.microedition.lcdui.Command)">addCommand</A>, <A HREF="../../../javax/microedition/lcdui/Item.html#getLabel()">getLabel</A>, <A HREF="../../../javax/microedition/lcdui/Item.html#getLayout()">getLayout</A>, <A HREF="../../../javax/microedition/lcdui/Item.html#getMinimumHeight()">getMinimumHeight</A>, <A HREF="../../../javax/microedition/lcdui/Item.html#getMinimumWidth()">getMinimumWidth</A>, <A HREF="../../../javax/microedition/lcdui/Item.html#getPreferredHeight()">getPreferredHeight</A>, <A HREF="../../../javax/microedition/lcdui/Item.html#getPreferredWidth()">getPreferredWidth</A>, <A HREF="../../../javax/microedition/lcdui/Item.html#notifyStateChanged()">notifyStateChanged</A>, <A HREF="../../../javax/microedition/lcdui/Item.html#removeCommand(javax.microedition.lcdui.Command)">removeCommand</A>, <A HREF="../../../javax/microedition/lcdui/Item.html#setDefaultCommand(javax.microedition.lcdui.Command)">setDefaultCommand</A>, <A HREF="../../../javax/microedition/lcdui/Item.html#setItemCommandListener(javax.microedition.lcdui.ItemCommandListener)">setItemCommandListener</A>, <A HREF="../../../javax/microedition/lcdui/Item.html#setLabel(java.lang.String)">setLabel</A>, <A HREF="../../../javax/microedition/lcdui/Item.html#setLayout(int)">setLayout</A>, <A HREF="../../../javax/microedition/lcdui/Item.html#setPreferredSize(int, int)">setPreferredSize</A></CODE></TD></TR></TABLE> <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class java.lang.Object</B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE>equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD></TR></TABLE> <P><!-- ============ FIELD DETAIL =========== --><A NAME="field_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Field Detail</B></FONT></TD></TR></TABLE><A NAME="INDEFINITE"><!-- --></A><H3>INDEFINITE</H3><PRE>public static final int <B>INDEFINITE</B></PRE><DL><DD>A special value used for the maximum value in order to indicate that the <code>Gauge</code> has indefinite range. This value may be used as the <code>maxValue</code> parameter to the constructor, the parameter passed to <code>setMaxValue()</code>, and as the return value of <code>getMaxValue()</code>. <P> The value of <code>INDEFINITE</code> is <code>-1</code>.</P><DD><DL><DT><B>Since: </B><DD>MIDP 2.0</DD></DL></DD></DL><HR><A NAME="CONTINUOUS_IDLE"><!-- --></A><H3>CONTINUOUS_IDLE</H3><PRE>public static final int <B>CONTINUOUS_IDLE</B></PRE><DL><DD>The value representing the continuous-idle state of a non-interactive <code>Gauge</code> with indefinite range. In the continuous-idle state, the gauge shows a graphic indicating that no work is in progress. <p>This value has special meaning only for non-interactive gauges with indefinite range. It is treated as an ordinary value for interactive gauges and for non-interactive gauges with definite range.</p> <p>The value of <code>CONTINUOUS_IDLE</code> is <code>0</code>.</p><DD><DL><DT><B>Since: </B><DD>MIDP 2.0</DD></DL></DD></DL><HR><A NAME="INCREMENTAL_IDLE"><!-- --></A><H3>INCREMENTAL_IDLE</H3><PRE>public static final int <B>INCREMENTAL_IDLE</B></PRE><DL><DD>The value representing the incremental-idle state of a non-interactive <code>Gauge</code> with indefinite range. In the incremental-idle state, the gauge shows a graphic indicating that no work is in progress. <p>This value has special meaning only for non-interactive gauges with indefinite range. It is treated as an ordinary value for interactive gauges and for non-interactive gauges with definite range.</p> <p>The value of <code>INCREMENTAL_IDLE</code> is <code>1</code>.</p><DD><DL><DT><B>Since: </B><DD>MIDP 2.0</DD></DL></DD></DL><HR><A NAME="CONTINUOUS_RUNNING"><!-- --></A><H3>CONTINUOUS_RUNNING</H3><PRE>public static final int <B>CONTINUOUS_RUNNING</B></PRE><DL><DD>The value representing the continuous-running state of a non-interactive <code>Gauge</code> with indefinite range. In the continuous-running state, the gauge shows a continually-updating animation sequence that indicates that work is in progress. Once the application sets a gauge into the continuous-running state, the animation should proceed without further requests from the application. <p>This value has special meaning only for non-interactive gauges with indefinite range. It is treated as an ordinary value for interactive gauges and for non-interactive gauges with definite range.</p> <p>The value of <code>CONTINUOUS_RUNNING</code> is <code>2</code>.</p><DD><DL><DT><B>Since: </B><DD>MIDP 2.0</DD></DL></DD></DL><HR><A NAME="INCREMENTAL_UPDATING"><!-- --></A><H3>INCREMENTAL_UPDATING</H3><PRE>public static final int <B>INCREMENTAL_UPDATING</B></PRE><DL><DD>The value representing the incremental-updating state of a non-interactive <code>Gauge</code> with indefinite range. In the incremental-updating state, the gauge shows a graphic indicating that work is in progress, typically one frame of an animation sequence. The graphic should be updated to the next frame in the sequence only when the application calls <code>setValue(INCREMENTAL_UPDATING)</code>. <p>This value has special meaning only for non-interactive gauges with indefinite range. It is treated as an ordinary value for interactive gauges and for non-interactive gauges with definite range.</p> <p> The value of <code>INCREMENTAL_UPDATING</code> is <code>3</code>.</p><DD><DL><DT><B>Since: </B><DD>MIDP 2.0</DD></DL></DD></DL>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -