|
Eclipse Remote Application Platform | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface WidgetLifeCycleAdapter
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. Clients
should not directly implement this interface, but extend AbstractWidgetLCA
instead.
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 changes for this widget from the message that has been received from the client. |
void |
render(Widget widget)
Renders the changes that have been made to this widget to the message that will be sent to the client. |
Method Detail |
---|
void readData(Widget widget)
widget
- the widget to be processedvoid preserveValues(Widget widget)
Implementors can use the method WidgetAdapter.preserve(String, Object)
. As a rule of
thumb, every property that is written in render
must be preserved in this method.
widget
- the widget to be processedvoid render(Widget widget) throws java.io.IOException
widget
- the widget to render changes for
java.io.IOException
|
Eclipse Remote Application Platform | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright (c) EclipseSource and others 2002, 2013. All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0