Changes between Version 43 and Version 44 of mvc


Ignore:
Timestamp:
01/15/24 15:10:06 (11 months ago)
Author:
wouter
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • mvc

    v43 v44  
    1717This toolbox is to help users develop an MVC based GUI. The standard java lacks some functionality: while Java provides a ListModel and a TableModel, it lacks other models such as a StringModel. Also java lacks the tools to couple a model that contains a list of values to the keys of a hashmap-model and it does not support history. We need these functionalities when creating compound models.
    1818
    19 == The Model
    20 The toolbox has a hierarchy of Models. This section describes the various standard models.
    2119
    2220=== ModelTime
    23 We start with ModelTime. This is NOT the MVC model but a class needed by the MVC model, therefore we explain it first.
     21Before we can explain the MVC model, we need to explain a separate class {{{ModelTime}}}. This is a time keeping model, NOT an MVC model but a class needed by the MVC model, therefore we explain it first.
     22
    2423The ModelTime is a listenable object containing the current time of the MVC models. All MVC models store a history, and at all times deliver the value stored at (or after) the current time.
    2524
     
    3029
    3130
     31== The MVC Model
     32The toolbox has a hierarchy of MVC Models. This section describes the various standard models.
     33
     34
    3235=== Model and Compound Models.
    33 At the root is the Model interface. A model basically is an object, which implicitly contains some values that can be adjusted. The interface only specifies that the object broadcasts Event objects whenever something changes in the model.
     36At the root is the MVC {{{Model}}} interface. A model basically is an object, which implicitly contains some values that can be adjusted. The interface only specifies that the object broadcasts Event objects whenever something changes in the model.
    3437A Model is called a Compound Model if it contains sub-models. For instance a Person compound model may contain a StringModel containing the name, and a NumberModel containing the age.
    3538