textfield.html.svn-base
来自「j2me设计的界面包」· SVN-BASE 代码 · 共 1,394 行 · 第 1/5 页
SVN-BASE
1,394 行
</DL>
<HR>
<A NAME="getInputModeOrder()"><!-- --></A><H3>
getInputModeOrder</H3>
<PRE>
public java.lang.String[] <B>getInputModeOrder</B>()</PRE>
<DL>
<DD>Returns the order in which input modes are toggled
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="setInputModeOrder(java.lang.String[])"><!-- --></A><H3>
setInputModeOrder</H3>
<PRE>
public void <B>setInputModeOrder</B>(java.lang.String[] order)</PRE>
<DL>
<DD>Sets the order in which input modes are toggled and allows disabling/hiding an input mode
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>order</CODE> - the order for the input modes in this field</DL>
</DD>
</DL>
<HR>
<A NAME="getDefaultInputModeOrder()"><!-- --></A><H3>
getDefaultInputModeOrder</H3>
<PRE>
public static java.lang.String[] <B>getDefaultInputModeOrder</B>()</PRE>
<DL>
<DD>Returns the order in which input modes are toggled by default
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="setDefaultInputModeOrder(java.lang.String[])"><!-- --></A><H3>
setDefaultInputModeOrder</H3>
<PRE>
public static void <B>setDefaultInputModeOrder</B>(java.lang.String[] order)</PRE>
<DL>
<DD>Sets the order in which input modes are toggled by default and allows disabling/hiding an input mode
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>order</CODE> - the order for the input modes in all future created fields</DL>
</DD>
</DL>
<HR>
<A NAME="getLongClickInputMode()"><!-- --></A><H3>
getLongClickInputMode</H3>
<PRE>
protected java.lang.String <B>getLongClickInputMode</B>()</PRE>
<DL>
<DD>Returns the input mode for the ong click mode
<P>
<DD><DL>
<DT><B>Returns:</B><DD>returns 123 by default</DL>
</DD>
</DL>
<HR>
<A NAME="getCharPerKeyCode(int, int, boolean)"><!-- --></A><H3>
getCharPerKeyCode</H3>
<PRE>
protected char <B>getCharPerKeyCode</B>(int pressCount,
int keyCode,
boolean longClick)</PRE>
<DL>
<DD>Returns the character matching the given key code after the given amount of user presses
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>pressCount</CODE> - number of times this keycode was pressed<DD><CODE>keyCode</CODE> - the actual keycode input by the user<DD><CODE>clickLength</CODE> - length in milliseconds of the press<DD><CODE>longClick</CODE> - does this click constitute a long click
<DT><B>Returns:</B><DD>the char mapping to this key or 0 if no appropriate char was found (navigation, input mode change etc...).</DL>
</DD>
</DL>
<HR>
<A NAME="setCursorPosition(int)"><!-- --></A><H3>
setCursorPosition</H3>
<PRE>
public void <B>setCursorPosition</B>(int pos)</PRE>
<DL>
<DD>Set the position of the cursor
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="getCursorPosition()"><!-- --></A><H3>
getCursorPosition</H3>
<PRE>
public int <B>getCursorPosition</B>()</PRE>
<DL>
<DD>Returns the position of the cursor
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="setText(java.lang.String)"><!-- --></A><H3>
setText</H3>
<PRE>
public void <B>setText</B>(java.lang.String text)</PRE>
<DL>
<DD><B>Description copied from class: <CODE><A HREF="../../../com/sun/lwuit/TextArea.html#setText(java.lang.String)">TextArea</A></CODE></B></DD>
<DD>Sets the text within this text area
<P>
<DD><DL>
<DT><B>Overrides:</B><DD><CODE><A HREF="../../../com/sun/lwuit/TextArea.html#setText(java.lang.String)">setText</A></CODE> in class <CODE><A HREF="../../../com/sun/lwuit/TextArea.html" title="class in com.sun.lwuit">TextArea</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>text</CODE> - new value for the text area</DL>
</DD>
</DL>
<HR>
<A NAME="isClearKey(int)"><!-- --></A><H3>
isClearKey</H3>
<PRE>
protected boolean <B>isClearKey</B>(int keyCode)</PRE>
<DL>
<DD>Returns true if this is the clear key on the device, many devices don't contain a clear key and even in those that contain it this might be an issue
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>keyCode</CODE> - the key code that might be the clear key
<DT><B>Returns:</B><DD>true if this is the clear key.</DL>
</DD>
</DL>
<HR>
<A NAME="isQwertyInput()"><!-- --></A><H3>
isQwertyInput</H3>
<PRE>
public boolean <B>isQwertyInput</B>()</PRE>
<DL>
<DD>True is this is a qwerty device or a device that is currently in qwerty mode.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>currently defaults to false</DL>
</DD>
</DL>
<HR>
<A NAME="setQwertyInput(boolean)"><!-- --></A><H3>
setQwertyInput</H3>
<PRE>
public void <B>setQwertyInput</B>(boolean qwerty)</PRE>
<DL>
<DD>True is this is a qwerty device or a device that is currently in qwerty mode.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="keyReleased(int)"><!-- --></A><H3>
keyReleased</H3>
<PRE>
public void <B>keyReleased</B>(int keyCode)</PRE>
<DL>
<DD><B>Description copied from class: <CODE><A HREF="../../../com/sun/lwuit/Component.html#keyReleased(int)">Component</A></CODE></B></DD>
<DD>If this Component is focused, the key released event will call this method
<P>
<DD><DL>
<DT><B>Overrides:</B><DD><CODE><A HREF="../../../com/sun/lwuit/TextArea.html#keyReleased(int)">keyReleased</A></CODE> in class <CODE><A HREF="../../../com/sun/lwuit/TextArea.html" title="class in com.sun.lwuit">TextArea</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>keyCode</CODE> - the key code value to indicate a physical key.</DL>
</DD>
</DL>
<HR>
<A NAME="getLongClickDuration()"><!-- --></A><H3>
getLongClickDuration</H3>
<PRE>
protected int <B>getLongClickDuration</B>()</PRE>
<DL>
<DD>The amount of time considered as a "long click" causing the long click method to be invoked.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>currently defaults to 800</DL>
</DD>
</DL>
<HR>
<A NAME="getSymbolTable()"><!-- --></A><H3>
getSymbolTable</H3>
<PRE>
public static char[] <B>getSymbolTable</B>()</PRE>
<DL>
<DD>Returns the symbol table for the device
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="setSymbolTable(char[])"><!-- --></A><H3>
setSymbolTable</H3>
<PRE>
public static void <B>setSymbolTable</B>(char[] table)</PRE>
<DL>
<DD>Sets the symbol table to show when the user clicks the symbol table key
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="isCursorPositionCycle()"><!-- --></A><H3>
isCursorPositionCycle</H3>
<PRE>
protected boolean <B>isCursorPositionCycle</B>()</PRE>
<DL>
<DD>Returns true if the cursor should cycle to the begining of the text when the user navigates beyond the edge of the text and visa versa.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>true by default</DL>
</DD>
</DL>
<HR>
<A NAME="isSymbolDialogKey(int)"><!-- --></A><H3>
isSymbolDialogKey</H3>
<PRE>
protected boolean <B>isSymbolDialogKey</B>(int keyCode)</PRE>
<DL>
<DD>Returns true if this keycode is the one mapping to the symbol dialog popup
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>keyCode</CODE> - the keycode to check
<DT><B>Returns:</B><DD>true if this is the star symbol *</DL>
</DD>
</DL>
<HR>
<A NAME="keyPressed(int)"><!-- --></A><H3>
keyPressed</H3>
<PRE>
public void <B>keyPressed</B>(int keyCode)</PRE>
<DL>
<DD><B>Description copied from class: <CODE><A HREF="../../../com/sun/lwuit/Component.html#keyPressed(int)">Component</A></CODE></B></DD>
<DD>If this Component is focused, the key pressed event will call this method
<P>
<DD><DL>
<DT><B>Overrides:</B><DD><CODE><A HREF="../../../com/sun/lwuit/TextArea.html#keyPressed(int)">keyPressed</A></CODE> in class <CODE><A HREF="../../../com/sun/lwuit/TextArea.html" title="class in com.sun.lwuit">TextArea</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>keyCode</CODE> - the key code value to indicate a physical key.</DL>
</DD>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?