ewe.ui
Class TextInputParameters

java.lang.Object
  extended byewe.ui.TextInputParameters

public class TextInputParameters
extends Object


Field Summary
 Control 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 Summary
TextInputParameters(Control forWho, boolean matchOnScreen)
           
 
Method Summary
static String fixEditedText(String text)
           
 void setInitialText(String text)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, toString
 

Field Detail

flags

public int flags
This can be a combination of any of the FLAG_XXX values.


initialText

public 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.


enteredText

public String enteredText
This is the text that was entered. It will be null if the input was cancelled.


prompt

public String prompt
If a dialog box must be used by the underlying system, then this prompt will be displayed in its title.


textRows

public int textRows
This is the number of rows of text input.


textColumns

public int textColumns
This is the number of columns of text input.


control

public Control control
This is the Control which will own the input.


controlRect

public Rect controlRect
This can be set to be the Rect of the host control in its parent window. If possible, the system will try to place the input box over this control.


controlFont

public Font controlFont
This will be the font of the control.


passwordCharacter

public char passwordCharacter
If possible, this will be used as the password character. It defaults to '*'


FLAG_CANCELLED

public static final int FLAG_CANCELLED
This is set if the native input text cancelled the input.

See Also:
Constant Field Values

FLAG_PASSWORD

public static final int FLAG_PASSWORD
See Also:
Constant Field Values

FLAG_UPPER_CASE

public static final int FLAG_UPPER_CASE
See Also:
Constant Field Values

FLAG_SENTENCE_CASE

public static final int FLAG_SENTENCE_CASE
See Also:
Constant Field Values

FLAG_NUMBERS_ONLY

public static final int FLAG_NUMBERS_ONLY
See Also:
Constant Field Values

FLAG_AUTO_WRAP

public static final int FLAG_AUTO_WRAP
See Also:
Constant Field Values

FLAG_MULTILINE

public static final int FLAG_MULTILINE
See Also:
Constant Field Values

FLAG_WANT_RETURN

public static final int FLAG_WANT_RETURN
See Also:
Constant Field Values

FLAG_SELECT_ALL

public static final int FLAG_SELECT_ALL
See Also:
Constant Field Values

FLAG_LOWER_CASE

public static final int FLAG_LOWER_CASE
See Also:
Constant Field Values

FLAG_EVENT_ON_EACH_KEY

public static final int FLAG_EVENT_ON_EACH_KEY
If this is true, then a TEXT_CHANGED event is sent for each key press. This only applies to native inputs associated with single line mInput controls.

See Also:
Constant Field Values
Constructor Detail

TextInputParameters

public TextInputParameters(Control forWho,
                           boolean matchOnScreen)
Method Detail

setInitialText

public void setInitialText(String text)

fixEditedText

public static String fixEditedText(String text)