coreattributes.java

来自「intra_mart是日本NDD公司开发的著名企业应用解决方案中间件。集成了J2」· Java 代码 · 共 114 行

JAVA
114
字号
/*
 * CoreAttributes.java
 *
 * Created on 2002/01/28, 15:15
 */

package jp.co.intra_mart.framework.base.web.tag.attribute;

import java.io.IOException;

/**
 * 僐傾懏惈偱偡丅
 *
 * @author INTRAMART
 * @version 1.0
 */
public class CoreAttributes extends GenericAttributes {

    /**
     * class
     */
    private String tagClass;

    /**
     * style
     */
    private String style;

    /**
     * title
     */
    private String title;

    /**
     * CoreAttributes傪怴婯偵惗惉偟傑偡丅
     */
    public CoreAttributes() {
        super();
        setTagClass(null);
        setStyle(null);
        setTitle(null);
    }

    /**
     * 懏惈<CODE>class</CODE>偺抣傪庢摼偟傑偡丅
     *
     * @return class
     */
    public String getTagClass() {
        return this.tagClass;
    }

    /**
     * 懏惈<CODE>class</CODE>偺抣傪愝掕偟傑偡丅
     *
     * @param tagClass class
     */
    public void setTagClass(String tagClass) {
        this.tagClass = tagClass;
    }

    /**
     * 懏惈<CODE>style</CODE>偺抣傪庢摼偟傑偡丅
     *
     * @return style
     */
    public String getStyle() {
        return this.style;
    }

    /**
     * 懏惈<CODE>style</CODE>偺抣傪愝掕偟傑偡丅
     *
     * @param style style
     */
    public void setStyle(String style) {
        this.style = style;
    }

    /**
     * 懏惈<CODE>title</CODE>偺抣傪庢摼偟傑偡丅
     *
     * @return title
     */
    public String getTitle() {
        return this.title;
    }

    /**
     * 懏惈<CODE>title</CODE>偺抣傪愝掕偟傑偡丅
     *
     * @param title title
     */
    public void setTitle(String title) {
        this.title = title;
    }

    /**
     * 懏惈偺撪梕傪昞帵偟傑偡丅
     *
     * @throws IOException 弌椡拞偵椺奜偑敪惗
     */
    public void printAttributes() throws IOException {
        // class
        getTagWriter().printAttribute("class", getTagClass());

        // style
        getTagWriter().printAttribute("style", getStyle());

        // title
        getTagWriter().printAttribute("title", getTitle());
    }
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?