Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » KTable merging mechanism help!!
KTable merging mechanism help!! [message #467363] Mon, 30 January 2006 12:33 Go to next message
Eclipse UserFriend
Originally posted by: zoppello.libero.it

Hi all,

I need to implement some spreadsheet functionalities in my application,
my first requirement is to a teble with have two-row(headers ) where the
first row need to merge one or more columns for example:

--------------------------
| A | B |
--------------------------
| A1 |A2 | B1| B2 | B3 |
--------------------------
| | | | | |
--------------------------

For this reason i've try the Ktable components because i've seen from a
screenshot on the sourceforge site that this is possible.

I found this component very good, specially for the model concept.

My problem is that there's no documentation, and i don't understand how
to customize the components for my needings.

I've seen the Span Examples but this is too much simple and i don't
understand how it works ( i've already see at the code in the
doBelongsToCell but i'm not an SWT expert and it's not very clear ).

My questions are:

Is the code for the screenshot ( in the sourceforge site ) available???

Are there any documentation about this component??

Thanks

Andrea
Re: KTable merging mechanism help!! [message #467420 is a reply to message #467363] Tue, 31 January 2006 08:08 Go to previous message
Lorenz Maierhofer is currently offline Lorenz MaierhoferFriend
Messages: 88
Registered: July 2009
Member
Hi,

Sorry, currently there is only the example code with very minimalistic
cell spanning.

The concept of belongsToCell() is that this method is called by KTable
to get the left-top-cell of a spanned cell.

So if you want to implement a table just like you have sketched it
below, for the first row you would do:
- return (0,0) for the indices (0,0) and (1,0),
- return (2,0) for the indices (2,0) and (3,0)
....
and so on. This is the way to say that, for example, both (0,0) and
(1,0) should belong to the same, merged cell.

If you have more detailed questions, ask them here...




Andrea Zoppello wrote:
> Hi all,
>
> I need to implement some spreadsheet functionalities in my application,
> my first requirement is to a teble with have two-row(headers ) where the
> first row need to merge one or more columns for example:
>
> --------------------------
> | A | B |
> --------------------------
> | A1 |A2 | B1| B2 | B3 |
> --------------------------
> | | | | | |
> --------------------------
>
> For this reason i've try the Ktable components because i've seen from a
> screenshot on the sourceforge site that this is possible.
>
> I found this component very good, specially for the model concept.
>
> My problem is that there's no documentation, and i don't understand how
> to customize the components for my needings.
>
> I've seen the Span Examples but this is too much simple and i don't
> understand how it works ( i've already see at the code in the
> doBelongsToCell but i'm not an SWT expert and it's not very clear ).
>
> My questions are:
>
> Is the code for the screenshot ( in the sourceforge site ) available???
>
> Are there any documentation about this component??
>
> Thanks
>
> Andrea
>
Previous Topic:AWT modal dialog
Next Topic:Styles in Groups.
Goto Forum:
  


Current Time: Thu Mar 28 12:07:50 GMT 2024

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

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

Back to the top