stylesheettag.java

来自「一个java写的加密算法」· Java 代码 · 共 50 行

JAVA
50
字号
/* * Copyright 2004-2005 Sun Microsystems, Inc.  All rights reserved. * Use is subject to license terms. */package components.taglib;import javax.faces.component.UIComponent;import javax.faces.webapp.UIComponentTag;/** * This class is the tag handler that evaluates the <code>stylesheet</code> * custom tag. */public class StylesheetTag extends UIComponentTag {    private String path = null;    public void setPath(String path) {        this.path = path;    }    public String getComponentType() {        return ("javax.faces.Output");    }    public String getRendererType() {        return "Stylesheet";    }    protected void setProperties(UIComponent component) {        super.setProperties(component);        if (path != null) {            component.getAttributes().put("path", path);        }    }}

⌨️ 快捷键说明

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