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

📄 columnlayout.java

📁 GridSphere 门户 提供一个基于 portlet 的高级开放源代码门户。GridSphere 是在欧盟提供基金的 GridLab 项目下开发的
💻 JAVA
字号:
/* * @author <a href="mailto:wehrens@gridsphere.org">Oliver Wehrens</a> * @version $Id: ColumnLayout.java 4496 2006-02-08 20:27:04Z wehrens $ */package org.gridsphere.layout.view.brush;import org.gridsphere.layout.PortletComponent;import org.gridsphere.layout.view.BaseRender;import org.gridsphere.layout.view.Render;import org.gridsphere.portletcontainer.GridSphereEvent;public class ColumnLayout extends BaseRender implements Render {    public ColumnLayout() {    }    public StringBuffer doStart(GridSphereEvent event, PortletComponent comp) {        StringBuffer sb = new StringBuffer();        StringBuffer temp = new StringBuffer("\n<div class=\"gridsphere-layout-column\"");        if (!comp.getWidth().equals("")) {            sb.append(" width: ").append(comp.getWidth()).append(";");        }        if (!comp.getStyle().equals("")) {            sb.append(comp.getStyle());        }        if (sb.length() > 0) temp.append(" style=\"").append(sb).append("\"");        temp.append("> <!-- ========================== start column -->\n");        return temp;    }    public StringBuffer doEnd(GridSphereEvent event, PortletComponent comp) {        return new StringBuffer("\n</div> <!--  ========================== end column -->\n");    }}

⌨️ 快捷键说明

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