RegisterSearchFAQ UsergroupsLog in
Problem with GroupHeaderColumn identification

 
Reply to topic    Citra Technologies Forum Index » Report a Bug View previous topic
View next topic

Problem with GroupHeaderColumn identification
Author Message
cone



Joined: 29 May 2007
Posts: 353

Post Problem with GroupHeaderColumn identification Reply with quote
Hi,

i have changed the "Groupable Table" of your demo to get the following structure:


with
Code:

public JPanel createTablePanel(ListTableModel dataModel) {
   JPanel p = super.createTablePanel(dataModel);

   TableColumnModel cm = table.getColumnModel();
   
   String level1GroupHeader = "Level1";
   String level2GroupHeader = "Level2";
   
   GroupTableColumn groupLvl1_0 = new GroupTableColumn(level1GroupHeader);
   groupLvl1_0.addColumn(cm.getColumn(1));
   groupLvl1_0.addColumn(cm.getColumn(2));
   
   GroupTableColumn groupLvl2_0 = new GroupTableColumn(level2GroupHeader);
   groupLvl2_0.addColumn(groupLvl1_0);
   groupLvl2_0.addColumn(cm.getColumn(3));
   
   GroupTableColumn groupLvl1_1 = new GroupTableColumn(level1GroupHeader);
   groupLvl1_1.addColumn(cm.getColumn(4));
   groupLvl1_1.addColumn(cm.getColumn(5));
   
   GroupTableColumn groupLvl2_1 = new GroupTableColumn(level2GroupHeader);
   groupLvl2_1.addColumn(groupLvl1_1);
   groupLvl2_1.addColumn(cm.getColumn(6));

   GroupTableHeader header = (GroupTableHeader) table.getTableHeader();
   header.addGroupColumn(groupLvl2_0);
   header.addGroupColumn(groupLvl2_1);
   return p;
}

in GroupTableDemoPanel

if i hide both groups all is fine.
Now make the last goup visible and the result is the following:


Can you please fix the problems with object-identification?
The last was http://www.citra-tech.com/forum/viewtopic.php?t=797

cheers, michael
Wed Apr 17, 2013 7:44 am View user's profile Send private message
support



Joined: 21 Feb 2006
Posts: 1463

Post Reply with quote
Hello,

It's now been fixed.

Thanks
Thu Apr 18, 2013 2:30 am View user's profile Send private message
cone



Joined: 29 May 2007
Posts: 353

Post Reply with quote
Thank you, it works Smile
Thu Apr 18, 2013 2:42 am View user's profile Send private message
Display posts from previous:    

Reply to topic    Citra Technologies Forum Index » Report a Bug All times are GMT - 5 Hours
Page 1 of 1

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group