Control : TextEdit
Page Status: Beta
The TextEdit control allows an end user to enter or edit text within a form. It can be configured as a single or multiple line control.
Contents |
Overview
Use the TextEdit control to allow users to input and change text. The TextEdit control does not require interfaces and adapters.
Capabilities
You can use the TextEdit control to:
- Change text in a text field (Example 1). If you bind a TextEdit control to a text field, the text in the text field is changed when you change the text in the TextEdit control and press Enter.
- Obscure the entered text by selecting the Password property (Behavior tab) (Example 1). When you select the Password property, asterisks replace the characters typed in the TextEdit control.
- Grab focus (Example 1). If you set the Select Trigger property (Behavior tab), the TextEdit control grabs focus when the selected field is changed.
- Change text in multiple lines (Example 1). If you select the Multiline property (Style tab), you can display and edit multiple lines in the TextEdit control.
Limitations
Requirements
Examples
The following example is intended to be used with sample code that you can import into your Bungee Builder workspace from the Start Page. We encourage you to import the examples into the Builder as you review the following.
Example 1: Several Uses of TextEdit (Ex1_Simple)
This example shows several ways to use the TextEdit control, including:
- Updating a text field: In the first line of the example, the TextEdit control is bound to string simpleText. When you you type text and press Enter, the field is updated and the Label control displays the contents of the field.
- Obscuring the typed text: The second line shows how to set a TextEdit control to obscure the characters being typed, as when entering a password—the Password property (Behavior tab) is selected. When text is typed, the displayed characters are replaced by asterisks. The Label control beneath the TextEdit control displays the actual characters being typed.
- Grabbing focus: The third line uses the second line. When you type text and press Enter in the second line, focus is automatically given to the text in the third line. This is achieved by setting the Select Trigger property (Behavior tab) to the passwordText field.
- Displaying multiple lines: The last line shows how to enable multi-line editing. The Style.Multiline property is selected (set to true).
Click for larger image Run Now
Reference
Supported Types (Control Interface)
| Type | Summary |
|---|---|
| Primitives | Currently, the supported primitive types are string and numeric. The numeric types include float, long, double, char, signed, and unsigned. |
Associated Properties
Specialized Properties
- Absorb Input Events
- Default On Empty
- Default Text
- Default Value
- Editable
- First Focus
- HTML
- Key Delay
- Multiline
- Password
- Select Trigger
Unique Properties
- None



