Jump to: navigation, search

Difference between revisions of "Rap10M2 News"

(JFace)
Line 24: Line 24:
  
 
==RWT==
 
==RWT==
TBD
+
{|
 +
|-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 11: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.
  • InputDialog

RapInputDialog.png

  • MessageDialog

RapQuestionDialog.png

  • ErrorDialog

File:RapErrorDialog.png

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 IWindowCallback interface whose windowClosed method is called with the returnCode as a parameter when a dialog was closed.


RWT

ModifyEvent RWT now supports the ModifyEvent. The two widgets that benefit from this are Text and Spinner.

Though implementing a ModifyListener 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.

  Text text = new Text( parent, RWT.SINGLE );
  text.addModifyListener( new ModifyListener() {
    public void modifyText( ModifyEvent event ) {
      // update model with changed text
    }
  } );