public class NativeInputParameters extends Object
Modifier and Type | Field and Description |
---|---|
Object |
control
This is the Control which will own the input.
|
Font |
controlFont
This will be the font of the control.
|
Rect |
controlRect
This can be set to be the Rect of the host control in its parent window.
|
String |
enteredText
This is the text that was entered.
|
static int |
FLAG_AUTO_WRAP |
static int |
FLAG_CANCELLED
This is set if the native input text cancelled the input.
|
static int |
FLAG_EVENT_ON_EACH_KEY
If this is true, then a TEXT_CHANGED event is sent for each key press.
|
static int |
FLAG_LOWER_CASE |
static int |
FLAG_MULTILINE |
static int |
FLAG_NUMBERS_ONLY |
static int |
FLAG_PASSWORD |
static int |
FLAG_SELECT_ALL |
static int |
FLAG_SENTENCE_CASE |
static int |
FLAG_UPPER_CASE |
static int |
FLAG_WANT_RETURN |
int |
flags
This can be a combination of any of the FLAG_XXX values.
|
String |
initialText
This is the initial text to be entered - use setInitialText() to set it - this
will convert LF characters to CR/LF characters if necessary.
|
char |
passwordCharacter
If possible, this will be used as the password character.
|
String |
prompt
If a dialog box must be used by the underlying system, then this prompt will be
displayed in its title.
|
int |
textColumns
This is the number of columns of text input.
|
int |
textRows
This is the number of rows of text input.
|
Constructor and Description |
---|
NativeInputParameters() |
Modifier and Type | Method and Description |
---|---|
protected void |
finalize()
This method (when overriden), will be called when the VM determines that the Object can be
garbage collected.
|
static String |
fixEditedText(String text) |
void |
repaint(Rect area) |
void |
setInitialText(String text) |
public int flags
public String initialText
public String enteredText
public String prompt
public int textRows
public int textColumns
public Object control
public Rect controlRect
public Font controlFont
public char passwordCharacter
public static final int FLAG_CANCELLED
public static final int FLAG_PASSWORD
public static final int FLAG_UPPER_CASE
public static final int FLAG_SENTENCE_CASE
public static final int FLAG_NUMBERS_ONLY
public static final int FLAG_AUTO_WRAP
public static final int FLAG_MULTILINE
public static final int FLAG_WANT_RETURN
public static final int FLAG_SELECT_ALL
public static final int FLAG_LOWER_CASE
public static final int FLAG_EVENT_ON_EACH_KEY
public void setInitialText(String text)
public void repaint(Rect area)
protected void finalize()
Object
The finalize() method of a Class is only called if it overrides finalize() - the finalize() method java.lang.Object is never called by the Eve VM.