|
Eclipse Rich Ajax Platform | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IWidgetLifeCycleAdapter
A stateless callback handler used by RWT to synchronize the client-side and server-side state of a widget. Each widget type should provide its own implementation of this interface.
AbstractWidgetLCA
,
WidgetLCAUtil
Method Summary | |
---|---|
void |
preserveValues(Widget widget)
Preserves the current state of the widget in order to be able to keep track of changes. |
void |
readData(Widget widget)
Reads request parameters and applies the state changes that are indicated by the client to the widget. |
void |
render(Widget widget)
Writes JavaScript code to the response that renders the changes that has been made to the widget. |
Method Detail |
---|
void preserveValues(Widget widget)
Implementors can use the method
IWidgetAdapter.preserve(String, Object)
. As a rule of thumb, every
property that is written in render
must be preserved in this
method.
widget
- the widget, the properties of which are preservedvoid readData(Widget widget)
widget
- the widget to be processedvoid render(Widget widget) throws java.io.IOException
widget
- the widget to render changes for
java.io.IOException
|
Eclipse Rich Ajax Platform | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright (c) EclipseSource and others 2002, 2012. All rights reserved.