Re: Column Group Demo

View: New views
9 Messages — Rating Filter:   Alert me  

Parent Message unknown Re: Column Group Demo

by jdnc-interest :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I did some cleanup on the Column Group table header.  The most important issue was that it didn't adhere to the current L&F.  I now have it working with the Liquid and Substance look and feels.  

Here is a link to the updated demo that uses the Liquid L&F to show what the grouped column headers would look like.  I think it looks pretty good, but I'm biased at this point. ;)

https://jdnc-incubator.dev.java.net/demos/evickroy/columngroup/columngroup.jnlp

I still have considerable work to do to support all standard L&Fs.  Here is the list of L&Fs that I believe it should support by default.  Please let me know if there are others:
Metal
Winblows
All JGoodies looks
Liquid
Substance


NOTE:  We had prior discussions of needing to limit the columns from being able to be reordered outside of their initial group.  All "grouped" column header" samples that I have seen disable the reordering of the columns if grouped.  Now I know why.   ;)  I have followed suit for now, so you cannot reorder the columns in the demo.


All feedback welcome.

Erik
---
[Message sent by forum member 'evickroy' (Erik Vickroy)]

http://www.javadesktop.org/forums/thread.jspa?messageID=107592

---------------------------------------------------------------------
To unsubscribe, e-mail: jdnc-unsubscribe@...
For additional commands, e-mail: jdnc-help@...


Re: Column Group Demo

by jdnc-interest :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Ok. I should have a cleaned up version that supports L&F AddOns and column reordering allowed, but only within the same group.

I have a couple of questions that I need some opinions on, however:

1) Should the ColumnGroupTableHeader be discarded and the ColumnGroup abilities just be added to the JXTableHeader component?  That would simplify using the column groups if the developer needed it.  They would just create the ColumnGroup, add columns to the group via addColumn(), then call addGroup() on the existing table header.  No hassle of creating a custom TableHeader.

2) If the answer of 1 is No, then should the ColumnGroupTableHeader class extend JXTableHeader or JTableHeader?  One thought is that the column group headers could be used within a normal JTable if it extends JTableHeader.  Extending JXTableHeader would require the use of a JXTable.

Opinions?

Erik
---
[Message sent by forum member 'evickroy' (Erik Vickroy)]

http://www.javadesktop.org/forums/thread.jspa?messageID=109028

---------------------------------------------------------------------
To unsubscribe, e-mail: jdnc-unsubscribe@...
For additional commands, e-mail: jdnc-help@...


Re: Column Group Demo

by jdnc-interest :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Like Kleopatra, I enjoy talking to myself, so I'll answer these. ;)

> 1) Should the ColumnGroupTableHeader be discarded and
> the ColumnGroup abilities just be added to the
> JXTableHeader component?  That would simplify using
> the column groups if the developer needed it.  They
> would just create the ColumnGroup, add columns to the
> group via addColumn(), then call addGroup() on the
> existing table header.  No hassle of creating a
> custom TableHeader.
No.  Since the ColumnGroupTableHeader requires a custom UI delegate for painting the groups, it would remove the existing L&F support that JXTableHeader enjoys for free.
Bad idea.

> 2) If the answer of 1 is No, then should the
> ColumnGroupTableHeader class extend JXTableHeader or
> JTableHeader?  One thought is that the column group
> headers could be used within a normal JTable if it
> extends JTableHeader.  Extending JXTableHeader would
> require the use of a JXTable.
JXTableHeader for sure.  If Scott wanted Column Group support in Swing, he would have added it to JTableHeader a long time ago! ;)

BTW... can you change the name of the component?  ColumnGroupTableHeader is too long and sounds funny.  Maybe try JXGroupableTableHeader it's much shorter... well... at least the name fits better with the JX naming conventions!

Erik
---
[Message sent by forum member 'evickroy' (Erik Vickroy)]

http://www.javadesktop.org/forums/thread.jspa?messageID=111057

---------------------------------------------------------------------
To unsubscribe, e-mail: jdnc-unsubscribe@...
For additional commands, e-mail: jdnc-help@...


