Changes between Version 6 and Version 7 of mvc


Ignore:
Timestamp:
06/13/22 10:45:07 (3 years ago)
Author:
wouter
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • mvc

    v6 v7  
    3434
    3535=== ListModel
    36 ListModel contains a list of Models and thus is a compound model. 
     36ListModel contains a list of Models and thus is a compound model.  Elements can be added and removed to the ListModel using add and remove. Individual submodels can be fetched with get(). Properties can be checked with getSize() and contains().
    3737
    3838=== MapModel
     
    4242DefaultMapModel is the basic implementation of MapModel. It is implemented using a LinkedHashMap, which helps keeping a fixed order in the elements. This fixed order is important to ensure the display of the elements in the GUI remains fixed. It also allows setting a minimum number of elements in the map
    4343
    44 MapFromKeys is a special implementation of MapModel that generates a Map from a ListModel. The ListModel contains the Keys of the Map. MapFromKeys ensures that all keys always have a value. If needed, the create() function is called to automatically generate a new value for a key. When  a key is removed and then later re-added, MapFromKeys may remember the old value, if isRetainValues is set.
     44MapFromKeys is a special implementation of MapModel that generates a Map from a ListModel. The ListModel contains the Keys of the Map. Note that ListModel can change at any moment, and MapFromKeys will always adapt immediately to meet the change. MapFromKeys ensures that all keys always have a value. If needed, the create() function is called to automatically generate a new value for a key. When  a key is removed and then later re-added, MapFromKeys may remember the old value, if isRetainValues is set.
    4545
    4646=== TypedModel and RealType