📄 abstracthtmleventhandlercomponenttag.java
字号:
/* * Copyright 2002-2004 the original author or authors. * * 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 de.mindmatters.faces.taglib.jsp;import javax.faces.component.UIComponent;/** * <strong>AbstractHtmlEventHandlerComponentTag</strong> is a convenience base * class that implements attributes needed for any concrete HTML event handler * jsp tag. * * @author Andreas Kuhrwahl * */public abstract class AbstractHtmlEventHandlerComponentTag extends AbstractHtmlComponentTag { /** The onclick attribute. */ private String onclick; /** The ondblclick attribute. */ private String ondblclick; /** The onkeydown attribute. */ private String onkeydown; /** The onkeypress attribute. */ private String onkeypress; /** The onkeyup attribute. */ private String onkeyup; /** The onmousedown attribute. */ private String onmousedown; /** The onmousemove attribute. */ private String onmousemove; /** The onmouseout attribute. */ private String onmouseout; /** The onmouseover attribute. */ private String onmouseover; /** The onmouseup attribute. */ private String onmouseup; /** * {@inheritDoc} */ public void release() { super.release(); this.onclick = null; this.ondblclick = null; this.onkeydown = null; this.onkeypress = null; this.onkeyup = null; this.onmousedown = null; this.onmousemove = null; this.onmouseout = null; this.onmouseover = null; this.onmouseup = null; } /** * {@inheritDoc} */ protected void setProperties(final UIComponent component) { super.setProperties(component); setStringProperty(component, "onclick", this.onclick); setStringProperty(component, "ondblclick", this.ondblclick); setStringProperty(component, "onmousedown", this.onmousedown); setStringProperty(component, "onmouseup", this.onmouseup); setStringProperty(component, "onmouseover", this.onmouseover); setStringProperty(component, "onmousemove", this.onmousemove); setStringProperty(component, "onmouseout", this.onmouseout); setStringProperty(component, "onkeypress", this.onkeypress); setStringProperty(component, "onkeydown", this.onkeydown); setStringProperty(component, "onkeyup", this.onkeyup); } /** * Returns the onclick value. * * @return The onclick value */ public final String getOnclick() { return onclick; } /** * Sets the onclick attribute. * * @param onclick * The onclick attribute */ public final void setOnclick(final String onclick) { this.onclick = onclick; } /** * Returns the ondblclick value. * * @return The ondblclick value */ public final String getOndblclick() { return ondblclick; } /** * Sets the ondblclick attribute. * * @param ondblclick * The ondblclick attribute */ public final void setOndblclick(final String ondblclick) { this.ondblclick = ondblclick; } /** * Returns the onkeydown value. * * @return The onkeydown value */ public final String getOnkeydown() { return onkeydown; } /** * Sets the onkeydown attribute. * * @param onkeydown * The onkeydown attribute */ public final void setOnkeydown(final String onkeydown) { this.onkeydown = onkeydown; } /** * Returns the onkeypress value. * * @return The onkeypress value */ public final String getOnkeypress() { return onkeypress; } /** * Sets the onkeypress attribute. * * @param onkeypress * The onkeypress attribute */ public final void setOnkeypress(final String onkeypress) { this.onkeypress = onkeypress; } /** * Returns the onkeyup value. * * @return The onkeyup value */ public final String getOnkeyup() { return onkeyup; } /** * Sets the onkeyup attribute. * * @param onkeyup * The onkeyup attribute */ public final void setOnkeyup(final String onkeyup) { this.onkeyup = onkeyup; } /** * Returns the onmousedown value. * * @return The onmousedown value */ public final String getOnmousedown() { return onmousedown; } /** * Sets the onmousedown attribute. * * @param onmousedown * The onmousedown attribute */ public final void setOnmousedown(final String onmousedown) { this.onmousedown = onmousedown; } /** * Returns the onmousemove value. * * @return The onmousemove value */ public final String getOnmousemove() { return onmousemove; } /** * Sets the onmousemove attribute. * * @param onmousemove * The onmousemove attribute */ public final void setOnmousemove(final String onmousemove) { this.onmousemove = onmousemove; } /** * Returns the onmouseout value. * * @return The onmouseout value */ public final String getOnmouseout() { return onmouseout; } /** * Sets the onmouseout attribute. * * @param onmouseout * The onmouseout attribute */ public final void setOnmouseout(final String onmouseout) { this.onmouseout = onmouseout; } /** * Returns the onmouseover value. * * @return The onmouseover value */ public final String getOnmouseover() { return onmouseover; } /** * Sets the onmouseover attribute. * * @param onmouseover * The onmouseover attribute */ public final void setOnmouseover(final String onmouseover) { this.onmouseover = onmouseover; } /** * Returns the onmouseup value. * * @return The onmouseup value */ public final String getOnmouseup() { return onmouseup; } /** * Sets the onmouseup attribute. * * @param onmouseup * The onmouseup attribute */ public final void setOnmouseup(final String onmouseup) { this.onmouseup = onmouseup; }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -