Class BarcodeDirective
java.lang.Object
ch.tocco.nice2.templating.impl.freemarker.directives.BarcodeDirective
- All Implemented Interfaces:
Nice2TemplateDirective
,TemplateIdentifiers
,freemarker.template.TemplateDirectiveModel
,freemarker.template.TemplateModel
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
-
Nested Class Summary
Nested classes/interfaces inherited from interface ch.tocco.nice2.templating.api.freemarker.directives.TemplateIdentifiers
TemplateIdentifiers.Scope
-
Field Summary
Fields inherited from interface ch.tocco.nice2.templating.api.freemarker.directives.TemplateIdentifiers
BASEDATA_VAR, DELIMITER_PARAM, ENTITY_PARAM, INLINE_TEMPLATE, KEY, LIMIT_PARAM, LINE_END_PARAM, LINE_START_PARAM, NAME_PARAM, PATH_PARAM, PATHS_PARAM, PATTERN_PARAM, RECIPIENT_VAR, SCOPE_PARAM, SENDER_VAR, SINGLE_BASE_VAR, TARGET_VAR, VALUE_PARAM
Fields inherited from interface freemarker.template.TemplateModel
NOTHING
-
Constructor Summary
-
Method Summary
-
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 interfacefreemarker.template.TemplateDirectiveModel
- Throws:
freemarker.template.TemplateException
IOException
RuntimeException
-