⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 item.html

📁 是MIDP 的API 查詢文件, 大家可以看一下裡面的index.html, 再用Package 或 Class 名字來查.
💻 HTML
📖 第 1 页 / 共 4 页
字号:
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/microedition/lcdui/Item.html#setPreferredSize(int, int)">setPreferredSize</A></B>(int&nbsp;width,                 int&nbsp;height)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the preferred width and height for this <code>Item</code>.</TD>
</TR>
</TABLE>
&nbsp;<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>
&nbsp;
<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="LAYOUT_DEFAULT"><!-- --></A><H3>
LAYOUT_DEFAULT</H3>
<PRE>
public static final int <B>LAYOUT_DEFAULT</B></PRE>
<DL>
<DD>A layout directive indicating that this <code>Item</code>  should follow the default layout policy of its container. <P>Value <code>0</code> is assigned to <code>LAYOUT_DEFAULT</code>.</P><DD><DL>
<DT><B>Since: </B><DD>MIDP 2.0</DD>
</DL>
</DD>
</DL>
<HR>

<A NAME="LAYOUT_LEFT"><!-- --></A><H3>
LAYOUT_LEFT</H3>
<PRE>
public static final int <B>LAYOUT_LEFT</B></PRE>
<DL>
<DD>A layout directive indicating that this <code>Item</code> should have a left-aligned layout. <P>Value <code>1</code> is assigned to <code>LAYOUT_LEFT</code>.</P><DD><DL>
<DT><B>Since: </B><DD>MIDP 2.0</DD>
</DL>
</DD>
</DL>
<HR>

<A NAME="LAYOUT_RIGHT"><!-- --></A><H3>
LAYOUT_RIGHT</H3>
<PRE>
public static final int <B>LAYOUT_RIGHT</B></PRE>
<DL>
<DD>A layout directive indicating that this <code>Item</code> should have a right-aligned layout. <P>Value <code>2</code> is assigned to <code>LAYOUT_RIGHT</code>.</P><DD><DL>
<DT><B>Since: </B><DD>MIDP 2.0</DD>
</DL>
</DD>
</DL>
<HR>

<A NAME="LAYOUT_CENTER"><!-- --></A><H3>
LAYOUT_CENTER</H3>
<PRE>
public static final int <B>LAYOUT_CENTER</B></PRE>
<DL>
<DD>A layout directive indicating that this <code>Item</code> should have a horizontally centered layout. <P>Value <code>3</code> is assigned to <code>LAYOUT_CENTER</code>.</P><DD><DL>
<DT><B>Since: </B><DD>MIDP 2.0</DD>
</DL>
</DD>
</DL>
<HR>

<A NAME="LAYOUT_TOP"><!-- --></A><H3>
LAYOUT_TOP</H3>
<PRE>
public static final int <B>LAYOUT_TOP</B></PRE>
<DL>
<DD>A layout directive indicating that this <code>Item</code> should have a top-aligned layout. <P>Value <code>0x10</code> is assigned to <code>LAYOUT_TOP</code>.</P><DD><DL>
<DT><B>Since: </B><DD>MIDP 2.0</DD>
</DL>
</DD>
</DL>
<HR>

<A NAME="LAYOUT_BOTTOM"><!-- --></A><H3>
LAYOUT_BOTTOM</H3>
<PRE>
public static final int <B>LAYOUT_BOTTOM</B></PRE>
<DL>
<DD>A layout directive indicating that this <code>Item</code> should have a bottom-aligned layout. <P>Value <code>0x20</code> is assigned to <code>LAYOUT_BOTTOM</code>.</P><DD><DL>
<DT><B>Since: </B><DD>MIDP 2.0</DD>
</DL>
</DD>
</DL>
<HR>

