11 Controls, Composites, Groups, and Shells
From Eclipsepedia
Contents |
Class Control
Currently implemented:
- visibility
- enablement
- tooltip text
- colors
- fonts
- context menu
- size, location and layout data
- borders (style flags
BORDERandFLAT) - the methods
moveAboveandmoveBelowto control the z-order - methods to programmatically control the focus (
setFocus,forceFocus,isFocusControl) andgetFocusControlon classDisplayto query the currently focused control.
Class Composite
The RWT Composite is almost fully functional.
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_MODALandPRIMARY_MODAL) that allows to build modal shells that * styleON_TOPfor shells that always stay on top of all other shells. - The
shellActivated,shellDeactivatedandshellClosedevents ofShellListenerare implemented. Please note that thedoitflag for theshellClosedevent is not yet evaluated. -
layoutandpackwork 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
setDefaultButton) can now be set as well as dialog-shells (those created by using theShell( Shell )constructor) are closed when the escape key was pressed.