org.apache.jetspeed.portal.controllers
Class GridPortletController

java.lang.Object
  extended byorg.apache.jetspeed.portal.controllers.AbstractPortletController
      extended byorg.apache.jetspeed.portal.controllers.GridPortletController
All Implemented Interfaces:
PortletController, java.io.Serializable

public class GridPortletController
extends AbstractPortletController

Layouts the portlets in a grid and apply the following constraints

This controller expects the following parameters in its configuration file :

The controller expects each portlet to have a row number and a column number layout information. If this information is not found, put the Portlet in the first cell of the table

Version:
$Id: GridPortletController.java,v 1.18 2005/03/21 18:21:41 sgala Exp $
Author:
RaphaŽl Luta
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.apache.jetspeed.portal.controllers.AbstractPortletController
DEFAULT_PADDING
 
Constructor Summary
GridPortletController()
           
 
Method Summary
 int getColumn()
          Get the number of columns used in this controller
 java.util.Enumeration getColumnsWidth()
           
 java.lang.String getColumnWidth(int pos)
           
 org.apache.ecs.ConcreteElement getContent(org.apache.turbine.util.RunData rundata)
          Get the content for this PortletController
 int getRow()
          Get the number of rows used by this controll
 java.lang.String getRowHeight(int pos)
           
 java.util.Enumeration getRowsHeight()
           
 void init()
          Initialize this PortletController.
 void setColumn(int col)
          Set the number of columns used in this controller
 void setColumnsWidth(java.util.Vector widths)
           
 void setRow(int row)
          Set the number of rows used by this controller
 void setRowsHeight(java.util.Vector heights)
           
 
Methods inherited from class org.apache.jetspeed.portal.controllers.AbstractPortletController
getConfig, getConstraints, getContent, getHTMLContent, getPadding, getPortlets, getWidth, getWMLContent, setConfig, setPadding, setPadding, setPortlets, setWidth, supportsType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GridPortletController

public GridPortletController()
Method Detail

getContent

public org.apache.ecs.ConcreteElement getContent(org.apache.turbine.util.RunData rundata)
Get the content for this PortletController

Specified by:
getContent in interface PortletController
Overrides:
getContent in class AbstractPortletController

init

public void init()
Description copied from interface: PortletController
Initialize this PortletController. This method must be called after the Config object has been set and whenever it is changed

Specified by:
init in interface PortletController
Overrides:
init in class AbstractPortletController

setColumn

public void setColumn(int col)
Set the number of columns used in this controller


getColumn

public int getColumn()
Get the number of columns used in this controller


setRow

public void setRow(int row)
Set the number of rows used by this controller


getRow

public int getRow()
Get the number of rows used by this controll


setColumnsWidth

public void setColumnsWidth(java.util.Vector widths)

getColumnsWidth

public java.util.Enumeration getColumnsWidth()

getColumnWidth

public java.lang.String getColumnWidth(int pos)

setRowsHeight

public void setRowsHeight(java.util.Vector heights)

getRowsHeight

public java.util.Enumeration getRowsHeight()

getRowHeight

public java.lang.String getRowHeight(int pos)


Copyright © 2000-2005 Apache Software Foundation. All Rights Reserved.