Skip to content

Commit 88da445

Browse files
committed
Update readme
1 parent d01c8e2 commit 88da445

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ must be created: `ChildView` extends `ParentView`, `ChildViewModel` extends `Par
215215

216216
In MVVM4FX, the solution for working with composite components is implemented using two classes: `Composer` and `Mediator`:
217217

218-
1. `Mediator`. This is the interface that the `ViewModel` uses to interact with the `Composer`. The need for an
218+
`Mediator`. This is the interface that the `ViewModel` uses to interact with the `Composer`. The need for an
219219
interface is driven by two factors: first, it allows the `ViewModel` to be tested independently of other components;
220220
second, the `Composer` must know about both the `View` and the `ViewModel`, while the `ViewModel` must not know about
221221
the `View`.
@@ -237,7 +237,7 @@ public class FooViewModel extends AbstractChildViewModel {
237237
}
238238
```
239239

240-
2. `Composer`. This class contains the methods that manage the entire lifecycle of child components, as well as the
240+
`Composer`. This class contains the methods that manage the entire lifecycle of child components, as well as the
241241
methods the `View` uses to interact with the `Composer`. In addition, it defines a non-static inner class that
242242
implements the corresponding `Mediator`.
243243

@@ -270,7 +270,7 @@ public class FooView extends AbstractChildView<FooViewModel> {
270270
}
271271
```
272272

273-
3. To assign a `Composer` to a `View` and a `Mediator` to a `ViewModel`, use the public method
273+
Composer Assignment. To assign a `Composer` to a `View` and a `Mediator` to a `ViewModel`, use the public method
274274
`AbstractComponentView#setComposer(...)`. There is also a `AbstractComponentView#createComposer()` method, which can
275275
be overridden to automatically create the `Composer` during construction.
276276

0 commit comments

Comments
 (0)