<A NAME="LAYOUT_VCENTER"><!-- --></A><H3>
LAYOUT_VCENTER</H3>
<PRE>
public static final int <B>LAYOUT_VCENTER</B></PRE>
<DL>
<DD>A layout directive indicating that this <code>Item</code> should have a vertically centered layout. <P>Value <code>0x30</code> is assigned to  <code>LAYOUT_VCENTER</code>.</P><DD><DL>
<DT><B>Since: </B><DD>MIDP 2.0</DD>
</DL>
</DD>
</DL>
<HR>

<A NAME="LAYOUT_NEWLINE_BEFORE"><!-- --></A><H3>
LAYOUT_NEWLINE_BEFORE</H3>
<PRE>
public static final int <B>LAYOUT_NEWLINE_BEFORE</B></PRE>
<DL>
<DD>A layout directive indicating that this <code>Item</code>  should be placed at the beginning of a new line or row. <P>Value <code>0x100</code> is assigned to  <code>LAYOUT_NEWLINE_BEFORE</code>.</P><DD><DL>
<DT><B>Since: </B><DD>MIDP 2.0</DD>
</DL>
</DD>
</DL>
<HR>

<A NAME="LAYOUT_NEWLINE_AFTER"><!-- --></A><H3>
LAYOUT_NEWLINE_AFTER</H3>
<PRE>
public static final int <B>LAYOUT_NEWLINE_AFTER</B></PRE>
<DL>
<DD>A layout directive indicating that this <code>Item</code> should the last on its line or row, and that the next <code>Item</code> (if any) in the container should be placed on a new line or row. <P>Value <code>0x200</code> is assigned to  <code>LAYOUT_NEWLINE_AFTER</code>.</P><DD><DL>
<DT><B>Since: </B><DD>MIDP 2.0</DD>
</DL>
</DD>
</DL>
<HR>

<A NAME="LAYOUT_SHRINK"><!-- --></A><H3>
LAYOUT_SHRINK</H3>
<PRE>
public static final int <B>LAYOUT_SHRINK</B></PRE>
<DL>
<DD>A layout directive indicating that this <code>Item's</code> width may be reduced to its minimum width.<P>Value <code>0x400</code> is assigned to <code>LAYOUT_SHRINK</code></P><DD><DL>
<DT><B>Since: </B><DD>MIDP 2.0</DD>
</DL>
</DD>
</DL>
<HR>

<A NAME="LAYOUT_EXPAND"><!-- --></A><H3>
LAYOUT_EXPAND</H3>
<PRE>
public static final int <B>LAYOUT_EXPAND</B></PRE>
<DL>
<DD>A layout directive indicating that this <code>Item's</code>  width may be increased to fill available space.<P>Value <code>0x800</code> is assigned to <code>LAYOUT_EXPAND</code>.</P><DD><DL>
<DT><B>Since: </B><DD>MIDP 2.0</DD>
</DL>
</DD>
</DL>
<HR>

<A NAME="LAYOUT_VSHRINK"><!-- --></A><H3>
LAYOUT_VSHRINK</H3>
<PRE>
public static final int <B>LAYOUT_VSHRINK</B></PRE>
<DL>
<DD>A layout directive indicating that this <code>Item's</code> height may be reduced to its minimum height. <P>Value <code>0x1000</code> is assigned to <code>LAYOUT_VSHRINK</code>.</P><DD><DL>
<DT><B>Since: </B><DD>MIDP 2.0</DD>
</DL>
</DD>
</DL>
<HR>

<A NAME="LAYOUT_VEXPAND"><!-- --></A><H3>
LAYOUT_VEXPAND</H3>
<PRE>
public static final int <B>LAYOUT_VEXPAND</B></PRE>
<DL>
<DD>A layout directive indicating that this <code>Item's</code>  height may be increased to fill available space. <P>Value <code>0x2000</code> is assigned to  <code>LAYOUT_VEXPAND</code>.</P><DD><DL>
<DT><B>Since: </B><DD>MIDP 2.0</DD>
</DL>
</DD>
</DL>
<HR>

