Inheritance in GUI
Inheritance(Heredity) in swt
I would like to have some additional functionality in the controls of swt.
P.e. autocompleted, user's safety control for if same or "autoconcealment" depending on certain parameters or circunstances.
The case is that not as(like) focusing it since not if it is possible to inherit of the classes of swt (is the well-read one something of that not) or simply that everything what I want already exists.
Can you help me?
Almost all the basic controls in SWT is declared final , So the approach I followed was creating a Class SWTTextbox which has a field Text (the text box of SWT) and including the additional features .
My purpose was to bind each control to a field of the DB. This worked fine.
I couldn't make out clearly your purpose.
You can inherit any (visual / public) class of swt.
I think that the only exception is the Browser
I would recommend you, if you are going to do your own visual components that you inherit from Composite and assign to this one layouts and children who correspond(fit) to the representation of your widget especially. If it is a widget that interacts directly with the agent of windows you might inherit also of the class Shell.
Regards and good luck! ; P