📄 elimgtag.java
字号:
/*
* $Header: /home/cvs/jakarta-struts/contrib/struts-el/src/share/org/apache/strutsel/taglib/html/ELImgTag.java,v 1.14 2004/03/14 07:15:01 sraeburn Exp $
* $Revision: 1.14 $
* $Date: 2004/03/14 07:15:01 $
*
* Copyright 1999-2004 The Apache Software Foundation.
*
* Licensed 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.strutsel.taglib.html;
import org.apache.struts.taglib.html.ImgTag;
import javax.servlet.jsp.JspException;
import org.apache.strutsel.taglib.utils.EvalHelper;
/**
* Generate an IMG tag to the specified image URI.
* <p>
* TODO:
* <ul>
* <li>make the <strong>alt</strong>, <strong>src</strong>, and
* <strong>lowsrc</strong> settable from properties (for i18n)</li>
* <li>handle <strong>onLoad</strong>, <strong>onAbort</strong>, and
* <strong>onError</strong> events (my JavaScript book is very old,
* there may be more unsupported events in the past couple of IE
* versions)
* </ul>
*<p>
* This class is a subclass of the class
* <code>org.apache.struts.taglib.html.ImgTag</code> which provides most of
* the described functionality. This subclass allows all attribute values to
* be specified as expressions utilizing the JavaServer Pages Standard Library
* expression language.
*
* @version $Revision: 1.14 $
*/
public class ELImgTag extends ImgTag {
/**
* Instance variable mapped to "action" tag attribute.
* (Mapping set in associated BeanInfo class.)
*/
private String actionExpr;
/**
* Instance variable mapped to "module" tag attribute.
* (Mapping set in associated BeanInfo class.)
*/
private String moduleExpr;
/**
* Instance variable mapped to "align" tag attribute.
* (Mapping set in associated BeanInfo class.)
*/
private String alignExpr;
/**
* Instance variable mapped to "alt" tag attribute.
* (Mapping set in associated BeanInfo class.)
*/
private String altExpr;
/**
* Instance variable mapped to "altKey" tag attribute.
* (Mapping set in associated BeanInfo class.)
*/
private String altKeyExpr;
/**
* Instance variable mapped to "border" tag attribute.
* (Mapping set in associated BeanInfo class.)
*/
private String borderExpr;
/**
* Instance variable mapped to "bundle" tag attribute.
* (Mapping set in associated BeanInfo class.)
*/
private String bundleExpr;
/**
* Instance variable mapped to "contextRelative" tag attribute.
* (Mapping set in associated BeanInfo class.)
*/
private String contextRelativeExpr;
/**
* Instance variable mapped to "height" tag attribute.
* (Mapping set in associated BeanInfo class.)
*/
private String heightExpr;
/**
* Instance variable mapped to "hspace" tag attribute.
* (Mapping set in associated BeanInfo class.)
*/
private String hspaceExpr;
/**
* Instance variable mapped to "imageName" tag attribute.
* (Mapping set in associated BeanInfo class.)
*/
private String imageNameExpr;
/**
* Instance variable mapped to "ismap" tag attribute.
* (Mapping set in associated BeanInfo class.)
*/
private String ismapExpr;
/**
* Instance variable mapped to "locale" tag attribute.
* (Mapping set in associated BeanInfo class.)
*/
private String localeExpr;
/**
* Instance variable mapped to "lowsrc" tag attribute.
* (Mapping set in associated BeanInfo class.)
*/
private String lowsrcExpr;
/**
* Instance variable mapped to "name" tag attribute.
* (Mapping set in associated BeanInfo class.)
*/
private String nameExpr;
/**
* Instance variable mapped to "onclick" tag attribute.
* (Mapping set in associated BeanInfo class.)
*/
private String onclickExpr;
/**
* Instance variable mapped to "ondblclick" tag attribute.
* (Mapping set in associated BeanInfo class.)
*/
private String ondblclickExpr;
/**
* Instance variable mapped to "onkeydown" tag attribute.
* (Mapping set in associated BeanInfo class.)
*/
private String onkeydownExpr;
/**
* Instance variable mapped to "onkeypress" tag attribute.
* (Mapping set in associated BeanInfo class.)
*/
private String onkeypressExpr;
/**
* Instance variable mapped to "onkeyup" tag attribute.
* (Mapping set in associated BeanInfo class.)
*/
private String onkeyupExpr;
/**
* Instance variable mapped to "onmousedown" tag attribute.
* (Mapping set in associated BeanInfo class.)
*/
private String onmousedownExpr;
/**
* Instance variable mapped to "onmousemove" tag attribute.
* (Mapping set in associated BeanInfo class.)
*/
private String onmousemoveExpr;
/**
* Instance variable mapped to "onmouseout" tag attribute.
* (Mapping set in associated BeanInfo class.)
*/
private String onmouseoutExpr;
/**
* Instance variable mapped to "onmouseover" tag attribute.
* (Mapping set in associated BeanInfo class.)
*/
private String onmouseoverExpr;
/**
* Instance variable mapped to "onmouseup" tag attribute.
* (Mapping set in associated BeanInfo class.)
*/
private String onmouseupExpr;
/**
* Instance variable mapped to "paramId" tag attribute.
* (Mapping set in associated BeanInfo class.)
*/
private String paramIdExpr;
/**
* Instance variable mapped to "page" tag attribute.
* (Mapping set in associated BeanInfo class.)
*/
private String pageExpr;
/**
* Instance variable mapped to "pageKey" tag attribute.
* (Mapping set in associated BeanInfo class.)
*/
private String pageKeyExpr;
/**
* Instance variable mapped to "paramName" tag attribute.
* (Mapping set in associated BeanInfo class.)
*/
private String paramNameExpr;
/**
* Instance variable mapped to "paramProperty" tag attribute.
* (Mapping set in associated BeanInfo class.)
*/
private String paramPropertyExpr;
/**
* Instance variable mapped to "paramScope" tag attribute.
* (Mapping set in associated BeanInfo class.)
*/
private String paramScopeExpr;
/**
* Instance variable mapped to "property" tag attribute.
* (Mapping set in associated BeanInfo class.)
*/
private String propertyExpr;
/**
* Instance variable mapped to "scope" tag attribute.
* (Mapping set in associated BeanInfo class.)
*/
private String scopeExpr;
/**
* Instance variable mapped to "src" tag attribute.
* (Mapping set in associated BeanInfo class.)
*/
private String srcExpr;
/**
* Instance variable mapped to "srcKey" tag attribute.
* (Mapping set in associated BeanInfo class.)
*/
private String srcKeyExpr;
/**
* Instance variable mapped to "style" tag attribute.
* (Mapping set in associated BeanInfo class.)
*/
private String styleExpr;
/**
* Instance variable mapped to "styleClass" tag attribute.
* (Mapping set in associated BeanInfo class.)
*/
private String styleClassExpr;
/**
* Instance variable mapped to "styleId" tag attribute.
* (Mapping set in associated BeanInfo class.)
*/
private String styleIdExpr;
/**
* Instance variable mapped to "title" tag attribute.
* (Mapping set in associated BeanInfo class.)
*/
private String titleExpr;
/**
* Instance variable mapped to "titleKey" tag attribute.
* (Mapping set in associated BeanInfo class.)
*/
private String titleKeyExpr;
/**
* Instance variable mapped to "useLocalEncoding" tag attribute.
* (Mapping set in associated BeanInfo class.)
*/
private String useLocalEncodingExpr;
/**
* Instance variable mapped to "usemap" tag attribute.
* (Mapping set in associated BeanInfo class.)
*/
private String usemapExpr;
/**
* Instance variable mapped to "vspace" tag attribute.
* (Mapping set in associated BeanInfo class.)
*/
private String vspaceExpr;
/**
* Instance variable mapped to "width" tag attribute.
* (Mapping set in associated BeanInfo class.)
*/
private String widthExpr;
/**
* Getter method for "action" tag attribute.
* (Mapping set in associated BeanInfo class.)
*/
public String getActionExpr() { return (actionExpr); }
/**
* Getter method for "module" tag attribute.
* (Mapping set in associated BeanInfo class.)
*/
public String getModuleExpr() { return (moduleExpr); }
/**
* Getter method for "align" tag attribute.
* (Mapping set in associated BeanInfo class.)
*/
public String getAlignExpr() { return (alignExpr); }
/**
* Getter method for "alt" tag attribute.
* (Mapping set in associated BeanInfo class.)
*/
public String getAltExpr() { return (altExpr); }
/**
* Getter method for "altKey" tag attribute.
* (Mapping set in associated BeanInfo class.)
*/
public String getAltKeyExpr() { return (altKeyExpr); }
/**
* Getter method for "border" tag attribute.
* (Mapping set in associated BeanInfo class.)
*/
public String getBorderExpr() { return (borderExpr); }
/**
* Getter method for "bundle" tag attribute.
* (Mapping set in associated BeanInfo class.)
*/
public String getBundleExpr() { return (bundleExpr); }
/**
* Getter method for "contextRelative" tag attribute.
* (Mapping set in associated BeanInfo class.)
*/
public String getContextRelativeExpr() { return (contextRelativeExpr); }
/**
* Getter method for "height" tag attribute.
* (Mapping set in associated BeanInfo class.)
*/
public String getHeightExpr() { return (heightExpr); }
/**
* Getter method for "hspace" tag attribute.
* (Mapping set in associated BeanInfo class.)
*/
public String getHspaceExpr() { return (hspaceExpr); }
/**
* Getter method for "imageName" tag attribute.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -