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

📄 list.html.svn-base

📁 j2me设计的界面包
💻 SVN-BASE
📖 第 1 页 / 共 5 页
字号:
modelChanged</H3>
<PRE>
protected void <B>modelChanged</B>(int&nbsp;status,
                            int&nbsp;index)</PRE>
<DL>
<DD>Callback to allow subclasses to react to a change in the model
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>status</CODE> - the type data change; REMOVED, ADDED or CHANGED<DD><CODE>index</CODE> - item index in a list model</DL>
</DD>
</DL>
<HR>

<A NAME="isScrollableY()"><!-- --></A><H3>
isScrollableY</H3>
<PRE>
public boolean <B>isScrollableY</B>()</PRE>
<DL>
<DD><B>Description copied from class: <CODE><A HREF="../../../com/sun/lwuit/Component.html#isScrollableY()">Component</A></CODE></B></DD>
<DD>Indicates whether the component should/could scroll on the Y axis
<P>
<DD><DL>
<DT><B>Overrides:</B><DD><CODE><A HREF="../../../com/sun/lwuit/Component.html#isScrollableY()">isScrollableY</A></CODE> in class <CODE><A HREF="../../../com/sun/lwuit/Component.html" title="class in com.sun.lwuit">Component</A></CODE></DL>
</DD>
<DD><DL>

<DT><B>Returns:</B><DD>whether the component is scrollable on the X axis</DL>
</DD>
</DL>
<HR>

<A NAME="isScrollableX()"><!-- --></A><H3>
isScrollableX</H3>
<PRE>
public boolean <B>isScrollableX</B>()</PRE>
<DL>
<DD><B>Description copied from class: <CODE><A HREF="../../../com/sun/lwuit/Component.html#isScrollableX()">Component</A></CODE></B></DD>
<DD>Indicates whether the component should/could scroll on the X axis
<P>
<DD><DL>
<DT><B>Overrides:</B><DD><CODE><A HREF="../../../com/sun/lwuit/Component.html#isScrollableX()">isScrollableX</A></CODE> in class <CODE><A HREF="../../../com/sun/lwuit/Component.html" title="class in com.sun.lwuit">Component</A></CODE></DL>
</DD>
<DD><DL>

<DT><B>Returns:</B><DD>whether the component is scrollable on the X axis</DL>
</DD>
</DL>
<HR>

<A NAME="size()"><!-- --></A><H3>
size</H3>
<PRE>
public int <B>size</B>()</PRE>
<DL>
<DD>Returns the number of elements in the list, shorthand for  getModel().getSize()
<P>
<DD><DL>

<DT><B>Returns:</B><DD>the number of elements in the list</DL>
</DD>
</DL>
<HR>

<A NAME="getSelectedIndex()"><!-- --></A><H3>
getSelectedIndex</H3>
<PRE>
public int <B>getSelectedIndex</B>()</PRE>
<DL>
<DD>Returns the current selected offset in the list
<P>
<DD><DL>

<DT><B>Returns:</B><DD>the current selected offset in the list</DL>
</DD>
</DL>
<HR>

<A NAME="setSelectedIndex(int)"><!-- --></A><H3>
setSelectedIndex</H3>
<PRE>
public void <B>setSelectedIndex</B>(int&nbsp;index)</PRE>
<DL>
<DD>Sets the current selected offset in the list
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>index</CODE> - the current selected offset in the list</DL>
</DD>
</DL>
<HR>

<A NAME="getSelectedItem()"><!-- --></A><H3>
getSelectedItem</H3>
<PRE>
public java.lang.Object <B>getSelectedItem</B>()</PRE>
<DL>
<DD>Returns the current selected item in the list
<P>
<DD><DL>

<DT><B>Returns:</B><DD>the current selected item in the list</DL>
</DD>
</DL>
<HR>

<A NAME="setSelectedItem(java.lang.Object)"><!-- --></A><H3>
setSelectedItem</H3>
<PRE>
public void <B>setSelectedItem</B>(java.lang.Object&nbsp;item)</PRE>
<DL>
<DD>Sets the current selected item in the list
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>item</CODE> - the current selected item in the list</DL>
</DD>
</DL>
<HR>

<A NAME="getModel()"><!-- --></A><H3>
getModel</H3>
<PRE>
public <A HREF="../../../com/sun/lwuit/list/ListModel.html" title="interface in com.sun.lwuit.list">ListModel</A> <B>getModel</B>()</PRE>
<DL>
<DD>Returns the model underlying the list
<P>
<DD><DL>

<DT><B>Returns:</B><DD>the model underlying the list</DL>
</DD>
</DL>
<HR>

<A NAME="setModel(com.sun.lwuit.list.ListModel)"><!-- --></A><H3>
setModel</H3>
<PRE>
public void <B>setModel</B>(<A HREF="../../../com/sun/lwuit/list/ListModel.html" title="interface in com.sun.lwuit.list">ListModel</A>&nbsp;model)</PRE>
<DL>
<DD>Replaces/sets the model underlying the list
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>model</CODE> - the new model underlying the list</DL>
</DD>
</DL>
<HR>

