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

📄 groupbean.java

📁 GridSphere 门户 提供一个基于 portlet 的高级开放源代码门户。GridSphere 是在欧盟提供基金的 GridLab 项目下开发的
💻 JAVA
字号:
package org.gridsphere.provider.portletui.beans;/** * The <code>GroupBean</code> provides a way to visually group elements with an optional label. */public class GroupBean extends BaseComponentBean implements TagBean {    private String label = null;    private String height = null;    private String width = null;    public String getLabel() {        return label;    }    public void setLabel(String label) {        this.label = label;    }    public String getHeight() {        return height;    }    public void setHeight(String height) {        this.height = height;    }    public String getWidth() {        return width;    }    public void setWidth(String width) {        this.width = width;    }    public String toStartString() {        if (width != null) this.addCssStyle(" width:" + width + "; ");        if (height != null) this.addCssStyle(" height:" + height + "; ");        StringBuffer sb = new StringBuffer();        sb.append("<fieldset");        sb.append(getFormattedCss());        sb.append(">");        if (this.label != null) {            sb.append("<legend>");            sb.append(label);            sb.append("</legend>");        }        return sb.toString();    }    public String toEndString() {        return "</fieldset>";    }}

⌨️ 快捷键说明

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