Grettings,
I'm try to resize the Column and Row headers for my Pivot Table. Try to Override the PivotRenderer and the CSS, but still not working.
Here's my override function:
public class Renderer implements PivotRenderer{ @Override public int getColumnSize(Pivottable table, PivotHeaderContext columnContext, PivotField field){ int columnSize = 100; if(columnContext.isGrandTotal() && field != null){ columnSize = 150; } else{ if("Filas".equals(field.getTitle())) columnSize = 90; if("Columnas".equals(field.getTitle())) columnSize = 500; return columnSize; } @Override public int getRowSize(Pivottable arg0, PivotHeaderContext arg1, PivotField arg2) { // TODO Auto-generated method stub return 0; } @Override public String renderCell(Object arg0, Pivottable arg1, PivotHeaderContext arg2, PivotHeaderContext arg3, PivotField arg4) { // TODO Auto-generated method stub return null; } @Override public String renderField(Object arg0, Pivottable arg1, PivotField arg2) { // TODO Auto-generated method stub return null; } @Override public String renderGrandTotalField(Pivottable arg0, PivotField arg1) { // TODO Auto-generated method stub return null; } @Override public String renderSubtotalField(Object arg0, Pivottable arg1, PivotField arg2, Calculator arg3) { // TODO Auto-generated method stub return null; } }
Grettings,
I'm try to resize the Column and Row headers for my Pivot Table. Try to Override the PivotRenderer and the CSS, but still not working.
Here's my override function:
public class Renderer implements PivotRenderer{ @Override public int getColumnSize(Pivottable table, PivotHeaderContext columnContext, PivotField field){ int columnSize = 100; if(columnContext.isGrandTotal() && field != null){ columnSize = 150; } else{ if("Filas".equals(field.getTitle())) columnSize = 90; if("Columnas".equals(field.getTitle())) columnSize = 500; return columnSize; } @Override public int getRowSize(Pivottable arg0, PivotHeaderContext arg1, PivotField arg2) { // TODO Auto-generated method stub return 0; } @Override public String renderCell(Object arg0, Pivottable arg1, PivotHeaderContext arg2, PivotHeaderContext arg3, PivotField arg4) { // TODO Auto-generated method stub return null; } @Override public String renderField(Object arg0, Pivottable arg1, PivotField arg2) { // TODO Auto-generated method stub return null; } @Override public String renderGrandTotalField(Pivottable arg0, PivotField arg1) { // TODO Auto-generated method stub return null; } @Override public String renderSubtotalField(Object arg0, Pivottable arg1, PivotField arg2, Calculator arg3) { // TODO Auto-generated method stub return null; } }I'm using, like say in a previous post , the stable version of ZK PivotTable.
Can someone give me a hand with this?
Thanks!