Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Questions about the capability of a table / tableviewer
Questions about the capability of a table / tableviewer [message #465345] Fri, 09 December 2005 13:18 Go to next message
Greg is currently offline GregFriend
Messages: 21
Registered: July 2009
Junior Member
Hi,

I'm relatively new to Eclipse SWT. I'm trying to extend a basic SpreadSheet
app.

First, I'd like to be able to allow text to "spill" from a cell (like Excel
does when the adjoining column is empty)
Secondly, I'd like to offer "Intelli-sense" so that when a user types a
value, a drop-down appears that offers additional choices.

If any of this functionality might already exist, can anyone give me some
pointers? Or tell me if I'm completely out of luck.

I'm new to the group also, but haven't had much luck searching through
Google, or previous postings. Please forgive me if this has been addressed
before.

Thanks!

-greg
angrygreg@gmail.com
Re: Questions about the capability of a table / tableviewer [message #465362 is a reply to message #465345] Fri, 09 December 2005 21:04 Go to previous messageGo to next message
Lorenz Maierhofer is currently offline Lorenz MaierhoferFriend
Messages: 88
Registered: July 2009
Member
Hi,

I can only comment on going with ktable for such an app - which is a
custom widget and thus gives you high flexibility:

> First, I'd like to be able to allow text to "spill" from a cell (like Excel
> does when the adjoining column is empty)
At ktable, currently cellrenderers are not allowed to draw over their
bounds. So the ony way implementing this - and probably an acceptable
one - is working with column spanning in such cases.

> Secondly, I'd like to offer "Intelli-sense" so that when a user types a
> value, a drop-down appears that offers additional choices.
This probably can be done with a KTableCellEditorCombo - that offers a
CCombo to edit content.

KTable was originally written for applications that need
spreadsheet-like UIs, and for such cases native tables are not powerful
enough. It was created for the specific project demands and grew quite
powerful.
There are currently efforts under way to refactor the code and build an
even more powerful, clearly structured table control.

regards,
Lorenz Maierhofer
Re: Questions about the capability of a table / tableviewer [message #465446 is a reply to message #465345] Tue, 13 December 2005 13:57 Go to previous message
Veronika Irvine is currently offline Veronika IrvineFriend
Messages: 1272
Registered: July 2009
Senior Member
The SWT Table is based on native table controls which are not intended to
act like a spread sheet. Currently, there is no support in Table for things
like merging cells or spilling over into adjacent cells.

Having a pop down appear is quite simple to implement. See:
http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.swt.sni ppets/src/org/eclipse/swt/snippets/Snippet124.java?rev=HEAD& amp;content-type=text/vnd.viewcvs-markup

Note in the example above that the table editor can be any widget - e.g.
combo box. Also you can add a listener to the text widget and open a list
when the text matches a value.

"Greg" <gakins@ascent-systems.com> wrote in message
news:dnc069$k96$1@news.eclipse.org...
> Hi,
>
> I'm relatively new to Eclipse SWT. I'm trying to extend a basic
> SpreadSheet app.
>
> First, I'd like to be able to allow text to "spill" from a cell (like
> Excel does when the adjoining column is empty)
> Secondly, I'd like to offer "Intelli-sense" so that when a user types a
> value, a drop-down appears that offers additional choices.
>
> If any of this functionality might already exist, can anyone give me some
> pointers? Or tell me if I'm completely out of luck.
>
> I'm new to the group also, but haven't had much luck searching through
> Google, or previous postings. Please forgive me if this has been
> addressed before.
>
> Thanks!
>
> -greg
> angrygreg@gmail.com
>
Previous Topic:getBounds method in Scrollbar class is missing
Next Topic:Table referesh problem
Goto Forum:
  


Current Time: Sat Dec 07 18:01:56 GMT 2024

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

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

Back to the top