Skip to main content

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.

Jump to: navigation, search

Difference between revisions of "11 Controls, Composites, Groups, and Shells"

m (Class Shell)
(Replaced content with "This page was obsolete and has been deleted. Please see the history if you need to access the content.")
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[[Comparison SWT / RWT|Back to RWTOverview]]
+
This page was obsolete and has been deleted. Please see the history if you need to access the content.
 
+
===Class Control===
+
Currently implemented:
+
* visibility
+
* enablement
+
* tooltip text
+
* colors
+
* fonts
+
* context menu
+
* size, location and layout data
+
* borders (style flags <code>BORDER</code> and <code>FLAT</code>)
+
* the methods <code>moveAbove</code> and <code>moveBelow</code> to control the z-order
+
* <code>setDefaultButton</code>
+
* methods to programmatically control the focus (<code>setFocus</code>, <code>forceFocus</code>, <code>isFocusControl</code>) and <code>getFocusControl</code> on class <code>Display</code> to query the currently focused control.
+
 
+
===Class Composite===
+
 
+
===Class Group===
+
A basic implementation exists. The various <code>SHADOW</code> styles are not yet supported. Though API for changing the font exists as it is inherited from <code>Control</code> using those methods has not effect client-side.
+
 
+
===Class Shell===
+
 
+
In contrary to SWT, Shells in RWT do <em>not </em> represent browser windows, but reside in a browser window (which in turn is represented by class [[5_Display#Display|Display]]).
+
 
+
As of now the inheritance hierarchy of class Shell does not match SWT (whose Shell inherits from Decorations). As soon as there exists the class Decorations in RWT, we will fix this.
+
 
+
The current implementation of Shell comprises the following features:
+
* get/set text and image (title bar)
+
* style flags <code>CLOSE</code>, <code>MIN</code>, <code>MAX</code>, <code>RESIZE</code>
+
* style <code>APPLICATION_MODAL</code> (in favor of <code>SYSTEM_MODAL</code> and <code>PRIMARY_MODAL</code>) that allows to build modal shells that block all other shells in the same browser window.
+
* The <code>shellActivated</code>, <code>shellDeactivated</code> and <code>shellClosed</code> events of <code>ShellListener</code> are implemented. Please not that the <code>doit</code> flag for the <code>shellClosed</code> event is not yet evaluated.
+
* <code>layout</code> and <code>pack</code> work as in SWT. That means most of the SWT-Snipptes now run with almost no modification (replace SWT by RWT and remove the event loop)
+
* The default button (using <code>setDefaultButton</code>) can now be set as well as dialog-shells (those created by using the <code>Shell(&nbsp;Shell&nbsp;)</code> constructor) are closed when the escape key was pressed.
+

Latest revision as of 06:32, 7 January 2014

This page was obsolete and has been deleted. Please see the history if you need to access the content.

Back to the top