Name
javax.microedition.lcdui.TextBox
Synopsis
This class, which extends the Screen
class, is a
screen that allows the user to enter and edit text. A
TextBox
object has a title, a default string, a
maximum size, and a constraint.
public classTextBox
extends Screen { // public constructors publicTextBox
(String title, String text, int maxSize, int constraints); // public instance methods public voiddelete
(int offset, int length); public intgetCaretPosition
( ); public intgetChars
(char[] data); public intgetConstraints
( ); public intgetMaxSize
( ); public StringgetString
( ); public voidinsert
(char[] data, int offset, int length, int position); public voidinsert
(String src, int position); public voidsetChars
(char[] data, int offset, int length); public voidsetConstraints
(int constraints); public intsetMaxSize
(int maxsize); public voidsetString
(String text); public intsize
( ); }
Get Wireless Java now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.