A org.uqbar.arena.widgets.TextBox is an editable control that allows the user to input text information.
Every textbox should bind its property value against a model property:
// Xtend new TextBox(form) => [ value <=> "name" width = 200 ] // Java new TextBox(form) .setWidth(250) .bindValueToProperty("name");
A org.uqbar.arena.widgets.NumericField is a TextBox specially suited for numeric inputs.
It inherits all properties and bindings from TextBox control.
You can configure to use it with or without decimals.
// Xtend - Default is to allow decimal input new NumericField(form) => [ value <=> "number" width = 100 ] // Another example, a numeric field without decimals new NumericField(mainPanel, false).value <=> "age" // Java new NumericField(form) .setWidth(150) .bindValueToProperty("number");
A org.uqbar.arena.widgets.PasswordField is a special textbox suitable for sensitive data, such as passwords. Input does not appear in control.
It inherits all properties and bindings from TextBox control.
// Xtend new PasswordField(mainPanel).value <=> "password" // Java new PasswordField(form) .setWidth(150) .bindValueToProperty("password");