Re: Column Group Demo

by Kleopatra :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

jdnc-interest@... wrote:
> Like Kleopatra, I enjoy talking to myself, so I'll answer these. ;)

<g>

Jeanette

PS: sorry for being so unresponsive - will look into your latest code soon.


---------------------------------------------------------------------
To unsubscribe, e-mail: jdnc-unsubscribe@...
For additional commands, e-mail: jdnc-help@...


Re: Column Group Demo

by jdnc-interest :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> PS: sorry for being so unresponsive - will look into
> your latest code soon.

No worries.  I'm still messing with it.  I almost have the AddOn stuff working, so it's not fully functional yet.  This demo just shows what the column groups look like with a L&F specific TableHeader like Liquid.  I think it looks pretty good, but I'm biased. ;)
Also, it demonstrates the code for not allowing a column that is grouped to be moved outside of it's group.  This is done by a method similar to the columnAtPoint method except it looks at y as well as x.  I think I can use the same method to prevent the column sorting kicking in if the group is clicked rather than the actual column.  Maybe the columnAtPoint method in JXTableHeader can be modified to check y to determine the column index.  Just a thought.

I'll try and have the AddOn stuff wrapped up this week, so maybe it will be ready for a review of all features next week.

Thanks!
Erik
---
[Message sent by forum member 'evickroy' (Erik Vickroy)]

http://www.javadesktop.org/forums/thread.jspa?messageID=111485

---------------------------------------------------------------------
To unsubscribe, e-mail: jdnc-unsubscribe@...
For additional commands, e-mail: jdnc-help@...


Re: Column Group Demo

by jdnc-interest :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

We are using the groupable table header with a JXTable and encountered some problems. I entered an issue here :https://jdnc-incubator.dev.java.net/issues/show_bug.cgi?id=3
Is that the right place to report the issue?

Bart
[Message sent by forum member 'bartvdc' (bartvdc)]

http://forums.java.net/jive/thread.jspa?messageID=156382

---------------------------------------------------------------------
To unsubscribe, e-mail: jdnc-unsubscribe@...
For additional commands, e-mail: jdnc-help@...


Re: Column Group Demo

by jdnc-interest :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Bart,
  Thanks for reporting the issue.  I'll take a look later tonight and give you an update.

Thanks
Erik
[Message sent by forum member 'evickroy' (evickroy)]

http://forums.java.net/jive/thread.jspa?messageID=156515

---------------------------------------------------------------------
To unsubscribe, e-mail: jdnc-unsubscribe@...
For additional commands, e-mail: jdnc-help@...


Re: Column Group Demo

by jdnc-interest :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Bart,
   I have corrected the exception that you reported.  The sources have been committed to cvs if you want to pull it down.  I cannot account for the extra space at the right.  I see some odd behavior in the Column Group Demo, but do not see it in what we have in production.  I'll try and refresh the libraries that the demo uses and see if I can exaplin or correct it.

Let me know if you experience any more problems with it.
Erik
[Message sent by forum member 'evickroy' (evickroy)]

http://forums.java.net/jive/thread.jspa?messageID=157585

---------------------------------------------------------------------
To unsubscribe, e-mail: jdnc-unsubscribe@...
For additional commands, e-mail: jdnc-help@...


Re: Column Group Demo

by jdnc-interest :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

*Digs up another one from the past*

I'm looking for these example sources, or specifically this incubator cvs of which there's a lot of talk but no link. I'm trying to get some the grouped columns working but most examples that I've seen so far, indeed disable dragging of the columns.

So, I was wondering whether JXTreeTable has gotten any of evick's code implemented yet, or whether somebody could link to the incubator where I might browse trough these sources?
[Message sent by forum member 'bbrtki' (bbr_tki@...)]

http://forums.java.net/jive/thread.jspa?messageID=370189

---------------------------------------------------------------------
To unsubscribe, e-mail: jdnc-unsubscribe@...
For additional commands, e-mail: jdnc-help@...