<A NAME="isNumericKeyActions()"><!-- --></A><H3>
isNumericKeyActions</H3>
<PRE>
public boolean <B>isNumericKeyActions</B>()</PRE>
<DL>
<DD>Indicate whether pressing the number keys should trigger an action
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="setNumericKeyActions(boolean)"><!-- --></A><H3>
setNumericKeyActions</H3>
<PRE>
public void <B>setNumericKeyActions</B>(boolean&nbsp;numericKeyActions)</PRE>
<DL>
<DD>Indicate whether pressing the number keys should trigger an action
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>numericKeyActions</CODE> - true to trigger an action on number keys</DL>
</DD>
</DL>
<HR>

<A NAME="setListCellRenderer(com.sun.lwuit.list.ListCellRenderer)"><!-- --></A><H3>
setListCellRenderer</H3>
<PRE>
public void <B>setListCellRenderer</B>(<A HREF="../../../com/sun/lwuit/list/ListCellRenderer.html" title="interface in com.sun.lwuit.list">ListCellRenderer</A>&nbsp;renderer)</PRE>
<DL>
<DD>Sets the renderer which is used to draw list elements
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>renderer</CODE> - cell renderer instance</DL>
</DD>
</DL>
<HR>

<A NAME="getRenderer()"><!-- --></A><H3>
getRenderer</H3>
<PRE>
public <A HREF="../../../com/sun/lwuit/list/ListCellRenderer.html" title="interface in com.sun.lwuit.list">ListCellRenderer</A> <B>getRenderer</B>()</PRE>
<DL>
<DD>Returns the renderer which is used to draw list elements
<P>
<DD><DL>

<DT><B>Returns:</B><DD>the renderer which is used to draw list elements</DL>
</DD>
</DL>
<HR>

<A NAME="getOrientation()"><!-- --></A><H3>
getOrientation</H3>
<PRE>
public int <B>getOrientation</B>()</PRE>
<DL>
<DD>Returns the list orientation
<P>
<DD><DL>

<DT><B>Returns:</B><DD>the list orientation HORIZONTAL or VERTICAL<DT><B>See Also:</B><DD><A HREF="../../../com/sun/lwuit/List.html#HORIZONTAL"><CODE>HORIZONTAL</CODE></A>, 
<A HREF="../../../com/sun/lwuit/List.html#VERTICAL"><CODE>VERTICAL</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="refreshTheme()"><!-- --></A><H3>
refreshTheme</H3>
<PRE>
public void <B>refreshTheme</B>()</PRE>
<DL>
<DD><B>Description copied from class: <CODE><A HREF="../../../com/sun/lwuit/Component.html#refreshTheme()">Component</A></CODE></B></DD>
<DD>Makes sure the component is up to date with the current style object
<P>
<DD><DL>
<DT><B>Overrides:</B><DD><CODE><A HREF="../../../com/sun/lwuit/Component.html#refreshTheme()">refreshTheme</A></CODE> in class <CODE><A HREF="../../../com/sun/lwuit/Component.html" title="class in com.sun.lwuit">Component</A></CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="setOrientation(int)"><!-- --></A><H3>
setOrientation</H3>
<PRE>
public void <B>setOrientation</B>(int&nbsp;orientation)</PRE>
<DL>
<DD>Sets the list orientation HORIZONTAL or VERTICAL
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>orientation</CODE> - the list orientation HORIZONTAL or VERTICAL<DT><B>See Also:</B><DD><A HREF="../../../com/sun/lwuit/List.html#HORIZONTAL"><CODE>HORIZONTAL</CODE></A>, 
<A HREF="../../../com/sun/lwuit/List.html#VERTICAL"><CODE>VERTICAL</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="scrollRectToVisible(com.sun.lwuit.geom.Rectangle)"><!-- --></A><H3>
scrollRectToVisible</H3>
<PRE>
public void <B>scrollRectToVisible</B>(<A HREF="../../../com/sun/lwuit/geom/Rectangle.html" title="class in com.sun.lwuit.geom">Rectangle</A>&nbsp;rect)</PRE>
<DL>
<DD>Makes sure the selected index is visible if it is not in the current view rect the list will scroll so it fits within
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>rect</CODE> - the rectangle area to scroll to</DL>
</DD>
</DL>
<HR>

<A NAME="fireClicked()"><!-- --></A><H3>
fireClicked</H3>
<PRE>
protected void <B>fireClicked</B>()</PRE>
<DL>
<DD><B>Description copied from class: <CODE><A HREF="../../../com/sun/lwuit/Component.html#fireClicked()">Component</A></CODE></B></DD>
<DD>This callback is the prefererred way for handling the "fire" key (center softbutton) in order to allow 3 button devices to work properly. When overriding this method you should also override isSelectableInteraction to indicate that a command is placed appropriately on top of the fire key for 3 soft button phones.
<P>
<DD><DL>
<DT><B>Overrides:</B><DD><CODE><A HREF="../../../com/sun/lwuit/Component.html#fireClicked()">fireClicked</A></CODE> in class <CODE><A HREF="../../../com/sun/lwuit/Component.html" title="class in com.sun.lwuit">Component</A></CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="isSelectableInteraction()"><!-- --></A><H3>
isSelectableInteraction</H3>
<PRE>
protected boolean <B>isSelectableInteraction</B>()</PRE>

⌨️ 快捷键说明

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