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

org.richfaces.cdk.xmlconfig.model.RenderKitBean Maven / Gradle / Ivy

The newest version!
/*
 * $Id$
 *
 * License Agreement.
 *
 * Rich Faces - Natural Ajax for Java Server Faces (JSF)
 *
 * Copyright (C) 2007 Exadel, Inc.
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License version 2.1 as published by the Free Software Foundation.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301  USA
 */
package org.richfaces.cdk.xmlconfig.model;

import java.util.List;

import javax.faces.render.RenderKitFactory;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;

import org.richfaces.cdk.model.BehaviorRendererModel;
import org.richfaces.cdk.model.ClassName;
import org.richfaces.cdk.model.ComponentLibrary;
import org.richfaces.cdk.model.ConfigExtension;
import org.richfaces.cdk.model.FacesId;
import org.richfaces.cdk.model.RendererModel;

import com.google.common.collect.Lists;

/**
 * 

*

* * @author [email protected] */ @XmlType(name = "faces-config-render-kitType", namespace = ComponentLibrary.FACES_CONFIG_NAMESPACE, propOrder = { "id", "targetClass", "renderers", "behaviorRenderers", "extension" }) public class RenderKitBean extends ExtensibleBean { private List renderers = Lists.newArrayList(); private List behaviorRenderers = Lists.newArrayList(); private ClassName targetClass; private FacesId key = new FacesId(RenderKitFactory.HTML_BASIC_RENDER_KIT); @XmlElement(name = "render-kit-id", namespace = ComponentLibrary.FACES_CONFIG_NAMESPACE) @XmlJavaTypeAdapter(FacesIdAdapter.class) public FacesId getId() { return key; } public void setId(FacesId key) { this.key = key; } /** *

*

* * @return the targetClass */ @XmlElement(name = "render-kit-class", namespace = ComponentLibrary.FACES_CONFIG_NAMESPACE) @XmlJavaTypeAdapter(ClassAdapter.class) public ClassName getTargetClass() { return targetClass; } /** *

*

* * @param renderkitClass the targetClass to set */ public void setTargetClass(ClassName renderkitClass) { this.targetClass = renderkitClass; } /** *

*

* * @return the renderers */ @XmlElement(name = "renderer", namespace = ComponentLibrary.FACES_CONFIG_NAMESPACE) @XmlJavaTypeAdapter(RendererAdapter.class) public List getRenderers() { return renderers; } /** *

*

* * @param renderers the renderers to set */ public void setRenderers(List renderers) { this.renderers = renderers; } /** *

*

* * @return the behaviorRenderers */ @XmlElement(name = "client-behavior-renderer", namespace = ComponentLibrary.FACES_CONFIG_NAMESPACE) @XmlJavaTypeAdapter(BehaviorRendererAdapter.class) public List getBehaviorRenderers() { return this.behaviorRenderers; } /** *

*

* * @param behaviorRenderers the behaviorRenderers to set */ public void setBehaviorRenderers(List behaviorRenderers) { this.behaviorRenderers = behaviorRenderers; } /** *

*

* * @return the extension */ @XmlElement(name = "render-kit-extension", namespace = ComponentLibrary.FACES_CONFIG_NAMESPACE) public RenderKitExtension getExtension() { return super.getExtension(); } /** *

*

* * @param extension the extension to set */ public void setExtension(RenderKitExtension extension) { super.setExtension(extension); } /** *

*

* * @author [email protected] */ public static class RenderKitExtension extends ConfigExtension { } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy