Example usage for com.liferay.portal.kernel.template TemplateVariableDefinition getLabel

List of usage examples for com.liferay.portal.kernel.template TemplateVariableDefinition getLabel

Introduction

In this page you can find the example usage for com.liferay.portal.kernel.template TemplateVariableDefinition getLabel.

Prototype

public String getLabel() 

Source Link

Usage

From source file:com.liferay.dynamic.data.mapping.template.DDMTemplateVariableCodeHandler.java

License:Open Source License

protected void prepareTemplate(Template template, TemplateVariableDefinition templateVariableDefinition,
        String language) {/*from   w  w w .  j  a va  2s  .c  om*/

    template.put("dataType", templateVariableDefinition.getDataType());
    template.put("help", templateVariableDefinition.getHelp());
    template.put("label", templateVariableDefinition.getLabel());
    template.put("language", language);
    template.put("name", templateVariableDefinition.getName());
    template.put("repeatable", templateVariableDefinition.isRepeatable());
}