Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
Difference between revisions of "11 Controls, Composites, Groups, and Shells"
(→Class Control) |
(→Class Shell) |
||
Line 22: | Line 22: | ||
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]]). | 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: | The current implementation of Shell comprises the following features: | ||
− | * get/set text (title bar | + | * get/set text and image (title bar) |
* style flags <code>CLOSE</code>, <code>MIN</code>, <code>MAX</code>, <code>RESIZE</code> | * 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. | * 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. | ||
* ShellListener | * ShellListener | ||
* <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) | * <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) |
Revision as of 08:51, 17 February 2007
Class Control
Currently implemented:
- visibility
- enablement
- tooltip text
- colors
- fonts
- context menu
- size, location and layout data
- borders (style flags
BORDER
andFLAT
) - the methods
moveAbove
andmoveBelow
to control the z-order - setDefaultButton
Class Composite
Class Group
A basic implementation exists. The various SHADOW
styles are not yet supported. Though API for changing the font exists as it is inherited from Control
using those methods has not effect client-side.
Class Shell
In contrary to SWT, Shells in RWT do not represent browser windows, but reside in a browser window (which in turn is represented by class 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
CLOSE
,MIN
,MAX
,RESIZE
- style
APPLICATION_MODAL
(in favor ofSYSTEM_MODAL
andPRIMARY_MODAL
) that allows to build modal shells that block all other shells in the same browser window. - ShellListener
-
layout
andpack
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)