Results 1 to 3 of 3
Thread: Inheritance in GUI
- 05-08-2007, 02:33 AM #1
Member
- Join Date
- May 2007
- Posts
- 38
- Rep Power
- 0
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?
thanks
MartyLast edited by Marty; 06-01-2007 at 03:31 PM.
- 05-08-2007, 06:25 AM #2
Senior Member
- Join Date
- Mar 2007
- Posts
- 134
- Rep Power
- 0
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.
- 05-11-2007, 12:54 AM #3
Member
- Join Date
- May 2007
- Posts
- 41
- Rep Power
- 0
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! ; PLast edited by Freddie; 06-01-2007 at 02:28 PM.
Similar Threads
-
inheritance and aggregation
By java_fun2007 in forum New To JavaReplies: 3Last Post: 12-13-2007, 01:36 PM -
Delegation vs inheritance
By javaplus in forum Advanced JavaReplies: 1Last Post: 12-07-2007, 09:07 PM -
Inheritance
By mew in forum New To JavaReplies: 1Last Post: 12-07-2007, 06:08 PM -
Multiple Inheritance
By mew in forum New To JavaReplies: 1Last Post: 12-01-2007, 10:04 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks