org.apache.myfaces.generated.taglib.html.ext.HtmlInputTextareaTag 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.generated.taglib.html.ext;
import javax.faces.component.UIComponent;
import javax.faces.el.ValueBinding;
import javax.faces.context.FacesContext;
import javax.faces.convert.Converter;
import javax.faces.el.MethodBinding;
public class HtmlInputTextareaTag
extends org.apache.myfaces.shared_tomahawk.taglib.html.HtmlInputTextareaTag
{
public HtmlInputTextareaTag()
{
}
public String getComponentType()
{
return "org.apache.myfaces.HtmlInputTextarea";
}
public String getRendererType()
{
return "org.apache.myfaces.Textarea";
}
private String _wrap;
public void setWrap(String wrap)
{
_wrap = wrap;
}
private String _displayValueOnly;
public void setDisplayValueOnly(String displayValueOnly)
{
_displayValueOnly = displayValueOnly;
}
private String _displayValueOnlyStyle;
public void setDisplayValueOnlyStyle(String displayValueOnlyStyle)
{
_displayValueOnlyStyle = displayValueOnlyStyle;
}
private String _displayValueOnlyStyleClass;
public void setDisplayValueOnlyStyleClass(String displayValueOnlyStyleClass)
{
_displayValueOnlyStyleClass = displayValueOnlyStyleClass;
}
private String _enabledOnUserRole;
public void setEnabledOnUserRole(String enabledOnUserRole)
{
_enabledOnUserRole = enabledOnUserRole;
}
private String _visibleOnUserRole;
public void setVisibleOnUserRole(String visibleOnUserRole)
{
_visibleOnUserRole = visibleOnUserRole;
}
private String _forceId;
public void setForceId(String forceId)
{
_forceId = forceId;
}
private String _forceIdIndex;
public void setForceIdIndex(String forceIdIndex)
{
_forceIdIndex = forceIdIndex;
}
private String _datafld;
public void setDatafld(String datafld)
{
_datafld = datafld;
}
private String _datasrc;
public void setDatasrc(String datasrc)
{
_datasrc = datasrc;
}
private String _dataformatas;
public void setDataformatas(String dataformatas)
{
_dataformatas = dataformatas;
}
protected void setProperties(UIComponent component)
{
if (!(component instanceof org.apache.myfaces.component.html.ext.HtmlInputTextarea))
{
throw new IllegalArgumentException("Component "+
component.getClass().getName() +" is no org.apache.myfaces.component.html.ext.HtmlInputTextarea");
}
org.apache.myfaces.component.html.ext.HtmlInputTextarea comp = (org.apache.myfaces.component.html.ext.HtmlInputTextarea) component;
super.setProperties(component);
FacesContext context = getFacesContext();
if (_wrap != null)
{
if (isValueReference(_wrap))
{
ValueBinding vb = context.getApplication().createValueBinding(_wrap);
comp.setValueBinding("wrap", vb);
}
else
{
comp.getAttributes().put("wrap", _wrap);
}
}
if (_displayValueOnly != null)
{
if (isValueReference(_displayValueOnly))
{
ValueBinding vb = context.getApplication().createValueBinding(_displayValueOnly);
comp.setValueBinding("displayValueOnly", vb);
}
else
{
comp.getAttributes().put("displayValueOnly", Boolean.valueOf(_displayValueOnly));
}
}
if (_displayValueOnlyStyle != null)
{
if (isValueReference(_displayValueOnlyStyle))
{
ValueBinding vb = context.getApplication().createValueBinding(_displayValueOnlyStyle);
comp.setValueBinding("displayValueOnlyStyle", vb);
}
else
{
comp.getAttributes().put("displayValueOnlyStyle", _displayValueOnlyStyle);
}
}
if (_displayValueOnlyStyleClass != null)
{
if (isValueReference(_displayValueOnlyStyleClass))
{
ValueBinding vb = context.getApplication().createValueBinding(_displayValueOnlyStyleClass);
comp.setValueBinding("displayValueOnlyStyleClass", vb);
}
else
{
comp.getAttributes().put("displayValueOnlyStyleClass", _displayValueOnlyStyleClass);
}
}
if (_enabledOnUserRole != null)
{
if (isValueReference(_enabledOnUserRole))
{
ValueBinding vb = context.getApplication().createValueBinding(_enabledOnUserRole);
comp.setValueBinding("enabledOnUserRole", vb);
}
else
{
comp.getAttributes().put("enabledOnUserRole", _enabledOnUserRole);
}
}
if (_visibleOnUserRole != null)
{
if (isValueReference(_visibleOnUserRole))
{
ValueBinding vb = context.getApplication().createValueBinding(_visibleOnUserRole);
comp.setValueBinding("visibleOnUserRole", vb);
}
else
{
comp.getAttributes().put("visibleOnUserRole", _visibleOnUserRole);
}
}
if (_forceId != null)
{
comp.getAttributes().put("forceId", Boolean.valueOf(_forceId));
}
if (_forceIdIndex != null)
{
comp.getAttributes().put("forceIdIndex", Boolean.valueOf(_forceIdIndex));
}
if (_datafld != null)
{
if (isValueReference(_datafld))
{
ValueBinding vb = context.getApplication().createValueBinding(_datafld);
comp.setValueBinding("datafld", vb);
}
else
{
comp.getAttributes().put("datafld", _datafld);
}
}
if (_datasrc != null)
{
if (isValueReference(_datasrc))
{
ValueBinding vb = context.getApplication().createValueBinding(_datasrc);
comp.setValueBinding("datasrc", vb);
}
else
{
comp.getAttributes().put("datasrc", _datasrc);
}
}
if (_dataformatas != null)
{
if (isValueReference(_dataformatas))
{
ValueBinding vb = context.getApplication().createValueBinding(_dataformatas);
comp.setValueBinding("dataformatas", vb);
}
else
{
comp.getAttributes().put("dataformatas", _dataformatas);
}
}
}
public void release()
{
super.release();
_wrap = null;
_displayValueOnly = null;
_displayValueOnlyStyle = null;
_displayValueOnlyStyleClass = null;
_enabledOnUserRole = null;
_visibleOnUserRole = null;
_forceId = null;
_forceIdIndex = null;
_datafld = null;
_datasrc = null;
_dataformatas = null;
}
}