Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » HowTo subclass/extend/customize Item to have multiple active Widgets?
HowTo subclass/extend/customize Item to have multiple active Widgets? [message #465978] Tue, 27 December 2005 23:57
Paul E. Keyser is currently offline Paul E. KeyserFriend
Messages: 878
Registered: July 2009
Senior Member
R3.1.1 (WinXP)

It looks like it is theoretically possible to subclass Item as FooItem and write a corresponding
FooControl so that each FooItem would (A) have multiple active Widgets, say, (1) an Image-bearing
CLabel, (2) a separate text-bearing CLabel, and (3) an separate editable Text, and (B) allow the
user to manipulate (click on, select, etc.) each of those widgets *independently*.

However, after reading prior threads on the subject ("Subclassing Item, allowed?", "Customizing
TreeItem", and "Extending Item?"), I am not altogether sure that this is really possible. (The
article referred to in one of those threads just shows how to write a TreeViewer using the existing
JFace TreeViewer code, and the result just has the regular Image-plus-text type of TreeItem.) Adding
things to the data-field of the Widget/Item is not sufficient, since I need the GUI to have extra
active Controls for each FooItem. I would hope that what I want to do would not involve OS-level
code the way all existing SWT-provided subclasses of Item do.

So -- does anyone know how to go about doing this? Is it even possible?

thanks (in advance)
Previous Topic:creating executable jar
Next Topic:How can I get text selection events from the Browser widget?
Goto Forum:

Current Time: Fri Sep 20 03:44:34 GMT 2019

Powered by FUDForum. Page generated in 0.01792 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top