Align text in Pivot Table

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.

Align text in Pivot Table

Postby DennisS » Fri Aug 05, 2011 2:49 am

Hello,

is it possible to add an offset to the text for the cells without the expand button in it, so that the text in all cells of the same column start at the same position?

Right now if there are cells with this expand button and cells without, the text is not in one line (because of the small "+" icon).

I tried to add spaces to the text of the cell with no icon. But i encountered two problems.
First, it seems that my renderer does not effect the row header table. The table did not change.
Second problem is, how can i check if a specific cell as this expand button?


Code: Select all
final TableCellRenderer renderer = CellRendererManager.getRenderer(String.class);
        CellRendererManager.registerRenderer(String.class, new TableCellRenderer() {
           
            @Override
            public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus,
                    int row, int column) {
                Component comp = renderer.getTableCellRendererComponent(table, value, isSelected, hasFocus, row, column);
                ContextSensitiveCellRenderer scr = (ContextSensitiveCellRenderer)comp;
             
                scr.setText("   " + scr.getText());
               
                return scr;
            }
        });


Can you show me how to do this please?
DennisS
 
Posts: 4
Joined: Fri Aug 05, 2011 12:47 am

Re: Align text in Pivot Table

Postby JIDE Support » Fri Aug 05, 2011 10:36 am

Will fix to make it aligned well in next regular release.

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

Re: Align text in Pivot Table

Postby JIDE Support » Sat Aug 13, 2011 7:30 am

Just so you know, this is fixed in 3.2.0 just released.

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

Re: Align text in Pivot Table

Postby DennisS » Mon Aug 22, 2011 12:54 am

Ok, thanks.
DennisS
 
Posts: 4
Joined: Fri Aug 05, 2011 12:47 am


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

Who is online

Users browsing this forum: No registered users and 23 guests

cron