Package org.eclipse.rap.rwt.widgets
Class WidgetUtil
java.lang.Object
org.eclipse.rap.rwt.widgets.WidgetUtil
Helper class to access RWT specific properties of widgets.
- Since:
- 2.3
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
Returns the protocol ID of the given widget.static void
registerDataKeys
(String... keys) Adds keys to the list of widget data keys to be synchronized with the client.
-
Method Details
-
getId
Returns the protocol ID of the given widget.- Parameters:
widget
- the widget to obtain the id for, must not benull
- Returns:
- the id for the given
widget
-
registerDataKeys
Adds keys to the list of widget data keys to be synchronized with the client. It is save to add the same key twice, there are no side-effects. The method has to be called from the UI thread and affects the entire UI-session. The data is only transferred from server to client, not back.- Parameters:
keys
- The keys to add to the list.- See Also:
-