Home » Eclipse Projects » Standard Widget Toolkit (SWT) » How can I have this widget effect in Eclipse platform?
How can I have this widget effect in Eclipse platform? [message #458861] |
Sun, 24 July 2005 08:51 |
Yin Qiu Messages: 7 Registered: July 2009 |
Junior Member |
|
|
Well, my project now demands such a widget in user interface with the
requirements as follows:
This widget can display both text, icon, and even button. If the text on
it is too long to display completely, omission marks should replace the
redundant words. It is also selectable which is similar to a cell in the
JTable, but it should support displaying icons as I said, and should only
be scaled in size horizontally but never vertically.
Fortunately, I find that a component in the dialog shown during build or
update process meets my request. Does anybody who is familiar with SWT know
how this is managed? That is, which widget(s) should I use? Or can Swing
meet my demand? By the way, here is the capture image of eclipse dialog I
concerned: http://freehost21.websamba.com/utarget/Eclipse_snap.jpg
Many many thanks!
|
|
|
Re: How can I have this widget effect in Eclipse platform? [message #458873 is a reply to message #458861] |
Mon, 25 July 2005 13:23 |
Eclipse User |
|
|
|
Originally posted by: vducloux.cosmosbay-vectis.com
Hi, according to me, you have to use an IProgressMonitor. Have a look at
this article, section "progress, cancelation ...."
http://www.eclipse.org/articles/Article-Builders/builders.ht ml
CU
Victor
Allen Chue wrote:
> Well, my project now demands such a widget in user interface with the
> requirements as follows:
> This widget can display both text, icon, and even button. If the text on
> it is too long to display completely, omission marks should replace the
> redundant words. It is also selectable which is similar to a cell in the
> JTable, but it should support displaying icons as I said, and should
> only be scaled in size horizontally but never vertically.
>
> Fortunately, I find that a component in the dialog shown during build or
> update process meets my request. Does anybody who is familiar with SWT know
> how this is managed? That is, which widget(s) should I use? Or can Swing
> meet my demand? By the way, here is the capture image of eclipse dialog
> I concerned: http://freehost21.websamba.com/utarget/Eclipse_snap.jpg
>
>
> Many many thanks!
>
|
|
|
Re: How can I have this widget effect in Eclipse platform? [message #458911 is a reply to message #458873] |
Tue, 26 July 2005 10:29 |
Yin Qiu Messages: 7 Registered: July 2009 |
Junior Member |
|
|
Thanks, but my concern is mainly about how to implement this label using
SWT. The progress bar doesn't matter indeed. I've already solved this using
Swing. My approach is to use a JPanel as a JList's ListCellRenderer.
However, there's a serious problem: if I add a JButton in this renderer, the
button doesn't work at all. The renderer just renders the cell in the JList
but is not a real component, so the button in it has no functionality. How
can I make the button fire action event when I click it?
"Ducloux Victor" <vducloux@cosmosbay-vectis.com>
wrote:dc2p3n$9i4$1@news.eclipse.org...
> Hi, according to me, you have to use an IProgressMonitor. Have a look at
> this article, section "progress, cancelation ...."
>
> http://www.eclipse.org/articles/Article-Builders/builders.ht ml
>
> CU
>
> Victor
>
> Allen Chue wrote:
> > Well, my project now demands such a widget in user interface with the
> > requirements as follows:
> > This widget can display both text, icon, and even button. If the text on
> > it is too long to display completely, omission marks should replace the
> > redundant words. It is also selectable which is similar to a cell in the
> > JTable, but it should support displaying icons as I said, and should
> > only be scaled in size horizontally but never vertically.
> >
> > Fortunately, I find that a component in the dialog shown during build or
> > update process meets my request. Does anybody who is familiar with SWT
know
> > how this is managed? That is, which widget(s) should I use? Or can Swing
> > meet my demand? By the way, here is the capture image of eclipse dialog
> > I concerned: http://freehost21.websamba.com/utarget/Eclipse_snap.jpg
> >
> >
> > Many many thanks!
> >
|
|
|
Goto Forum:
Current Time: Thu Apr 25 00:36:05 GMT 2024
Powered by FUDForum. Page generated in 0.02987 seconds
|