Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-08-2007, 03:33 AM
Member
 
Join Date: May 2007
Posts: 38
Rep Power: 0
Marty is on a distinguished road
Default 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
Marty

Last edited by Marty; 06-01-2007 at 04:31 PM.
Bookmark Post in Technorati
Reply With Quote
  #2 (permalink)  
Old 05-08-2007, 07:25 AM
Senior Member
 
Join Date: Mar 2007
Posts: 135
Rep Power: 0
goldhouse is on a distinguished road
Default
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.
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 05-11-2007, 01:54 AM
Member
 
Join Date: May 2007
Posts: 42
Rep Power: 0
Freddie is on a distinguished road
Default
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

Last edited by Freddie; 06-01-2007 at 03:28 PM.
Bookmark Post in Technorati
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
inheritance and aggregation java_fun2007 New To Java 3 12-13-2007 02:36 PM
Delegation vs inheritance javaplus Advanced Java 1 12-07-2007 10:07 PM
Inheritance mew New To Java 1 12-07-2007 07:08 PM
Multiple Inheritance mew New To Java 1 12-01-2007 11:04 PM
Inheritance by examle JavaForums Java Blogs 0 11-19-2007 01:02 AM


All times are GMT +2. The time now is 07:50 PM.



VBulletin, Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2009, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org