@MacroTag public static void cell(MacroContext context, int row, int col) throws IOException { Device device = context.getDevice(); SComponent component = context.getComponent(); // RenderHelper.getInstance(component).forbidCaching(); STable table = (STable) component; STableCellRenderer renderer = table.getCellRenderer(row, col); if (renderer != null) { SComponent cellComponent = table.prepareRenderer(renderer, row, col); SCellRendererPane rendererPane = table.getCellRendererPane(); rendererPane.writeComponent(device, cellComponent, table); } else { device.print(table.getValueAt(row, col)); } // RenderHelper.getInstance(component).allowCaching(); }
component = table.getEditorComponent(); } else { component = table.prepareRenderer(table.getCellRenderer(row, col), row, col);
SComponent component = table.prepareRenderer(table.getCellRenderer(row, column), row, column); table.getCellRendererPane().writeComponent(device, component, table);
component = table.prepareRenderer(table.getCellRenderer(row, col), row, col);
SComponent component = table.prepareRenderer(table.getCellRenderer(row, column), row, column); table.getCellRendererPane().writeComponent(device, component, table); htmlCode = device.toString();