📄 display.html
字号:
</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/Display.html#COLOR_HIGHLIGHTED_FOREGROUND">COLOR_HIGHLIGHTED_FOREGROUND</A></B></CODE>
<BR>
A color specifier for use with <code>getColor</code>.</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/Display.html#LIST_ELEMENT">LIST_ELEMENT</A></B></CODE>
<BR>
Image type for <code>List</code> element image.</TD>
</TR>
</TABLE>
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<!-- ========== 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> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/microedition/lcdui/Display.html#callSerially(java.lang.Runnable)">callSerially</A></B>(<A HREF="../../../java/lang/Runnable.html">Runnable</A> r)</CODE>
<BR>
Causes the <code>Runnable</code> object <code>r</code> to have its <code>run()</code> method called later, serialized with the event stream, soon after completion of the repaint cycle.</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/Display.html#flashBacklight(int)">flashBacklight</A></B>(int duration)</CODE>
<BR>
Requests a flashing effect for the device's backlight.</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/Display.html#getBestImageHeight(int)">getBestImageHeight</A></B>(int imageType)</CODE>
<BR>
Returns the best image height for a given image type.</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/Display.html#getBestImageWidth(int)">getBestImageWidth</A></B>(int imageType)</CODE>
<BR>
Returns the best image width for a given image type.</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/Display.html#getBorderStyle(boolean)">getBorderStyle</A></B>(boolean highlighted)</CODE>
<BR>
Returns the stroke style used for border drawing depending on the state of the component (highlighted/non-highlighted).</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/Display.html#getColor(int)">getColor</A></B>(int colorSpecifier)</CODE>
<BR>
Returns one of the colors from the high level user interface color scheme, in the form <code>0x00RRGGBB</code> based on the <code>colorSpecifier</code> passed in.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../javax/microedition/lcdui/Displayable.html">Displayable</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/microedition/lcdui/Display.html#getCurrent()">getCurrent</A></B>()</CODE>
<BR>
Gets the current <code>Displayable</code> object for this <code>MIDlet</code>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static <A HREF="../../../javax/microedition/lcdui/Display.html">Display</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/microedition/lcdui/Display.html#getDisplay(javax.microedition.midlet.MIDlet)">getDisplay</A></B>(<A HREF="../../../javax/microedition/midlet/MIDlet.html">MIDlet</A> m)</CODE>
<BR>
Gets the <code>Display</code> object that is unique to this <code>MIDlet</code>.</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/Display.html#isColor()">isColor</A></B>()</CODE>
<BR>
Gets information about color support of the device.</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/Display.html#numAlphaLevels()">numAlphaLevels</A></B>()</CODE>
<BR>
Gets the number of alpha transparency levels supported by this implementation.</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/Display.html#numColors()">numColors</A></B>()</CODE>
<BR>
Gets the number of colors (if <code>isColor()</code> is <code>true</code>) or graylevels (if <code>isColor()</code> is <code>false</code>) that can be represented on the device.</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/Display.html#setCurrent(javax.microedition.lcdui.Alert, javax.microedition.lcdui.Displayable)">setCurrent</A></B>(<A HREF="../../../javax/microedition/lcdui/Alert.html">Alert</A> alert, <A HREF="../../../javax/microedition/lcdui/Displayable.html">Displayable</A> nextDisplayable)</CODE>
<BR>
Requests that this <code>Alert</code> be made current, and that <code>nextDisplayable</code> be made current after the <code>Alert</code> is dismissed.</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/Display.html#setCurrent(javax.microedition.lcdui.Displayable)">setCurrent</A></B>(<A HREF="../../../javax/microedition/lcdui/Displayable.html">Displayable</A> nextDisplayable)</CODE>
<BR>
Requests that a different <code>Displayable</code> object be made visible on the display.</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/Display.html#setCurrentItem(javax.microedition.lcdui.Item)">setCurrentItem</A></B>(<A HREF="../../../javax/microedition/lcdui/Item.html">Item</A> item)</CODE>
<BR>
Requests that the <code>Displayable</code> that contains this <code>Item</code> be made current, scrolls the <code>Displayable</code> so that this <code>Item</code> is visible, and possibly assigns the focus to this <code>Item</code>.</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/Display.html#vibrate(int)">vibrate</A></B>(int duration)</CODE>
<BR>
Requests operation of the device's vibrator.</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.<A HREF="../../../java/lang/Object.html">Object</A></B></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="../../../java/lang/Object.html#equals(java.lang.Object)">equals</A>, <A HREF="../../../java/lang/Object.html#getClass()">getClass</A>, <A HREF="../../../java/lang/Object.html#hashCode()">hashCode</A>, <A HREF="../../../java/lang/Object.html#notify()">notify</A>, <A HREF="../../../java/lang/Object.html#notifyAll()">notifyAll</A>, <A HREF="../../../java/lang/Object.html#toString()">toString</A>, <A HREF="../../../java/lang/Object.html#wait()">wait</A>, <A HREF="../../../java/lang/Object.html#wait(long)">wait</A>, <A HREF="../../../java/lang/Object.html#wait(long, int)">wait</A></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="LIST_ELEMENT"><!-- --></A><H3>
LIST_ELEMENT</H3>
<PRE>
public static final int <B>LIST_ELEMENT</B></PRE>
<DL>
<DD>Image type for <code>List</code> element image. <P>The value of <code>LIST_ELEMENT</code> is <code>1</code>.</P><DD><DL>
<DT><B>See Also: </B><DD><A HREF="../../../javax/microedition/lcdui/Display.html#getBestImageWidth(int)"><CODE>getBestImageWidth(int imageType)</CODE></A>,
<A HREF="../../../javax/microedition/lcdui/Display.html#getBestImageHeight(int)"><CODE>getBestImageHeight(int imageType)</CODE></A><DT><B>Since: </B><DD>MIDP 2.0</DD>
</DL>
</DD>
</DL>
<HR>
<A NAME="CHOICE_GROUP_ELEMENT"><!-- --></A><H3>
CHOICE_GROUP_ELEMENT</H3>
<PRE>
public static final int <B>CHOICE_GROUP_ELEMENT</B></PRE>
<DL>
<DD>Image type for <code>ChoiceGroup</code> element image. <P>The value of <code>CHOICE_GROUP_ELEMENT</code> is <code>2</code>.</P><DD><DL>
<DT><B>See Also: </B><DD><A HREF="../../../javax/microedition/lcdui/Display.html#getBestImageWidth(int)"><CODE>getBestImageWidth(int imageType)</CODE></A>,
<A HREF="../../../javax/microedition/lcdui/Display.html#getBestImageHeight(int)"><CODE>getBestImageHeight(int imageType)</CODE></A><DT><B>Since: </B><DD>MIDP 2.0</DD>
</DL>
</DD>
</DL>
<HR>
<A NAME="ALERT"><!-- --></A><H3>
ALERT</H3>
<PRE>
public static final int <B>ALERT</B></PRE>
<DL>
<DD>Image type for <code>Alert</code> image. <P>The value of <code>ALERT</code> is <code>3</code>.</P><DD><DL>
<DT><B>See Also: </B><DD><A HREF="../../../javax/microedition/lcdui/Display.html#getBestImageWidth(int)"><CODE>getBestImageWidth(int imageType)</CODE></A>,
<A HREF="../../../javax/microedition/lcdui/Display.html#getBestImageHeight(int)"><CODE>getBestImageHeight(int imageType)</CODE></A><DT><B>Since: </B><DD>MIDP 2.0</DD>
</DL>
</DD>
</DL>
<HR>
<A NAME="COLOR_BACKGROUND"><!-- --></A><H3>
COLOR_BACKGROUND</H3>
<PRE>
public static final int <B>COLOR_BACKGROUND</B></PRE>
<DL>
<DD>A color specifier for use with <code>getColor</code>. <code>COLOR_BACKGROUND</code> specifies the background color of the screen. The background color will always contrast with the foreground color. <p> <code>COLOR_BACKGROUND</code> has the value <code>0</code>.<DD><DL>
<DT><B>See Also: </B><DD><A HREF="../../../javax/microedition/lcdui/Display.html#getColor(int)"><CODE>getColor(int)</CODE></A><DT><B>Since: </B><DD>MIDP 2.0</DD>
</DL>
</DD>
</DL>
<HR>
<A NAME="COLOR_FOREGROUND"><!-- --></A><H3>
COLOR_FOREGROUND</H3>
<PRE>
public static final int <B>COLOR_FOREGROUND</B></PRE>
<DL>
<DD>A color specifier for use with <code>getColor</code>. <code>COLOR_FOREGROUND</code> specifies the foreground color, for text characters and simple graphics on the screen. Static text or user-editable text should be drawn with the foreground color. The foreground color will always constrast with background color. <p> <code>COLOR_FOREGROUND</code> has the value <code>1</code>.<DD><DL>
<DT><B>See Also: </B><DD><A HREF="../../../javax/microedition/lcdui/Display.html#getColor(int)"><CODE>getColor(int)</CODE></A><DT><B>Since: </B><DD>MIDP 2.0</DD>
</DL>
</DD>
</DL>
<HR>
<A NAME="COLOR_HIGHLIGHTED_BACKGROUND"><!-- --></A><H3>
COLOR_HIGHLIGHTED_BACKGROUND</H3>
<PRE>
public static final int <B>COLOR_HIGHLIGHTED_BACKGROUND</B></PRE>
<DL>
<DD>A color specifier for use with <code>getColor</code>. <code>COLOR_HIGHLIGHTED_BACKGROUND</code> identifies the color for the focus, or focus highlight, when it is drawn as a filled in rectangle. The highlighted background will always constrast with the highlighted foreground. <p> <code>COLOR_HIGHLIGHTED_BACKGROUND</code> has the value <code>2</code>.<DD><DL>
<DT><B>See Also: </B><DD><A HREF="../../../javax/microedition/lcdui/Display.html#getColor(int)"><CODE>getColor(int)</CODE></A><DT><B>Since: </B><DD>MIDP 2.0</DD>
</DL>
</DD>
</DL>
<HR>
<A NAME="COLOR_HIGHLIGHTED_FOREGROUND"><!-- --></A><H3>
COLOR_HIGHLIGHTED_FOREGROUND</H3>
<PRE>
public static final int <B>COLOR_HIGHLIGHTED_FOREGROUND</B></PRE>
<DL>
<DD>A color specifier for use with <code>getColor</code>. <code>COLOR_HIGHLIGHTED_FOREGROUND</code> identifies the color for text characters and simple graphics when they are highlighted. Highlighted foreground is the color to be used to draw the highlighted text and graphics against the highlighted background. The highlighted foreground will always constrast with the highlighted background. <p> <code>COLOR_HIGHLIGHTED_FOREGROUND</code> has the value <code>3</code>.<DD><DL>
<DT><B>See Also: </B><DD><A HREF="../../../javax/microedition/lcdui/Display.html#getColor(int)"><CODE>getColor(int)</CODE></A><DT><B>Since: </B><DD>MIDP 2.0</DD>
</DL>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -