| Summary: | Replace PreserveWidgetsPhaseListener by preserving widgets in READ_DATA phase | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [RT] RAP | Reporter: | Rüdiger Herrmann <ruediger.herrmann> | ||||
| Component: | RWT | Assignee: | Project Inbox <rap-inbox> | ||||
| Status: | RESOLVED FIXED | QA Contact: | |||||
| Severity: | enhancement | ||||||
| Priority: | P3 | ||||||
| Version: | unspecified | ||||||
| Target Milestone: | 1.4 M7 | ||||||
| Hardware: | All | ||||||
| OS: | All | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Rüdiger Herrmann
+1 I agree that getting rid of the PhaseListener would simplify matters. Created attachment 193574 [details]
Proposed changes
The PreserveWidgetsPhaseListener is gone. Its functionality was moved to DisplayLCA and two new methods, preserveValues() and clearPreserved() have been introduce.
preserveValues() is called in the READ_DATA phase from ReadData#execute(), after DisplayLCA#readData() was called.
To free resources, clearPreserved() is called from Render#execute() after the actual rendering was done.
Though this simplifies matters, the DisplayLCA should only be responsible for rendering, preserving, ... its own 'things'.
Currently it does this *and* iterates over the widget tree to have the widgets render, preserve, ... themserves. This code could be moved from DisplayLCA to the respective IPhase implementations. However, I would prefer to make this change in an extra step.
Opinions?
Committed patch to CVS HEAD |