Class DynamicSheetNameGenerator

java.lang.Object
org.jxls.command.DynamicSheetNameGenerator
All Implemented Interfaces:
CellRefGenerator

public class DynamicSheetNameGenerator extends Object implements CellRefGenerator
Creates cell references based on passed sheet names. Appends unique number to the name if name already exists.
  • Constructor Details

    • DynamicSheetNameGenerator

      public DynamicSheetNameGenerator(String sheetNameExpression, CellRef startCellRef)
  • Method Details

    • generateCellRef

      public CellRef generateCellRef(int index, Context context, JxlsLogger logger)
      Specified by:
      generateCellRef in interface CellRefGenerator
      Parameters:
      index - current iteration index
      context - current context
      logger - -
      Returns:
      target cell reference for this index