Changes between Version 43 and Version 44 of mvc
- Timestamp:
- 01/15/24 15:10:06 (11 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
mvc
v43 v44 17 17 This 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. 18 18 19 == The Model20 The toolbox has a hierarchy of Models. This section describes the various standard models.21 19 22 20 === 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. 21 Before 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 24 23 The 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. 25 24 … … 30 29 31 30 31 == The MVC Model 32 The toolbox has a hierarchy of MVC Models. This section describes the various standard models. 33 34 32 35 === Model and Compound Models. 33 At the root is the M odelinterface. 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.36 At 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. 34 37 A 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. 35 38