doc: reinstated mvc reference, add view to adapters/__init__.py

This commit is contained in:
ZenCODE 2014-08-22 05:41:36 +02:00
parent 0b2d1b698f
commit c0fafbb3b2
1 changed files with 13 additions and 2 deletions

View File

@ -4,8 +4,8 @@ Adapters
.. versionadded:: 1.5.0
An adapter is a mediating class that processes and presents data for use in
views. It does this by generating models, generally lists of
An adapter is a mediating controller-type class that processes and presents
data for use in views. It does this by generating models, generally lists of
:class:`~kivy.uix.listview.SelectableView` items, that are consumed and
presented by views. Views are top-level widgets, such as a
:class:`~kivy.uix.listview.ListView`, that allow users to scroll through
@ -13,6 +13,10 @@ and (optionally) interact with your data.
Kivy adapters are modelled on the
`Adapter design pattern <http://en.wikipedia.org/wiki/Adapter_pattern>`_.
Conceptually, they play the role of a 'controller' between you data and views
in a `Model-View-Controller
<https://en.wikipedia.org/wiki/Model%E2%80%93view%E2%80%93controller>`_
type architecture.
- **Adapters**: The base :class:`Adapter` is subclassed by the
:class:`SimpleListAdapter` and :class:`ListAdapter`. The :class:`DictAdapter`
@ -38,5 +42,12 @@ Kivy adapters are modelled on the
:doc:`api-kivy.adapters.args_converters`.
- **Views**: Models of your data are presented to the user via views. The base
:class:`AbstractView` currently has one concrete implementation: the
:class:`ListView`.
:doc:`api-kivy.uix.abstractview`,
:doc:`api-kivy.uix.listview`.
----
'''