Scout/Concepts/ValueField
Scout |
Wiki Home |
Website |
Download • Git |
Community |
Forums • Blog • Twitter • G+ |
Bugzilla |
Bugzilla |
Specific type of Fields that contains a value. Depending on the type of value, one of the child class needs to be considered.
Contents
Description
Value fields allow the user to enter some values in the form. Scout provides different implementation of the value fields, in order to add properties and event specific to the type (MinValue on IntegerField, or InputMasked for StringField)
Type of Value Fields
- String Field
- Integer Field
- Long Field
- Double Field
- Date Field
- Time Field
- Boolean Field also called Checkbox Field
- Smart Field <T>
- Proposal Field <T> (<T> is not the type of the value field. Type is String)
- List Box <T[]>
- Tree Box <T[]>
- Radio Button Group <T>
Properties
Defined with getConfiguredXxxxxx() methods.
Events
Defined with execXxxxxx() methods.
See also the Field page for the events that all fields have in common.
Input validation
- ParseValue: event to define how the text (String) typed in the UI is converted in a value.
- ValidateValue: event to add business logic to define if the value is valid.
- FormatValue: event to define how the value is displayed in the field (as String). This function need to be "compatible" with ParseValue
- ChangedValue: At this point the validValue is accessible with getValue().
Other events
- IsSaveNeeded
- MarkSaved
- IsEmpty