org.apache.myfaces.custom.swapimage.HtmlSwapImage Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tomahawk Show documentation
Show all versions of tomahawk Show documentation
JSF components and utilities that can be used with any JSF implementation.
This library is compatible with both JSF1.1 and JSF1.2; however for JSF1.2 users there
is an alternative build of Tomahawk available that takes advantage of JSF1.2 features to
offer some additional benefits.
/*
* 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.custom.swapimage;
import javax.faces.component.UIComponent;
import javax.faces.el.ValueBinding;
import javax.faces.context.FacesContext;
// Generated from class org.apache.myfaces.custom.swapimage.AbstractHtmlSwapImage.
//
// WARNING: This file was automatically generated. Do not edit it directly,
// or you will lose your changes.
public class HtmlSwapImage extends org.apache.myfaces.custom.swapimage.AbstractHtmlSwapImage
{
static public final String COMPONENT_FAMILY =
"javax.faces.Graphic";
static public final String COMPONENT_TYPE =
"org.apache.myfaces.HtmlSwapImage";
static public final String DEFAULT_RENDERER_TYPE =
"org.apache.myfaces.SwapImage";
public HtmlSwapImage()
{
setRendererType("org.apache.myfaces.SwapImage");
}
public String getFamily()
{
return COMPONENT_FAMILY;
}
// Property: border
private String _border;
public String getBorder()
{
if (_border != null)
{
return _border;
}
ValueBinding vb = getValueBinding("border");
if (vb != null)
{
Object value = vb.getValue(getFacesContext());
if (value == null)
{
return null;
}
else
{
return (String) value.toString();
}
}
return "Integer.MIN_VALUE";
}
public void setBorder(String border)
{
this._border = border;
}
// Property: hspace
private String _hspace;
public String getHspace()
{
if (_hspace != null)
{
return _hspace;
}
ValueBinding vb = getValueBinding("hspace");
if (vb != null)
{
Object value = vb.getValue(getFacesContext());
if (value == null)
{
return null;
}
else
{
return (String) value.toString();
}
}
return null;
}
public void setHspace(String hspace)
{
this._hspace = hspace;
}
// Property: vspace
private String _vspace;
public String getVspace()
{
if (_vspace != null)
{
return _vspace;
}
ValueBinding vb = getValueBinding("vspace");
if (vb != null)
{
Object value = vb.getValue(getFacesContext());
if (value == null)
{
return null;
}
else
{
return (String) value.toString();
}
}
return null;
}
public void setVspace(String vspace)
{
this._vspace = vspace;
}
// Property: swapImageUrl
private String _swapImageUrl;
public String getSwapImageUrl()
{
if (_swapImageUrl != null)
{
return _swapImageUrl;
}
ValueBinding vb = getValueBinding("swapImageUrl");
if (vb != null)
{
Object value = vb.getValue(getFacesContext());
if (value == null)
{
return null;
}
else
{
return (String) value.toString();
}
}
return null;
}
public void setSwapImageUrl(String swapImageUrl)
{
this._swapImageUrl = swapImageUrl;
}
// Property: activeImageUrl
private String _activeImageUrl;
public String getActiveImageUrl()
{
if (_activeImageUrl != null)
{
return _activeImageUrl;
}
ValueBinding vb = getValueBinding("activeImageUrl");
if (vb != null)
{
Object value = vb.getValue(getFacesContext());
if (value == null)
{
return null;
}
else
{
return (String) value.toString();
}
}
return null;
}
public void setActiveImageUrl(String activeImageUrl)
{
this._activeImageUrl = activeImageUrl;
}
// Property: alt
private String _alt;
public String getAlt()
{
if (_alt != null)
{
return _alt;
}
ValueBinding vb = getValueBinding("alt");
if (vb != null)
{
Object value = vb.getValue(getFacesContext());
if (value == null)
{
return null;
}
else
{
return (String) value.toString();
}
}
return null;
}
public void setAlt(String alt)
{
this._alt = alt;
}
// Property: height
private String _height;
public String getHeight()
{
if (_height != null)
{
return _height;
}
ValueBinding vb = getValueBinding("height");
if (vb != null)
{
Object value = vb.getValue(getFacesContext());
if (value == null)
{
return null;
}
else
{
return (String) value.toString();
}
}
return null;
}
public void setHeight(String height)
{
this._height = height;
}
// Property: ismap
private boolean _ismap;
private boolean _ismapSet;
public boolean isIsmap()
{
if (_ismapSet)
{
return _ismap;
}
ValueBinding vb = getValueBinding("ismap");
if (vb != null)
{
return ((Boolean) vb.getValue(getFacesContext())).booleanValue();
}
return false;
}
public void setIsmap(boolean ismap)
{
this._ismap = ismap;
this._ismapSet = true;
}
// Property: longdesc
private String _longdesc;
public String getLongdesc()
{
if (_longdesc != null)
{
return _longdesc;
}
ValueBinding vb = getValueBinding("longdesc");
if (vb != null)
{
Object value = vb.getValue(getFacesContext());
if (value == null)
{
return null;
}
else
{
return (String) value.toString();
}
}
return null;
}
public void setLongdesc(String longdesc)
{
this._longdesc = longdesc;
}
// Property: onclick
private String _onclick;
public String getOnclick()
{
if (_onclick != null)
{
return _onclick;
}
ValueBinding vb = getValueBinding("onclick");
if (vb != null)
{
Object value = vb.getValue(getFacesContext());
if (value == null)
{
return null;
}
else
{
return (String) value.toString();
}
}
return null;
}
public void setOnclick(String onclick)
{
this._onclick = onclick;
}
// Property: ondblclick
private String _ondblclick;
public String getOndblclick()
{
if (_ondblclick != null)
{
return _ondblclick;
}
ValueBinding vb = getValueBinding("ondblclick");
if (vb != null)
{
Object value = vb.getValue(getFacesContext());
if (value == null)
{
return null;
}
else
{
return (String) value.toString();
}
}
return null;
}
public void setOndblclick(String ondblclick)
{
this._ondblclick = ondblclick;
}
// Property: onkeydown
private String _onkeydown;
public String getOnkeydown()
{
if (_onkeydown != null)
{
return _onkeydown;
}
ValueBinding vb = getValueBinding("onkeydown");
if (vb != null)
{
Object value = vb.getValue(getFacesContext());
if (value == null)
{
return null;
}
else
{
return (String) value.toString();
}
}
return null;
}
public void setOnkeydown(String onkeydown)
{
this._onkeydown = onkeydown;
}
// Property: onkeypress
private String _onkeypress;
public String getOnkeypress()
{
if (_onkeypress != null)
{
return _onkeypress;
}
ValueBinding vb = getValueBinding("onkeypress");
if (vb != null)
{
Object value = vb.getValue(getFacesContext());
if (value == null)
{
return null;
}
else
{
return (String) value.toString();
}
}
return null;
}
public void setOnkeypress(String onkeypress)
{
this._onkeypress = onkeypress;
}
// Property: onkeyup
private String _onkeyup;
public String getOnkeyup()
{
if (_onkeyup != null)
{
return _onkeyup;
}
ValueBinding vb = getValueBinding("onkeyup");
if (vb != null)
{
Object value = vb.getValue(getFacesContext());
if (value == null)
{
return null;
}
else
{
return (String) value.toString();
}
}
return null;
}
public void setOnkeyup(String onkeyup)
{
this._onkeyup = onkeyup;
}
// Property: usemap
private String _usemap;
public String getUsemap()
{
if (_usemap != null)
{
return _usemap;
}
ValueBinding vb = getValueBinding("usemap");
if (vb != null)
{
Object value = vb.getValue(getFacesContext());
if (value == null)
{
return null;
}
else
{
return (String) value.toString();
}
}
return null;
}
public void setUsemap(String usemap)
{
this._usemap = usemap;
}
// Property: width
private String _width;
public String getWidth()
{
if (_width != null)
{
return _width;
}
ValueBinding vb = getValueBinding("width");
if (vb != null)
{
Object value = vb.getValue(getFacesContext());
if (value == null)
{
return null;
}
else
{
return (String) value.toString();
}
}
return null;
}
public void setWidth(String width)
{
this._width = width;
}
// Property: dir
private String _dir;
public String getDir()
{
if (_dir != null)
{
return _dir;
}
ValueBinding vb = getValueBinding("dir");
if (vb != null)
{
Object value = vb.getValue(getFacesContext());
if (value == null)
{
return null;
}
else
{
return (String) value.toString();
}
}
return null;
}
public void setDir(String dir)
{
this._dir = dir;
}
// Property: lang
private String _lang;
public String getLang()
{
if (_lang != null)
{
return _lang;
}
ValueBinding vb = getValueBinding("lang");
if (vb != null)
{
Object value = vb.getValue(getFacesContext());
if (value == null)
{
return null;
}
else
{
return (String) value.toString();
}
}
return null;
}
public void setLang(String lang)
{
this._lang = lang;
}
// Property: title
private String _title;
public String getTitle()
{
if (_title != null)
{
return _title;
}
ValueBinding vb = getValueBinding("title");
if (vb != null)
{
Object value = vb.getValue(getFacesContext());
if (value == null)
{
return null;
}
else
{
return (String) value.toString();
}
}
return null;
}
public void setTitle(String title)
{
this._title = title;
}
// Property: style
private String _style;
public String getStyle()
{
if (_style != null)
{
return _style;
}
ValueBinding vb = getValueBinding("style");
if (vb != null)
{
Object value = vb.getValue(getFacesContext());
if (value == null)
{
return null;
}
else
{
return (String) value.toString();
}
}
return null;
}
public void setStyle(String style)
{
this._style = style;
}
// Property: styleClass
private String _styleClass;
public String getStyleClass()
{
if (_styleClass != null)
{
return _styleClass;
}
ValueBinding vb = getValueBinding("styleClass");
if (vb != null)
{
Object value = vb.getValue(getFacesContext());
if (value == null)
{
return null;
}
else
{
return (String) value.toString();
}
}
return null;
}
public void setStyleClass(String styleClass)
{
this._styleClass = styleClass;
}
// Property: align
private String _align;
public String getAlign()
{
if (_align != null)
{
return _align;
}
ValueBinding vb = getValueBinding("align");
if (vb != null)
{
Object value = vb.getValue(getFacesContext());
if (value == null)
{
return null;
}
else
{
return (String) value.toString();
}
}
return null;
}
public void setAlign(String align)
{
this._align = align;
}
public Object saveState(FacesContext facesContext)
{
Object[] values = new Object[24];
values[0] = super.saveState(facesContext);
values[1] = _border;
values[2] = _hspace;
values[3] = _vspace;
values[4] = _swapImageUrl;
values[5] = _activeImageUrl;
values[6] = _alt;
values[7] = _height;
values[8] = Boolean.valueOf(_ismap);
values[9] = Boolean.valueOf(_ismapSet);
values[10] = _longdesc;
values[11] = _onclick;
values[12] = _ondblclick;
values[13] = _onkeydown;
values[14] = _onkeypress;
values[15] = _onkeyup;
values[16] = _usemap;
values[17] = _width;
values[18] = _dir;
values[19] = _lang;
values[20] = _title;
values[21] = _style;
values[22] = _styleClass;
values[23] = _align;
return values;
}
public void restoreState(FacesContext facesContext, Object state)
{
Object[] values = (Object[])state;
super.restoreState(facesContext,values[0]);
_border = (java.lang.String) values[1];
_hspace = (java.lang.String) values[2];
_vspace = (java.lang.String) values[3];
_swapImageUrl = (java.lang.String) values[4];
_activeImageUrl = (java.lang.String) values[5];
_alt = (java.lang.String) values[6];
_height = (java.lang.String) values[7];
_ismap = ((Boolean) values[8]).booleanValue();
_ismapSet = ((Boolean) values[9]).booleanValue();
_longdesc = (java.lang.String) values[10];
_onclick = (java.lang.String) values[11];
_ondblclick = (java.lang.String) values[12];
_onkeydown = (java.lang.String) values[13];
_onkeypress = (java.lang.String) values[14];
_onkeyup = (java.lang.String) values[15];
_usemap = (java.lang.String) values[16];
_width = (java.lang.String) values[17];
_dir = (java.lang.String) values[18];
_lang = (java.lang.String) values[19];
_title = (java.lang.String) values[20];
_style = (java.lang.String) values[21];
_styleClass = (java.lang.String) values[22];
_align = (java.lang.String) values[23];
}
}