org.apache.jetspeed.portlets.layout
Class MultiColumnPortlet

java.lang.Object
  extended byjavax.portlet.GenericPortlet
      extended byorg.apache.portals.bridges.common.GenericServletPortlet
          extended byorg.apache.jetspeed.portlets.layout.LayoutPortlet
              extended byorg.apache.jetspeed.portlets.layout.MultiColumnPortlet
All Implemented Interfaces:
javax.portlet.Portlet, javax.portlet.PortletConfig

public class MultiColumnPortlet
extends LayoutPortlet


Field Summary
private  String colSizes
           
private  List columnSizes
           
protected static String DEFAULT_COLUMN_SIZES
           
protected static int DEFAULT_NUM_COLUMN
           
private  Map layouts
           
private  String layoutType
           
protected static org.apache.commons.logging.Log log
          Commons logging
private  int numColumns
           
protected static String PARAM_COLUMN_SIZES
           
protected static String PARAM_NUM_COLUMN
           
protected  org.apache.jetspeed.page.PageManager pm
           
private  String portletName
           
 
Fields inherited from class org.apache.jetspeed.portlets.layout.LayoutPortlet
decorationLocator, DECORATOR_TYPE, entityAccess, FRAGMENT_ATTR, FRAGMENT_PROCESSING_ERROR_PREFIX, generator, GENERIC_TEMPLATE_TYPE, HIDDEN, jptFactory, LAYOUT_ATTR, LAYOUT_TEMPLATE_TYPE, pageManager, registry, templateLocator
 
Fields inherited from class org.apache.portals.bridges.common.GenericServletPortlet
PARAM_ACTION_PAGE, PARAM_ALLOW_PREFERENCES, PARAM_CUSTOM_PAGE, PARAM_EDIT_PAGE, PARAM_HELP_PAGE, PARAM_MAX_PAGE, PARAM_VIEW_PAGE
 
Fields inherited from class javax.portlet.GenericPortlet
 
Constructor Summary
MultiColumnPortlet()
           
 
Method Summary
 void doView(javax.portlet.RenderRequest request, javax.portlet.RenderResponse response)
           
protected static List getCellClasses(String classlist)
           
protected static List getCellSizes(String sizeList)
          Parses the size config info and returns a list of size values for the current set
 void init(javax.portlet.PortletConfig config)
           
 void processAction(javax.portlet.ActionRequest request, javax.portlet.ActionResponse response)
           
 
Methods inherited from class org.apache.jetspeed.portlets.layout.LayoutPortlet
addPortletToPage, decorateAndInclude, doEdit, doHelp, getDecoration, getDecoratorLocatorDescriptor, getFragment, getJetspeedPowerTool, getMaximizedLayout, getRequestContext, getTemplate, getTemplateLocatorDescriptor, removeFragment
 
Methods inherited from class org.apache.portals.bridges.common.GenericServletPortlet
doCustom, getDefaultActionPage, getDefaultCustomPage, getDefaultEditPage, getDefaultHelpPage, getDefaultViewPage, processPreferencesAction, setDefaultActionPage, setDefaultCustomPage, setDefaultEditPage, setDefaultHelpPage, setDefaultViewPage
 
Methods inherited from class javax.portlet.GenericPortlet
destroy, doDispatch, getInitParameter, getInitParameterNames, getPortletConfig, getPortletContext, getPortletName, getResourceBundle, getTitle, init, render
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static final org.apache.commons.logging.Log log
Commons logging


PARAM_NUM_COLUMN

protected static final String PARAM_NUM_COLUMN
See Also:
Constant Field Values

DEFAULT_NUM_COLUMN

protected static final int DEFAULT_NUM_COLUMN
See Also:
Constant Field Values

PARAM_COLUMN_SIZES

protected static final String PARAM_COLUMN_SIZES
See Also:
Constant Field Values

DEFAULT_COLUMN_SIZES

protected static final String DEFAULT_COLUMN_SIZES
See Also:
Constant Field Values

numColumns

private int numColumns

colSizes

private String colSizes

portletName

private String portletName

layoutType

private String layoutType

columnSizes

private List columnSizes

pm

protected org.apache.jetspeed.page.PageManager pm

layouts

private Map layouts
Constructor Detail

MultiColumnPortlet

public MultiColumnPortlet()
Method Detail

init

public void init(javax.portlet.PortletConfig config)
          throws javax.portlet.PortletException
Specified by:
init in interface javax.portlet.Portlet
Overrides:
init in class LayoutPortlet
Throws:
javax.portlet.PortletException

doView

public void doView(javax.portlet.RenderRequest request,
                   javax.portlet.RenderResponse response)
            throws javax.portlet.PortletException,
                   IOException
Overrides:
doView in class LayoutPortlet
Throws:
javax.portlet.PortletException
IOException

getCellSizes

protected static List getCellSizes(String sizeList)
Parses the size config info and returns a list of size values for the current set

Parameters:
sizeList - java.lang.String a comma separated string a values
Returns:
a List of values

getCellClasses

protected static List getCellClasses(String classlist)

processAction

public void processAction(javax.portlet.ActionRequest request,
                          javax.portlet.ActionResponse response)
                   throws javax.portlet.PortletException,
                          IOException
Specified by:
processAction in interface javax.portlet.Portlet
Overrides:
processAction in class LayoutPortlet
Throws:
javax.portlet.PortletException
IOException


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