Difference between revisions of "Rap10M2 News"

From Eclipsepedia

Jump to: navigation, search
(RWT)
Line 27: Line 27:
 
|-valign="top" align="left"
 
|-valign="top" align="left"
 
|width="20%"|'''ModifyEvent'''
 
|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>.  
+
|width="80%"|RWT now supports the <code>ModifyEvent</code>. 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.
 
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.
  
Line 39: Line 39:
  
 
</pre>
 
</pre>
 +
|-valign="top" align="left"
 +
|width="20%"|'''Spinner'''
 +
|width="80%"|Now there exists a <code>Spinner</code> widget that works much the same as in SWT.
 +
[[Image:RapSpinner.png]]
 
|}
 
|}
  
  
 
<!-- 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:28, 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
    }
  } );

Spinner Now there exists a Spinner widget that works much the same as in SWT.

RapSpinner.png