Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
Difference between revisions of "Rap10M2 News"
(→JFace) |
|||
Line 24: | Line 24: | ||
==RWT== | ==RWT== | ||
− | + | {| | |
+ | |-valign="top" align="left" | ||
+ | |width="20%"|'''ModifyEvent''' | ||
+ | |width="80%"|RWT now supports the ModifyEvent. The two widgets that benefit from this are <code>Text</code> and <code>Spinner</code>. | ||
+ | Though implementing a <code>ModifyListener</code> does not differ from SWT as You can see below, the inner workings do differ. In contrary to SWT that sends a ModifyEvent immediately, RWT uses a delay of currently 500 ms after which the server is notified about changes. | ||
+ | |||
+ | <pre> | ||
+ | Text text = new Text( parent, RWT.SINGLE ); | ||
+ | text.addModifyListener( new ModifyListener() { | ||
+ | public void modifyText( ModifyEvent event ) { | ||
+ | // update model with changed text | ||
+ | } | ||
+ | } ); | ||
+ | |||
+ | </pre> | ||
+ | |} | ||
+ | |||
<!-- The above features are just the ones that are new since the previous milestone build. --> | <!-- The above features are just the ones that are new since the previous milestone build. --> |
Revision as of 12:21, 1 March 2007
| RAP wiki home | RAP project home |
RAP 1.0 M2 - New and Noteworthy
Here are some of the more noteworthy things available in milestone build M2 which will be available for download on March 2, 2007. If You don't want to wait, all the listed features are available in CVS HEAD.
JFace
Dialogs | The RAP JFace adaption now provides the class Dialog and friends.
Due to the distributed nature of RAP, the way how the result is passed back to the caller
differs from JFace. RAP JFace provides an
|
RWT
ModifyEvent | RWT now supports the ModifyEvent. The two widgets that benefit from this are Text and Spinner .
Though implementing a Text text = new Text( parent, RWT.SINGLE ); text.addModifyListener( new ModifyListener() { public void modifyText( ModifyEvent event ) { // update model with changed text } } ); |