9.9. Adapters
The framework provides adapter classes in order to adapt logic to the Editor framework. Adapters provide generic logic and reduce the amount of code needed, for instance, when displaying and manipulating a set of objects or individual objects. Each adapter provides an implementation for one or several editors and can be used to adapt widgets to the Editor interface without writing any specific code.
A number of adapters are available. For instance, if you want to adapt any list of objects to the Editor framework, you can use the HasDataEditor class, which implements CompositeEditor, Editor, LeafValueEditor, HasEditorDelegate, and Value-AwareEditor. This class adapts a list of objects to conform to all editors without you having ...
Get GWT in Action, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.