📄 htmlgraphicimage.java
字号:
/* * Copyright (c) 1998-2008 Caucho Technology -- all rights reserved * * This file is part of Resin(R) Open Source * * Each copy or derived work must preserve the copyright notice and this * notice unmodified. * * Resin Open Source is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 * as published by the Free Software Foundation. * * Resin Open Source is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE, or any warranty * of NON-INFRINGEMENT. See the GNU General Public License for more * details. * * You should have received a copy of the GNU General Public License * along with Resin Open Source; if not, write to the * * Free Software Foundation, Inc. * 59 Temple Place, Suite 330 * Boston, MA 02111-1307 USA * * @author Scott Ferguson */package javax.faces.component.html;import java.util.*;import javax.el.*;import javax.faces.component.*;import javax.faces.context.*;public class HtmlGraphicImage extends UIGraphic{ public static final String COMPONENT_TYPE = "javax.faces.HtmlGraphicImage"; private static final HashMap<String,PropEnum> _propMap = new HashMap<String,PropEnum>(); private String _alt; private ValueExpression _altExpr; private String _dir; private ValueExpression _dirExpr; private String _height; private ValueExpression _heightExpr; private Boolean _ismap; private ValueExpression _ismapExpr; private String _lang; private ValueExpression _langExpr; private String _longdesc; private ValueExpression _longdescExpr; private String _onclick; private ValueExpression _onclickExpr; private String _ondblclick; private ValueExpression _ondblclickExpr; private String _onkeydown; private ValueExpression _onkeydownExpr; private String _onkeypress; private ValueExpression _onkeypressExpr; private String _onkeyup; private ValueExpression _onkeyupExpr; private String _onmousedown; private ValueExpression _onmousedownExpr; private String _onmousemove; private ValueExpression _onmousemoveExpr; private String _onmouseout; private ValueExpression _onmouseoutExpr; private String _onmouseover; private ValueExpression _onmouseoverExpr; private String _onmouseup; private ValueExpression _onmouseupExpr; private String _style; private ValueExpression _styleExpr; private String _styleClass; private ValueExpression _styleClassExpr; private String _title; private ValueExpression _titleExpr; private String _usemap; private ValueExpression _usemapExpr; private String _width; private ValueExpression _widthExpr; public HtmlGraphicImage() { setRendererType("javax.faces.Image"); } // // properties // public String getAlt() { if (_alt != null) return _alt; else if (_altExpr != null) return Util.evalString(_altExpr); else return null; } public void setAlt(String value) { _alt = value; } public String getDir() { if (_dir != null) return _dir; else if (_dirExpr != null) return Util.evalString(_dirExpr); else return null; } public void setDir(String value) { _dir = value; } public String getHeight() { if (_height != null) return _height; else if (_heightExpr != null) return Util.evalString(_heightExpr); else return null; } public void setHeight(String value) { _height = value; } public boolean isIsmap() { if (_ismap != null) return _ismap; else if (_ismapExpr != null) return Util.evalBoolean(_ismapExpr); else return false; } public void setIsmap(boolean value) { _ismap = value; } public String getLang() { if (_lang != null) return _lang; else if (_langExpr != null) return Util.evalString(_langExpr); else return null; } public void setLang(String value) { _lang = value; } public String getLongdesc() { if (_longdesc != null) return _longdesc; else if (_longdescExpr != null) return Util.evalString(_longdescExpr); else return null; } public void setLongdesc(String value) { _longdesc = value; } public String getOnclick() { if (_onclick != null) return _onclick; else if (_onclickExpr != null) return Util.evalString(_onclickExpr); else return null; } public void setOnclick(String value) { _onclick = value; } public String getOndblclick() { if (_ondblclick != null) return _ondblclick; else if (_ondblclickExpr != null) return Util.evalString(_ondblclickExpr); else return null; } public void setOndblclick(String value) { _ondblclick = value; } public String getOnkeydown() { if (_onkeydown != null) return _onkeydown; else if (_onkeydownExpr != null) return Util.evalString(_onkeydownExpr); else return null; } public void setOnkeydown(String value) { _onkeydown = value; } public String getOnkeypress() { if (_onkeypress != null) return _onkeypress; else if (_onkeypressExpr != null) return Util.evalString(_onkeypressExpr); else return null; } public void setOnkeypress(String value) { _onkeypress = value; } public String getOnkeyup() { if (_onkeyup != null) return _onkeyup; else if (_onkeyupExpr != null) return Util.evalString(_onkeyupExpr); else return null; } public void setOnkeyup(String value) { _onkeyup = value; } public String getOnmousedown() { if (_onmousedown != null) return _onmousedown; else if (_onmousedownExpr != null) return Util.evalString(_onmousedownExpr); else return null; } public void setOnmousedown(String value) { _onmousedown = value; } public String getOnmousemove() { if (_onmousemove != null) return _onmousemove; else if (_onmousemoveExpr != null) return Util.evalString(_onmousemoveExpr); else return null; } public void setOnmousemove(String value) { _onmousemove = value; } public String getOnmouseout() { if (_onmouseout != null) return _onmouseout; else if (_onmouseoutExpr != null) return Util.evalString(_onmouseoutExpr); else return null; } public void setOnmouseout(String value) { _onmouseout = value; } public String getOnmouseover() { if (_onmouseover != null) return _onmouseover; else if (_onmouseoverExpr != null) return Util.evalString(_onmouseoverExpr); else return null; } public void setOnmouseover(String value) { _onmouseover = value; } public String getOnmouseup() { if (_onmouseup != null) return _onmouseup; else if (_onmouseupExpr != null) return Util.evalString(_onmouseupExpr); else return null; } public void setOnmouseup(String value) { _onmouseup = value; } public String getStyle() { if (_style != null) return _style; else if (_styleExpr != null) return Util.evalString(_styleExpr); else return null; } public void setStyle(String value) { _style = value; } public String getStyleClass() { if (_styleClass != null) return _styleClass; else if (_styleClassExpr != null) return Util.evalString(_styleClassExpr); else return null; } public void setStyleClass(String value) { _styleClass = value; } public String getTitle() { if (_title != null) return _title; else if (_titleExpr != null) return Util.evalString(_titleExpr); else return null; } public void setTitle(String value) { _title = value; } public String getUsemap() { if (_usemap != null) return _usemap; else if (_usemapExpr != null) return Util.evalString(_usemapExpr); else return null; }
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -