Version 7 (modified by todor, 17 years ago) (diff) |
---|
Analysis
Overview
Bound controls are used to provide a way for user to input a value. They work only if the value is correct.
Task requirements
- Bound controls provide a way for user input. They differ from standard controls in their behavior.
- As the user inputs data in a bound control it is automatically validated.
- If the data is correct it is put in the undo/redo mechanism.
- If da data is correct the information in the bound control is sent to the bound data-holder(the control model).
- This transition is two-way.
- They allow to attach a model and a verification mechanism.
- Bound controls are composed of:
- a standard control
- an icon. It shows the verification status. It can be either correct (a green tick) or incorrect (a red cross.)
- a label (optionally).
- We need:
- Some base bound control which eases bound controls creation
- Text box
- Drop-down list
- Spinner
- Check-box
Requirements to the task result
The result of this task must be code.
How to demo
Show working controls. Try to input invalid data. Try to input valid data, that must result to expected change.