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

org.richfaces.cdk.xmlconfig.model.EventBean 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.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;

import org.richfaces.cdk.model.ClassName;
import org.richfaces.cdk.model.ComponentLibrary;
import org.richfaces.cdk.model.TagModel;

import com.google.common.collect.Lists;

/**
 * 

*

* * @author [email protected] */ @XmlType(name = "faces-eventType", namespace = ComponentLibrary.CDK_EXTENSIONS_NAMESPACE) public class EventBean { private String description; private ClassName listenerInterface; private ClassName listenerWrapper; private ClassName sourceInterface; private ClassName type; private List tags = Lists.newArrayList(); private String listenerMethod; /** *

*

* * @return the type */ @XmlElement(name = "event-class", namespace = ComponentLibrary.CDK_EXTENSIONS_NAMESPACE) public ClassName getType() { return type; } /** *

*

* * @param type the type to set */ public void setType(ClassName type) { this.type = type; } /** *

*

* * @return the description */ @XmlElement(name = "description", namespace = ComponentLibrary.CDK_EXTENSIONS_NAMESPACE) public String getDescription() { return description; } /** *

*

* * @param description the description to set */ public void setDescription(String description) { this.description = description; } /** *

*

* * @return the listenerInterface */ @XmlElement(name = "listener-class", namespace = ComponentLibrary.CDK_EXTENSIONS_NAMESPACE) @XmlJavaTypeAdapter(ClassAdapter.class) public ClassName getListenerInterface() { return listenerInterface; } /** *

*

* * @param listenerInterface the listenerInterface to set */ public void setListenerInterface(ClassName listenerInterface) { this.listenerInterface = listenerInterface; } /** *

*

* * @return the listenerWrapper */ @XmlElement(name = "listener-wrapper-class", namespace = ComponentLibrary.CDK_EXTENSIONS_NAMESPACE) public ClassName getListenerWrapper() { return this.listenerWrapper; } /** *

*

* * @param listenerWrapper the listenerWrapper to set */ public void setListenerWrapper(ClassName listenerWrapper) { this.listenerWrapper = listenerWrapper; } /** *

*

* * @return the sourceInterface */ @XmlElement(name = "source-class", namespace = ComponentLibrary.CDK_EXTENSIONS_NAMESPACE) @XmlJavaTypeAdapter(ClassAdapter.class) public ClassName getSourceInterface() { return sourceInterface; } /** *

*

* * @param sourceInterface the sourceInterface to set */ public void setSourceInterface(ClassName sourceInterface) { this.sourceInterface = sourceInterface; } /** *

*

* * @return the tags */ /** *

*

* * @return the tags */ @XmlElement(name = "tag", namespace = ComponentLibrary.CDK_EXTENSIONS_NAMESPACE) public List getTags() { return this.tags; } /** *

*

* * @param tags the tags to set */ public void setTags(List tags) { this.tags = tags; } /** * @return the listenerMethod */ @XmlElement(name = "listener-method", namespace = ComponentLibrary.CDK_EXTENSIONS_NAMESPACE) public String getListenerMethod() { return listenerMethod; } /** * @param listenerMethod the listenerMethod to set */ public void setListenerMethod(String listenerMethod) { this.listenerMethod = listenerMethod; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy