⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 portletlinktag.java

📁 GridSphere 门户 提供一个基于 portlet 的高级开放源代码门户。GridSphere 是在欧盟提供基金的 GridLab 项目下开发的
💻 JAVA
字号:
package org.gridsphere.provider.portletui.tags;import org.gridsphere.provider.portletui.beans.PortletBean;import javax.servlet.jsp.JspException;import javax.servlet.jsp.JspWriter;/** * The <code>TableRowTag</code> represents a table row element that is conatined within a <code>TableTag</code> * and itself may contain <code>TableCellTag</code>s */public class PortletLinkTag extends DialogTag {    protected String theme = "default";    protected String renderKit = "brush";    protected String portletId = "";    public String getTheme() {        return theme;    }    public void setTheme(String theme) {        this.theme = theme;    }    public String getRenderKit() {        return renderKit;    }    public void setRenderKit(String renderKit) {        this.renderKit = renderKit;    }    public String getPortletId() {        return portletId;    }    public void setPortletId(String portletId) {        this.portletId = portletId;    }    public int doStartTag() throws JspException {        isLink = true;        PortletBean portlet = new PortletBean();              setProperties(portlet);        portlet.setRenderKit(renderKit);        portlet.setTheme(theme);        portlet.setPortletId(portletId);        JspWriter out;        try {            out = pageContext.getOut();            out.print(portlet.toStartString());        } catch (Exception e) {            throw new JspException(e);        }        return SKIP_BODY;    }    public int doEndTag() throws JspException {        return EVAL_PAGE;    }}

⌨️ 快捷键说明

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