Home Segments Index Top Previous Next

842: Mainline

Value holders and aspect adapters help to make GUI widgets reusable, because value holders and aspect adapters make it possible for widget methods to access uniformly the data that they need. Each widget that conforms to the value-holder–aspect-adapter convention looks in the model slot for a value holder or aspect adapter, and accesses the information in the value holder or aspect adapter with the value getter and value: setter.

Accordingly, all you need to tell such a widget is the name of the accessor that produces a value holder or aspect adapter from the application model.