Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Table & TableViewer
Table & TableViewer [message #456254] Fri, 27 May 2005 19:16 Go to next message
michael is currently offline michaelFriend
Messages: 44
Registered: July 2009
Member
I don't know if this is the right place to post, since what I am talking
about is Jface related.

For the table's style, you are allow to use SWT.FULL_SELECTION when you
want to select the whole row when you are doing mouse down to your table.
However, when I take this out and try to do highlight on a single cell, it
does not work.

Table table = new Table(parent, SWT.single);
TableViewer viewer = new TableViewer(table);
....

I can only do a single selection to my first column of the table, and
other columns will not response to my mouse down event at all. I will want
to reproduce the functionality like the excel spreadsheet in swt. I am
writing a data entry appliaction in rcp. If TableViewer is not rich
enough, does anyone know if any commerical table controls are availabel?

thanks,

Michael
Re: Table & TableViewer [message #456255 is a reply to message #456254] Fri, 27 May 2005 19:20 Go to previous messageGo to next message
michael is currently offline michaelFriend
Messages: 44
Registered: July 2009
Member
http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.swt.sni ppets/src/org/eclipse/swt/snippets/Snippet77.java?rev=HEAD&a mp;content-type=text/vnd.viewcvs-markup

if you run this example and try to select the second column, you will know
what i mean
Re: Table & TableViewer [message #456292 is a reply to message #456255] Mon, 30 May 2005 08:15 Go to previous messageGo to next message
Yves Harms is currently offline Yves HarmsFriend
Messages: 80
Registered: July 2009
Member
michael wrote:
> http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.swt.sni ppets/src/org/eclipse/swt/snippets/Snippet77.java?rev=HEAD&a mp;content-type=text/vnd.viewcvs-markup
>
>
> if you run this example and try to select the second column, you will
> know what i mean
>

It is possible to edit single cells by using a celleditor (see articles
at eclipse.org)
Highlighting single cells is not supported by the table widget.
Re: Table & TableViewer [message #456293 is a reply to message #456254] Mon, 30 May 2005 08:20 Go to previous message
MÃ¥ns af Klercker is currently offline MÃ¥ns af KlerckerFriend
Messages: 15
Registered: July 2009
Junior Member
Hi Michael,

I think you're pretty much screwed when wanting to create an excel-like
experience with Table (+ TableViewer). It *is* the native Table widget,
but Excel sure isn't. We are doing very basic cell editing stuff (far
from Excel richness) in our application and have had to resort to doing
most things for ourselves. The property view in Eclipse is pretty much
the type of things you can expect from Table and TableViewer, which is
fair, because I suspect that is what it was mostly designed for.

As for commercial/other table implementations, there is one called
k-table and some guy also recently released a draw2D-based own table
implemenation that seems to be a lot richer than Table. Search the news
groups...

cheers,
/Måns

michael wrote:
> I don't know if this is the right place to post, since what I am talking
> about is Jface related.
>
> For the table's style, you are allow to use SWT.FULL_SELECTION when you
> want to select the whole row when you are doing mouse down to your
> table. However, when I take this out and try to do highlight on a single
> cell, it does not work.
>
> Table table = new Table(parent, SWT.single);
> TableViewer viewer = new TableViewer(table);
> ...
>
> I can only do a single selection to my first column of the table, and
> other columns will not response to my mouse down event at all. I will
> want to reproduce the functionality like the excel spreadsheet in swt. I
> am writing a data entry appliaction in rcp. If TableViewer is not rich
> enough, does anyone know if any commerical table controls are availabel?
> thanks,
>
> Michael
>
>
Previous Topic:ToolItems not having all the same size
Next Topic:SWT checkbox on Solaris/Motif much too high
Goto Forum:
  


Current Time: Thu Sep 19 05:52:54 GMT 2024

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

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

Back to the top