This method can be used within
register_adapters to adapt properties and
widgets. Arguments can be one of the following:
- Property name as a string. A corresponding widget is
searched among view's widgets and if only one match is found, a
default adapter is created. The type of the created adapter
depends both on the property and the widget type. Widget name
matching is performed by searching the property name into widget
names, case insensitive.
- Property name and widget name. Like previous but widget name
is explicitly declared.
- An instance of an Adapter. The adapter must be already
connected to a widget.
The first two flavors of method adapt allows for an
easy construction of a default adapter, but only the third allows
for a full control.