Slide 3.16: Lists (cont.) Slide 3.18: Lists (cont.) Home |
Gauge gauge = new Gauge( "Progress Bar", false, 20, 9 );
Gauge
object with the following parameters:
label
— the Gauge
's label,
interactive
— interactive or non-interactive mode.
In interactive mode, the user is allowed to modify the value.
maxValue
— The maximum value must be greater than zero.
initialValue
— The initial value must be within the range zero to maxValue
, inclusive.
Gauge
object that has a range of values from zero to 99, running on a device that displays the Gauge
's approximate value using a set of one to ten bars.
The device might show one bar for values zero through nine, two bars for values ten through 19, three bars for values 20 through 29, and so forth.
TextField textfield = new TextField( "TextField Label", "abc", 50, 0 );
Form
.
TextField
object with the paramenters:
label
— the item label.
text
— the initial contents, or null if the TextField
is to be empty.
maxSize
— the maximum capacity in characters.
constraints
— Constant 0 allows users to enter any text.
Other values can be found from the Field Summary of input constraints.