uk.co.spudsoft.birt.emitters.excel.handlers.NestedTableRowHandler Maven / Gradle / Ivy
/*************************************************************************************
* Copyright (c) 2011, 2012, 2013 James Talbut.
* [email protected]
*
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License 2.0 which is available at
* https://www.eclipse.org/legal/epl-2.0/.
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* James Talbut - Initial implementation.
************************************************************************************/
package uk.co.spudsoft.birt.emitters.excel.handlers;
import org.eclipse.birt.core.exception.BirtException;
import org.eclipse.birt.report.engine.content.ICellContent;
import org.eclipse.birt.report.engine.content.IRowContent;
import uk.co.spudsoft.birt.emitters.excel.HandlerState;
import uk.co.spudsoft.birt.emitters.excel.framework.Logger;
public class NestedTableRowHandler extends AbstractRealTableRowHandler {
public NestedTableRowHandler(Logger log, IHandler parent, IRowContent row, int startCol) {
super(log, parent, row, startCol);
}
@Override
public void startRow(HandlerState state, IRowContent row) throws BirtException {
log.debug("startRow called with colOffset = ", startCol);
super.startRow(state, row);
}
@Override
public void startCell(HandlerState state, ICellContent cell) throws BirtException {
log.debug("startCell called with colOffset = ", startCol);
state.setHandler(new NestedTableCellHandler(state.getEmitter(), log, this, cell, startCol));
state.getHandler().startCell(state, cell);
}
@Override
public void endRow(HandlerState state, IRowContent row) throws BirtException {
super.endRow(state, row);
}
@Override
protected boolean isNested() {
return true;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy