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

org.apache.myfaces.shared_tomahawk.taglib.html.HtmlCommandLinkTag Maven / Gradle / Ivy

// 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.shared_tomahawk.taglib.html;

import javax.faces.component.UIComponent;
import javax.faces.el.ValueBinding;
import javax.faces.context.FacesContext;
import javax.faces.el.MethodBinding;


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

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

 
    private String _style;
    
    public void setStyle(String style)
    {
        _style = style;
    }
 
    private String _styleClass;
    
    public void setStyleClass(String styleClass)
    {
        _styleClass = styleClass;
    }
 
    private String _tabindex;
    
    public void setTabindex(String tabindex)
    {
        _tabindex = tabindex;
    }
 
    private String _onblur;
    
    public void setOnblur(String onblur)
    {
        _onblur = onblur;
    }
 
    private String _onfocus;
    
    public void setOnfocus(String onfocus)
    {
        _onfocus = onfocus;
    }
 
    private String _accesskey;
    
    public void setAccesskey(String accesskey)
    {
        _accesskey = accesskey;
    }
 
    private String _onclick;
    
    public void setOnclick(String onclick)
    {
        _onclick = onclick;
    }
 
    private String _ondblclick;
    
    public void setOndblclick(String ondblclick)
    {
        _ondblclick = ondblclick;
    }
 
    private String _onkeydown;
    
    public void setOnkeydown(String onkeydown)
    {
        _onkeydown = onkeydown;
    }
 
    private String _onkeypress;
    
    public void setOnkeypress(String onkeypress)
    {
        _onkeypress = onkeypress;
    }
 
    private String _onkeyup;
    
    public void setOnkeyup(String onkeyup)
    {
        _onkeyup = onkeyup;
    }
 
    private String _onmousedown;
    
    public void setOnmousedown(String onmousedown)
    {
        _onmousedown = onmousedown;
    }
 
    private String _onmousemove;
    
    public void setOnmousemove(String onmousemove)
    {
        _onmousemove = onmousemove;
    }
 
    private String _onmouseout;
    
    public void setOnmouseout(String onmouseout)
    {
        _onmouseout = onmouseout;
    }
 
    private String _onmouseover;
    
    public void setOnmouseover(String onmouseover)
    {
        _onmouseover = onmouseover;
    }
 
    private String _onmouseup;
    
    public void setOnmouseup(String onmouseup)
    {
        _onmouseup = onmouseup;
    }
 
    private String _dir;
    
    public void setDir(String dir)
    {
        _dir = dir;
    }
 
    private String _lang;
    
    public void setLang(String lang)
    {
        _lang = lang;
    }
 
    private String _title;
    
    public void setTitle(String title)
    {
        _title = title;
    }
 
    private String _charset;
    
    public void setCharset(String charset)
    {
        _charset = charset;
    }
 
    private String _coords;
    
    public void setCoords(String coords)
    {
        _coords = coords;
    }
 
    private String _hreflang;
    
    public void setHreflang(String hreflang)
    {
        _hreflang = hreflang;
    }
 
    private String _rel;
    
    public void setRel(String rel)
    {
        _rel = rel;
    }
 
    private String _rev;
    
    public void setRev(String rev)
    {
        _rev = rev;
    }
 
    private String _shape;
    
    public void setShape(String shape)
    {
        _shape = shape;
    }
 
    private String _target;
    
    public void setTarget(String target)
    {
        _target = target;
    }
 
    private String _type;
    
    public void setType(String type)
    {
        _type = type;
    }
 
    private String _action;
    
    public void setAction(String action)
    {
        _action = action;
    }
 
    private String _actionListener;
    
    public void setActionListener(String actionListener)
    {
        _actionListener = actionListener;
    }
 
    private String _immediate;
    
    public void setImmediate(String immediate)
    {
        _immediate = immediate;
    }
 
    private String _value;
    
    public void setValue(String value)
    {
        _value = value;
    }

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

        if (_style != null)
        {
            if (isValueReference(_style))
            {
                ValueBinding vb = context.getApplication().createValueBinding(_style);
                comp.setValueBinding("style", vb);
            }
            else
            {
                comp.getAttributes().put("style", _style);
            }
        } 
        if (_styleClass != null)
        {
            if (isValueReference(_styleClass))
            {
                ValueBinding vb = context.getApplication().createValueBinding(_styleClass);
                comp.setValueBinding("styleClass", vb);
            }
            else
            {
                comp.getAttributes().put("styleClass", _styleClass);
            }
        } 
        if (_tabindex != null)
        {
            if (isValueReference(_tabindex))
            {
                ValueBinding vb = context.getApplication().createValueBinding(_tabindex);
                comp.setValueBinding("tabindex", vb);
            }
            else
            {
                comp.getAttributes().put("tabindex", _tabindex);
            }
        } 
        if (_onblur != null)
        {
            if (isValueReference(_onblur))
            {
                ValueBinding vb = context.getApplication().createValueBinding(_onblur);
                comp.setValueBinding("onblur", vb);
            }
            else
            {
                comp.getAttributes().put("onblur", _onblur);
            }
        } 
        if (_onfocus != null)
        {
            if (isValueReference(_onfocus))
            {
                ValueBinding vb = context.getApplication().createValueBinding(_onfocus);
                comp.setValueBinding("onfocus", vb);
            }
            else
            {
                comp.getAttributes().put("onfocus", _onfocus);
            }
        } 
        if (_accesskey != null)
        {
            if (isValueReference(_accesskey))
            {
                ValueBinding vb = context.getApplication().createValueBinding(_accesskey);
                comp.setValueBinding("accesskey", vb);
            }
            else
            {
                comp.getAttributes().put("accesskey", _accesskey);
            }
        } 
        if (_onclick != null)
        {
            if (isValueReference(_onclick))
            {
                ValueBinding vb = context.getApplication().createValueBinding(_onclick);
                comp.setValueBinding("onclick", vb);
            }
            else
            {
                comp.getAttributes().put("onclick", _onclick);
            }
        } 
        if (_ondblclick != null)
        {
            if (isValueReference(_ondblclick))
            {
                ValueBinding vb = context.getApplication().createValueBinding(_ondblclick);
                comp.setValueBinding("ondblclick", vb);
            }
            else
            {
                comp.getAttributes().put("ondblclick", _ondblclick);
            }
        } 
        if (_onkeydown != null)
        {
            if (isValueReference(_onkeydown))
            {
                ValueBinding vb = context.getApplication().createValueBinding(_onkeydown);
                comp.setValueBinding("onkeydown", vb);
            }
            else
            {
                comp.getAttributes().put("onkeydown", _onkeydown);
            }
        } 
        if (_onkeypress != null)
        {
            if (isValueReference(_onkeypress))
            {
                ValueBinding vb = context.getApplication().createValueBinding(_onkeypress);
                comp.setValueBinding("onkeypress", vb);
            }
            else
            {
                comp.getAttributes().put("onkeypress", _onkeypress);
            }
        } 
        if (_onkeyup != null)
        {
            if (isValueReference(_onkeyup))
            {
                ValueBinding vb = context.getApplication().createValueBinding(_onkeyup);
                comp.setValueBinding("onkeyup", vb);
            }
            else
            {
                comp.getAttributes().put("onkeyup", _onkeyup);
            }
        } 
        if (_onmousedown != null)
        {
            if (isValueReference(_onmousedown))
            {
                ValueBinding vb = context.getApplication().createValueBinding(_onmousedown);
                comp.setValueBinding("onmousedown", vb);
            }
            else
            {
                comp.getAttributes().put("onmousedown", _onmousedown);
            }
        } 
        if (_onmousemove != null)
        {
            if (isValueReference(_onmousemove))
            {
                ValueBinding vb = context.getApplication().createValueBinding(_onmousemove);
                comp.setValueBinding("onmousemove", vb);
            }
            else
            {
                comp.getAttributes().put("onmousemove", _onmousemove);
            }
        } 
        if (_onmouseout != null)
        {
            if (isValueReference(_onmouseout))
            {
                ValueBinding vb = context.getApplication().createValueBinding(_onmouseout);
                comp.setValueBinding("onmouseout", vb);
            }
            else
            {
                comp.getAttributes().put("onmouseout", _onmouseout);
            }
        } 
        if (_onmouseover != null)
        {
            if (isValueReference(_onmouseover))
            {
                ValueBinding vb = context.getApplication().createValueBinding(_onmouseover);
                comp.setValueBinding("onmouseover", vb);
            }
            else
            {
                comp.getAttributes().put("onmouseover", _onmouseover);
            }
        } 
        if (_onmouseup != null)
        {
            if (isValueReference(_onmouseup))
            {
                ValueBinding vb = context.getApplication().createValueBinding(_onmouseup);
                comp.setValueBinding("onmouseup", vb);
            }
            else
            {
                comp.getAttributes().put("onmouseup", _onmouseup);
            }
        } 
        if (_dir != null)
        {
            if (isValueReference(_dir))
            {
                ValueBinding vb = context.getApplication().createValueBinding(_dir);
                comp.setValueBinding("dir", vb);
            }
            else
            {
                comp.getAttributes().put("dir", _dir);
            }
        } 
        if (_lang != null)
        {
            if (isValueReference(_lang))
            {
                ValueBinding vb = context.getApplication().createValueBinding(_lang);
                comp.setValueBinding("lang", vb);
            }
            else
            {
                comp.getAttributes().put("lang", _lang);
            }
        } 
        if (_title != null)
        {
            if (isValueReference(_title))
            {
                ValueBinding vb = context.getApplication().createValueBinding(_title);
                comp.setValueBinding("title", vb);
            }
            else
            {
                comp.getAttributes().put("title", _title);
            }
        } 
        if (_charset != null)
        {
            if (isValueReference(_charset))
            {
                ValueBinding vb = context.getApplication().createValueBinding(_charset);
                comp.setValueBinding("charset", vb);
            }
            else
            {
                comp.getAttributes().put("charset", _charset);
            }
        } 
        if (_coords != null)
        {
            if (isValueReference(_coords))
            {
                ValueBinding vb = context.getApplication().createValueBinding(_coords);
                comp.setValueBinding("coords", vb);
            }
            else
            {
                comp.getAttributes().put("coords", _coords);
            }
        } 
        if (_hreflang != null)
        {
            if (isValueReference(_hreflang))
            {
                ValueBinding vb = context.getApplication().createValueBinding(_hreflang);
                comp.setValueBinding("hreflang", vb);
            }
            else
            {
                comp.getAttributes().put("hreflang", _hreflang);
            }
        } 
        if (_rel != null)
        {
            if (isValueReference(_rel))
            {
                ValueBinding vb = context.getApplication().createValueBinding(_rel);
                comp.setValueBinding("rel", vb);
            }
            else
            {
                comp.getAttributes().put("rel", _rel);
            }
        } 
        if (_rev != null)
        {
            if (isValueReference(_rev))
            {
                ValueBinding vb = context.getApplication().createValueBinding(_rev);
                comp.setValueBinding("rev", vb);
            }
            else
            {
                comp.getAttributes().put("rev", _rev);
            }
        } 
        if (_shape != null)
        {
            if (isValueReference(_shape))
            {
                ValueBinding vb = context.getApplication().createValueBinding(_shape);
                comp.setValueBinding("shape", vb);
            }
            else
            {
                comp.getAttributes().put("shape", _shape);
            }
        } 
        if (_target != null)
        {
            if (isValueReference(_target))
            {
                ValueBinding vb = context.getApplication().createValueBinding(_target);
                comp.setValueBinding("target", vb);
            }
            else
            {
                comp.getAttributes().put("target", _target);
            }
        } 
        if (_type != null)
        {
            if (isValueReference(_type))
            {
                ValueBinding vb = context.getApplication().createValueBinding(_type);
                comp.setValueBinding("type", vb);
            }
            else
            {
                comp.getAttributes().put("type", _type);
            }
        } 
        if (_action != null)
        {
            MethodBinding mb;
            if (isValueReference(_action))
            {
                mb = context.getApplication().createMethodBinding(
                    _action, new Class[0]);            
            }
            else
            {
                mb = new org.apache.myfaces.shared_tomahawk.el.SimpleActionMethodBinding(_action);
            }
            comp.setAction(mb);
        }
        if (_actionListener != null)
        {
            MethodBinding mb = context.getApplication().createMethodBinding(
                _actionListener, new Class[]{javax.faces.event.ActionEvent.class,});
            comp.setActionListener(mb);
        }
        if (_immediate != null)
        {
            if (isValueReference(_immediate))
            {
                ValueBinding vb = context.getApplication().createValueBinding(_immediate);
                comp.setValueBinding("immediate", vb);
            }
            else
            {
                comp.getAttributes().put("immediate", Boolean.valueOf(_immediate));
            }
        } 
        if (_value != null)
        {
            if (isValueReference(_value))
            {
                ValueBinding vb = context.getApplication().createValueBinding(_value);
                comp.setValueBinding("value", vb);
            }
            else
            {
                comp.getAttributes().put("value", _value);
            }
        } 
    }

    public void release()
    {
        super.release();
        _style = null;
        _styleClass = null;
        _tabindex = null;
        _onblur = null;
        _onfocus = null;
        _accesskey = null;
        _onclick = null;
        _ondblclick = null;
        _onkeydown = null;
        _onkeypress = null;
        _onkeyup = null;
        _onmousedown = null;
        _onmousemove = null;
        _onmouseout = null;
        _onmouseover = null;
        _onmouseup = null;
        _dir = null;
        _lang = null;
        _title = null;
        _charset = null;
        _coords = null;
        _hreflang = null;
        _rel = null;
        _rev = null;
        _shape = null;
        _target = null;
        _type = null;
        _action = null;
        _actionListener = null;
        _immediate = null;
        _value = null;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy