portletcolumnlayout.java

来自「GridSphere 门户 提供一个基于 portlet 的高级开放源代码门户。」· Java 代码 · 共 61 行

JAVA
61
字号
/* * @author <a href="mailto:oliver.wehrens@aei.mpg.de">Oliver Wehrens</a> * @version $Id: PortletColumnLayout.java 4986 2006-08-04 09:54:38Z novotny $ */package org.gridsphere.layout;import org.gridsphere.layout.view.Render;import org.gridsphere.portletcontainer.GridSphereEvent;import javax.portlet.PortletRequest;import java.io.Serializable;import java.util.List;/** * The <code>PortletColumnLayout</code> is a concrete implementation of the <code>PortletFrameLayout</code> * that organizes portlets into a column. */public class PortletColumnLayout extends PortletFrameLayout implements Cloneable, Serializable {    private transient Render colView = null;    public PortletColumnLayout() {    }    public List<ComponentIdentifier> init(PortletRequest req, List<ComponentIdentifier> list) {        list = super.init(req, list);        colView = (Render) getRenderClass(req, "ColumnLayout");        return list;    }    public void doRender(GridSphereEvent event) {        //System.err.println("\t\tin render ColumnLayout");        StringBuffer col = new StringBuffer();        // starting of the gridtable        if (!components.isEmpty()) {            col.append(colView.doStart(event, this));            PortletComponent p;            for (int i = 0; i < components.size(); i++) {                p = (PortletComponent) components.get(i);                col.append(colView.doStartBorder(event, this));                if (p.getVisible()) {                    p.doRender(event);                    col.append(p.getBufferedOutput(event.getRenderRequest()));                }                col.append(colView.doEndBorder(event, this));            }            col.append(colView.doEnd(event, this));        }        setBufferedOutput(event.getRenderRequest(), col);    }    public Object clone() throws CloneNotSupportedException {        return (PortletColumnLayout) super.clone();    }}

⌨️ 快捷键说明

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