Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Linux Archive
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-08-2007, 04:33 AM
Member
 
Join Date: May 2007
Posts: 38
Marty is on a distinguished road
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 05:31 PM.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 05-08-2007, 08:25 AM
Senior Member
 
Join Date: Mar 2007
Posts: 136
goldhouse is on a distinguished road
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, 02:54 AM
Member
 
Join Date: May 2007
Posts: 42
Freddie is on a distinguished road
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 04:28 PM.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


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

vB 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 03:36 PM
Delegation vs inheritance javaplus Advanced Java 1 12-07-2007 11:07 PM
Inheritance mew New To Java 1 12-07-2007 08:08 PM
Multiple Inheritance mew New To Java 1 12-02-2007 12:04 AM
Inheritance by examle JavaForums Java Blogs 0 11-19-2007 02:02 AM


All times are GMT +3. The time now is 08:15 PM.


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