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

org.apache.myfaces.taglib.html.HtmlCommandScriptTag Maven / Gradle / Ivy

Go to download

The private implementation classes of the Apache MyFaces Core JSF-2.3-next Implementation

There is a newer version: 4.1.0-RC2
Show newest version
// WARNING: This file was automatically generated. Do not edit it directly,
//          or you will lose your changes.
/*
 *  Licensed to the Apache Software Foundation (ASF) under one
 *  or more contributor license agreements.  See the NOTICE file
 *  distributed with this work for additional information
 *  regarding copyright ownership.  The ASF licenses this file
 *  to you under the Apache License, Version 2.0 (the
 *  "License"); you may not use this file except in compliance
 *  with the License.  You may obtain a copy of the License at
 * 
 *  http://www.apache.org/licenses/LICENSE-2.0
 * 
 *  Unless required by applicable law or agreed to in writing,
 *  software distributed under the License is distributed on an
 *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 *  KIND, either express or implied.  See the License for the
 *  specific language governing permissions and limitations
 *  under the License.
 */
package org.apache.myfaces.taglib.html;

import javax.faces.component.UIComponent;
import javax.el.ValueExpression;
import javax.el.MethodExpression;
import javax.el.MethodExpression;
import javax.faces.component.UIComponent;


// Generated from class javax.faces.component.html._HtmlCommandScript.
//
// WARNING: This file was automatically generated. Do not edit it directly,
//          or you will lose your changes.
public class HtmlCommandScriptTag
    extends javax.faces.webapp.UIComponentELTag
{
    public HtmlCommandScriptTag()
    {    
    }
    
    @Override
    public String getComponentType()
    {
        return "javax.faces.HtmlCommandScript";
    }

    public String getRendererType()
    {
        return "javax.faces.Script";
    }

    private ValueExpression _autorun;
    
    public void setAutorun(ValueExpression autorun)
    {
        _autorun = autorun;
    }
    private ValueExpression _execute;
    
    public void setExecute(ValueExpression execute)
    {
        _execute = execute;
    }
    private ValueExpression _name;
    
    public void setName(ValueExpression name)
    {
        _name = name;
    }
    private ValueExpression _onerror;
    
    public void setOnerror(ValueExpression onerror)
    {
        _onerror = onerror;
    }
    private ValueExpression _onevent;
    
    public void setOnevent(ValueExpression onevent)
    {
        _onevent = onevent;
    }
    private ValueExpression _render;
    
    public void setRender(ValueExpression render)
    {
        _render = render;
    }
    private ValueExpression _resetValues;
    
    public void setResetValues(ValueExpression resetValues)
    {
        _resetValues = resetValues;
    }
    private ValueExpression _immediate;
    
    public void setImmediate(ValueExpression immediate)
    {
        _immediate = immediate;
    }
    private ValueExpression _value;
    
    public void setValue(ValueExpression value)
    {
        _value = value;
    }
    private MethodExpression _actionExpression;
    
    public void setAction(MethodExpression actionExpression)
    {
        _actionExpression = actionExpression;
    }

    @Override
    protected void setProperties(UIComponent component)
    {
        if (!(component instanceof javax.faces.component.html.HtmlCommandScript ))
        {
            throw new IllegalArgumentException("Component "+
                component.getClass().getName() +" is no javax.faces.component.html.HtmlCommandScript");
        }
        
        javax.faces.component.html.HtmlCommandScript comp = (javax.faces.component.html.HtmlCommandScript) component;
        
        super.setProperties(component);
        

        if (_autorun != null)
        {
            comp.setValueExpression("autorun", _autorun);
        } 
        if (_execute != null)
        {
            comp.setValueExpression("execute", _execute);
        } 
        if (_name != null)
        {
            comp.setValueExpression("name", _name);
        } 
        if (_onerror != null)
        {
            comp.setValueExpression("onerror", _onerror);
        } 
        if (_onevent != null)
        {
            comp.setValueExpression("onevent", _onevent);
        } 
        if (_render != null)
        {
            comp.setValueExpression("render", _render);
        } 
        if (_resetValues != null)
        {
            comp.setValueExpression("resetValues", _resetValues);
        } 
        if (_immediate != null)
        {
            comp.setValueExpression("immediate", _immediate);
        } 
        if (_value != null)
        {
            comp.setValueExpression("value", _value);
        } 
        if (_actionExpression != null)
        {
            comp.setActionExpression(_actionExpression);
        }        
    }

    @Override
    public void release()
    {
        super.release();
        _autorun = null;
        _execute = null;
        _name = null;
        _onerror = null;
        _onevent = null;
        _render = null;
        _resetValues = null;
        _immediate = null;
        _value = null;
        _actionExpression = null;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy