Cell spanning in version 2.2

Neil Galarneau neil at galarneaus.net
Fri May 17 08:52:51 PDT 2013

Hi Jonathan,

My question was the former, not the latter.

I will follow the leads you gave below.

Thank you for your detailed answer! 


----- Original Message -----
From: jonathan.giles at oracle.com
To:"Neil Galarneau" 
Sent:Fri, 17 May 2013 08:05:25 -0700
Subject:Re: Cell spanning in version 2.2

 Hi Neil,

 Assuming your question is "given the OpenJFX code base, is someone
 the community able to extend TableView to (mostly) support cell
 for themselves", then the answer is yes. If you're asking whether we
 add cell spanning support to JavaFX for a 2.x release, then the
 is almost certainly a no.

 Cell spanning is like TreeTableView to me. It's something that is 
 relatively easy to hack together, but there were a thousand loose
 that needed to be tidied up. The two biggest areas for cell spanning

 that were left unresolved (due to lack of time, not difficulty) were

 keyboard navigation and the need to support fixed columns / 
 'locked-together' columns (so that cells that spanned columns
 be split up by the user rearranging the columns so that they were no

 longer adjacent).

 To answer your question about why it appeared in the JavaFX 8.0
 and then disappeared: it's because I was exploring the domain and
 want to have a branch specifically for cell spanning. Once you do
 and are concurrently fixing bugs / adding features in the main
 for TableView, you end up with a merge nightmare. I was also hoping
 might have time to actually implement it well enough to get it into 
 JavaFX 8.0, but as always time conspires against these kind of

 You may be interested in my JavaOne talk, which I believe is
 online at [1] At that point my code was actually a separate control
 'CellSpanTableView'). Following that talk I folded it all into the
 that underpins TableView / TreeTableView (most notably 
 TableRowSkinBase). If you're wanting to roll your own code, the best

 starting point is the JavaFX 8.0 repo - just go back into the
 and pull out the relevant classes (CellSpan, SpanModel, TableView, 
 TableRowSkin / TableRowSkinBase). You should be able to get a basic 
 implementation up and running quite easily.

 I hope that helps.

 [1] http://www.youtube.com/watch?v=udc2iRZBF0M [1]

 -- Jonathan

 On 17/05/2013 6:22 a.m., Neil Galarneau wrote:
 > Is Cell spanning in TableView in Java 7 possible to implement?
 > I have read Jonathan's FX experience article on the topic. I've
 > in RT-24747 that the code was added into Java 8 last year & then
 > removed early this year. I didn't see (on this list or in Jira)
why it
 > was removed.
 > It is ok with me if there the implementation isn't perfect. For
 > example, if keyboard navigation is a little strange that is ok by
 > Thanks in advance for any advice,
 > Neil

[1] http://www.youtube.com/watch?v=udc2iRZBF0M

More information about the openjfx-dev mailing list