Changes between Version 27 and Version 28 of mvc


Ignore:
Timestamp:
06/14/22 10:33:55 (2 years ago)
Author:
wouter
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • mvc

    v27 v28  
    103103Then 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.
    104104
     105The [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
    105107There are many more examples in [source:/mvc/src/test/java/tudelft/utilities/mvc/panels].