All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.jangaroo.exml.templates.exml_component_class.ftl Maven / Gradle / Ivy

There is a newer version: 4.1.0-alpha-8
Show newest version
<#-- @ftlvariable name="" type="net.jangaroo.exml.generator.ExmlComponentClassModel" -->
package ${model.packageName} {

<#list allImports as import>
import ${import};


// Do not edit. This is an auto-generated class.

/**
 * ${model.escapedDescriptionWithoutAts!}
 *
 * 

This component is created by <#if model.configClass.type.extTypeAttribute??>the ${model.configClass.type.extTypeAttribute} '${model.configClass.fullName}' / the EXML element <${model.configClass.ns}:${model.configClass.name}> * with xmlns:${model.configClass.ns}="exml:${model.configClass.packageName}".

*

See the config class for details.

* * @see ${model.configClass.fullName} <#if model.escapedDescriptionAts??> * ${model.escapedDescriptionAts} */ <#list model.annotations as annotation> [${annotation}] public class ${model.className} extends ${model.superClassName} { <#list model.configClass.constants as constant> /** * ${constant.escapedDescription!} */ public static const ${constant.name}:${constant.type} = <#if constant.standAloneConstant>${constant.value}<#if !constant.standAloneConstant>${model.configClass.fullName}.${constant.name}; /** * Create a ${model.className}. * @param config The configuration options. See the config class for details. * * @see ${model.fullClassName} * @see ${model.configClass.fullName} */ public function ${model.className}(config:${model.configClass.fullName} = null) { <#if !model.cfgDefaults.empty> config = ${model.configClass.fullName}(net.jangaroo.ext.Exml.apply(${formattedCfgDefaults}, config)); <#list model.vars as var> var ${var.name}:${var.type} = ${var.value}; super(${model.configClass.fullName}(net.jangaroo.ext.Exml.apply(${formattedConfig}, config))); } /** * Create a ${model.className}. * @param config The configuration options. See the config class for details. * * @see ${model.fullClassName} * @see ${model.configClass.fullName} */ public static function main(config:${model.configClass.fullName} = null):void { new ${model.fullClassName}(config); } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy