Changes between Version 27 and Version 28 of mvc
- Timestamp:
- 06/14/22 10:33:55 (2 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
mvc
v27 v28 103 103 Then we add a SliderPanel and a NumberPanel, both showing the same number. This allows the user to change the number either by dragging the slider or by typing the exact number. 104 104 105 The [source:/mvc/src/test/java/tudelft/utilities/mvc/panels/MultiplierExample.java Multiplier Example] shows how to create a compound model and also how to create a model with bidirectional dependencies between the values in the model. The point is that with bidirectional dependencies you need to detect which value the user is changing and then stick with the value he set, and adjust the other ones (while ignoring the change events from the other ones). 106 105 107 There are many more examples in [source:/mvc/src/test/java/tudelft/utilities/mvc/panels].