📄 abstracthtmlcomponenttag.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>AbstractHtmlComponentTag</strong> is a convenience base class that * implements attributes needed for any concrete HTML jsp tag. * * @author Andreas Kuhrwahl * */public abstract class AbstractHtmlComponentTag extends AbstractUIComponentTag { /** The direction of language attribute. */ private String dir; /** The language Attribute. */ private String lang; /** The css style attribute. */ private String style; /** The css style class attribute. */ private String styleClass; /** The title attribute. */ private String title; /** * {@inheritDoc} */ public void release() { super.release(); this.dir = null; this.lang = null; this.style = null; this.styleClass = null; this.title = null; } /** * {@inheritDoc} */ protected void setProperties(final UIComponent component) { super.setProperties(component); setStringProperty(component, "dir", this.dir); setStringProperty(component, "lang", this.lang); setStringProperty(component, "style", this.style); setStringProperty(component, "title", this.title); setStringProperty(component, "styleClass", this.styleClass); } /** * Returns the css style. * * @return The css style attribute */ public final String getStyle() { return style; } /** * Sets the css style attribute. * * @param style * The css style attribute */ public final void setStyle(final String style) { this.style = style; } /** * Returns the css style class. * * @return The css style class attribute */ public final String getStyleClass() { return styleClass; } /** * Sets the css style class attribute. * * @param styleClass * The css style class attribute */ public final void setStyleClass(final String styleClass) { this.styleClass = styleClass; } /** * Returns the title. * * @return The title attribute */ public final String getTitle() { return title; } /** * Sets the title. * * @param title * The title attribute */ public final void setTitle(final String title) { this.title = title; } /** * Returns the language direction. * * @return The language direction */ public final String getDir() { return dir; } /** * Sets the language direction. * * @param dir * The language direction */ public final void setDir(final String dir) { this.dir = dir; } /** * Returns the language. * * @return The language */ public final String getLang() { return lang; } /** * Sets the language. * * @param lang * The language */ public final void setLang(final String lang) { this.lang = lang; }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -