|
RiTa index |
|||||||||||||||||||||||||||||||||||||
| Name | RiTextField | ||||||||||||||||||||||||||||||||||||
| Description | A simple text widget to handle user keyboard input
To capture the input from a RiTextField, you need to
add the
// called when 'enter' is typed in the text-field
void onRiTaEvent(RiTaEvent re)
{
String input = (String)re.getData();
// do something with the text that was entered
System.out.println("Text entered: "+input);
...
}
Note: if you wish to change the key that triggers when text is captured, you can call textField.resetEnterCode(int codeForKeyToUseAsEnter); |
||||||||||||||||||||||||||||||||||||
| Constructors | RiTextField(pApplet); RiTextField(pApplet, x, y); RiTextField(pApplet, x, y, width); RiTextField(pApplet, x, y, width, height); RiTextField(pApplet, x, y, width, height, fontSize); RiTextField(pApplet, x, y, width, height, fontSize, initialText); |
||||||||||||||||||||||||||||||||||||
| Methods |
|
||||||||||||||||||||||||||||||||||||
| Usage | Web & Application |