The LWUIT Form can be used for various types of application views, and its usage is by no means restricted to collecting user input. However, the Form component supports this kind of task very well. All Form elements should appear one after another in the view, and the view automatically becomes scrollable if the content does not fit the screen.
All LWUIT elements can be added on a Form: Button, Calendar, Category bar, Check box, ComboBox, ComponentGroup, DatePicker, Label, Slider, Spinner, Tabs , TextField, TextArea, Table, TimePicker, Tree, UnitPicker.
There can be 1 command at the bottom of the screen. The rest of the Commands are in the Options menu.
The Form must offer a way to confirm the changes made: either through the Options menu or a suitable Command at the bottom of the screen (e.g. "Done" or "Save").
Pressing the Back key within a form cancels all changes done. No confirmation dialog should be displayed when the back key is pressed. By pressing the back key, users should go back to the state where they opened the form.
See Buttons for more information. |
Note: Calendar is LWUIT's own component. In order to be aligned with the platform's look-and-feel, it is recommended to use the DatePicker for selecting dates, see Pickers for more information |
See Category bar for more information.
See Switches - check box for more information. |
See Pickers for more information. |
See Pickers for more information. |
|
See Text fields for more information. |
Used for setting values from a continuous range or for showing progress if there is something in the view the user has to wait for. See Sliders and Progress indication for more information. |
Offers a simple way to select values. Consists of:
If the Spinner is used within a Form, no explicit confirmation is needed, the selected value is automatically saved. See Pickers for more information. |
Tabs provide quick access to distinct areas, modes or view of an application.
Tabs can be freely customized for branding. See Tabs for more information. |
Textfield is used for entering or editing text. It is simple, single line component. See Text fields for more information. |
Used for entering or editing text.
3 different modes:
See Text fields for more information.
See Pickers for more information. |
|
See Pickers for more information. |
|