<A NAME="LAYOUT_2"><!-- --></A><H3>
LAYOUT_2</H3>
<PRE>
public static final int <B>LAYOUT_2</B></PRE>
<DL>
<DD>A layout directive indicating that new MIDP 2.0 layout rules are in effect for this <code>Item</code>.  If this bit is clear, indicates that MIDP 1.0 layout behavior applies to this <code>Item</code>. <P>Value <code>0x4000</code> is assigned to <code>LAYOUT_2</code>.</P><DD><DL>
<DT><B>Since: </B><DD>MIDP 2.0</DD>
</DL>
</DD>
</DL>
<HR>

<A NAME="PLAIN"><!-- --></A><H3>
PLAIN</H3>
<PRE>
public static final int <B>PLAIN</B></PRE>
<DL>
<DD>An appearance mode value indicating that the <code>Item</code> is to have a normal appearance. <P>Value <code>0</code> is assigned to <code>PLAIN</code>.</P><DD><DL>
<DT><B>Since: </B><DD>MIDP 2.0</DD>
</DL>
</DD>
</DL>
<HR>

<A NAME="HYPERLINK"><!-- --></A><H3>
HYPERLINK</H3>
<PRE>
public static final int <B>HYPERLINK</B></PRE>
<DL>
<DD>An appearance mode value indicating that the <code>Item</code> is to appear as a hyperlink. <P>Value <code>1</code> is assigned to <code>HYPERLINK</code>.</P><DD><DL>
<DT><B>Since: </B><DD>MIDP 2.0</DD>
</DL>
</DD>
</DL>
<HR>

<A NAME="BUTTON"><!-- --></A><H3>
BUTTON</H3>
<PRE>
public static final int <B>BUTTON</B></PRE>
<DL>
<DD>An appearance mode value indicating that the <code>Item</code> is to appear as a button. <P>Value <code>2</code> is assigned to <code>BUTTON</code>.</P><DD><DL>
<DT><B>Since: </B><DD>MIDP 2.0</DD>
</DL>
</DD>
</DL>

<!-- ========= CONSTRUCTOR DETAIL ======== -->


<!-- ============ METHOD DETAIL ========== -->

<A NAME="method_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Method Detail</B></FONT></TD>
</TR>
</TABLE>

<A NAME="setLabel(java.lang.String)"><!-- --></A><H3>
setLabel</H3>
<PRE>
public void <B>setLabel</B>(<A HREF="../../../java/lang/String.html">String</A>&nbsp;label)</PRE>
<DL>
<DD>Sets the label of the <code>Item</code>. If <code>label</code> is <code>null</code>, specifies that this item has no label.  <p>It is illegal to call this method if this <code>Item</code> is contained within  an <code>Alert</code>.</p><DD><DL>
<DT><B>Parameters:</B><DD><CODE>label</CODE> - the label string<DT><B>Throws:</B><DD><CODE><A HREF="../../../java/lang/IllegalStateException.html">IllegalStateException</A></CODE> - if this <code>Item</code> is contained  within an <code>Alert</code><DT><B>See Also: </B><DD><A HREF="../../../javax/microedition/lcdui/Item.html#getLabel()"><CODE>getLabel()</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="getLabel()"><!-- --></A><H3>
getLabel</H3>
<PRE>
public <A HREF="../../../java/lang/String.html">String</A> <B>getLabel</B>()</PRE>
<DL>
<DD>Gets the label of this <code>Item</code> object.<DD><DL>
<DT><B>Returns:</B><DD>the label string<DT><B>See Also: </B><DD><A HREF="../../../javax/microedition/lcdui/Item.html#setLabel(java.lang.String)"><CODE>setLabel(java.lang.String)</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="getLayout()"><!-- --></A><H3>
getLayout</H3>
<PRE>
public int <B>getLayout</B>()</PRE>
<DL>
<DD>Gets the layout directives used for placing the item.<DD><DL>

⌨️ 快捷键说明

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