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

META-INF.templates.component.ftl Maven / Gradle / Ivy

The newest version!
<#include "_copyright.ftl">

package ${targetClass.package};

import javax.annotation.Generated;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
import java.util.List;

import javax.faces.context.FacesContext;
import javax.faces.component.UIComponent;
import javax.faces.component.behavior.ClientBehaviorHolder;
import javax.el.MethodExpression;
import javax.el.ValueExpression;
import javax.faces.component.StateHelper;
import ${baseClass};
<#include "_attributes_import.ftl">

/**
 * ${description?if_exists}
 **/
@Generated({"RichFaces CDK", "4.5.0-SNAPSHOT"})
public class ${targetClass.simpleName} extends ${baseClass.simpleName}
    <#if (implemented?size > 0)>implements <@util.concat seq=implemented ; interface>${interface.simpleName}    {

    public static final String COMPONENT_TYPE="${id}";

    <#if family?exists>
    public static final String COMPONENT_FAMILY="${family}";

    @Override
    public String getFamily() {
        return COMPONENT_FAMILY;
    }

    <#if rendererType?exists>
    public ${targetClass.simpleName}() {
        super();
        setRendererType("${rendererType}");
    }

    <#if (eventNames?size > 0)>
    private static final Collection EVENT_NAMES = Collections.unmodifiableCollection(Arrays.asList(
        <@util.concat seq=eventNames delimiter=",\n        "; event>"${event.name}"
        ));
    
    public Collection getEventNames() {
        return EVENT_NAMES;
    }


    public String getDefaultEventName() {
        return <#if defaultEvent?exists>"${defaultEvent.name}"<#else>null;
    }


    <#include "_attributes.ftl">

    <#include "_facets.ftl">

    <#list events as event>
        <#include "_event_source_accessors.ftl">
    

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy