PageNavigationBar with cellrender and remove column

This is the forum for JIDE Common Layer which is open sourced at https://github.com/jidesoft/jide-oss. Please note, JIDE technical support doesn't monitor this forum as often as other forums. Please consider subscribe for technical support for JIDE Common Layer so that you can use customer only forum to get a timely response.

Moderator: JIDE Support

Forum rules
Community driven forum for open source JIDE Common Layer. JIDE technical support doesn't monitor this forum as often as other forums. If you only use JIDE Common Layer, please consider subscribing for technical support for JIDE Common Layer so that you can use customer only forum to get a timely response.

PageNavigationBar with cellrender and remove column

Postby maraneda » Fri Apr 17, 2009 10:05 am

Hi

I'm using a JideTable with PageNavigationBar:

tblNews.setModel(tableModelNews);
.....

tblNews.getColumnModel().getColumn(1).setCellRenderer(new ButtonCellRender());
tblNews.getColumnModel().removeColumn(tblNews.getColumnModel().getColumn(0));

PageNavigationBar navigationBar = new PageNavigationBar(tblNews);

this.add(navigationBar,BorderLayout.SOUTH);
scroll.getVerticalScrollBar().addAdjustmentListener(new AdjustmentListener() {
public void adjustmentValueChanged(AdjustmentEvent e) {

tblNews.setCellContentVisible(!e.getValueIsAdjusting());
}
});
scroll.addComponentListener(new ComponentAdapter() {
@Override
public void componentResized(ComponentEvent e) {
int rowCount = scroll.getViewport().getHeight() / tblNews.getRowHeight();
PageNavigationSupport pageNavigationSupport = (PageNavigationSupport) TableModelWrapperUtils.getActualTableModel(tblNews.getModel(), PageNavigationSupport.class);
if (pageNavigationSupport != null) {
pageNavigationSupport.setPageSize(rowCount);
}
}
});

I'm using a custom CellRendes and i want to remove a column too.


but when i run the application, it doesn't show my custom cellRender and doesn´t remove the column. Is there a trick to do this or it's a bug?

Thanks
maraneda
 
Posts: 1
Joined: Tue Feb 03, 2009 6:33 am

Re: PageNavigationBar with cellrender and remove column

Postby JIDE Support » Fri Apr 17, 2009 10:08 am

That's strange. PageNavigationBar shouldn't have such a side effect as you described. Could you please create a complete test case for this bug report so that I can compile and run to see the issue?

Thanks,
JIDE Software Technical Support Team
JIDE Support
Site Admin
 
Posts: 37266
Joined: Sun Sep 14, 2003 10:49 am


Return to JIDE Common Layer Open Source Project Discussion (Community Driven)

Who is online

Users browsing this forum: No registered users and 3 guests