java.lang.Object
ch.tocco.nice2.templating.impl.freemarker.directives.BarcodeDirective
All Implemented Interfaces:
Nice2TemplateDirective, TemplateIdentifiers, freemarker.template.TemplateDirectiveModel, freemarker.template.TemplateModel

public class BarcodeDirective extends Object implements Nice2TemplateDirective, TemplateIdentifiers
this is used to generate a barcode from a string value parameters required - type - the type of barcode to create, Code128 is used if empty - value - the value to generate the code for - height - the height of the code - width - the width of the single bars - drawText - should the value be drawn beneath the code
  • Constructor Details

    • BarcodeDirective

      public BarcodeDirective()
  • Method Details

    • execute

      public void execute(freemarker.core.Environment environment, Map parameters, freemarker.template.TemplateModel[] templateModels, freemarker.template.TemplateDirectiveBody templateDirectiveBody) throws freemarker.template.TemplateException, IOException, RuntimeException
      Specified by:
      execute in interface freemarker.template.TemplateDirectiveModel
      Throws:
      freemarker.template.TemplateException
      IOException
      RuntimeException