org.apache.jetspeed.portlets.layout
Class MultiColumnPortlet

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

public class MultiColumnPortlet
extends LayoutPortlet


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.jetspeed.portlets.layout.LayoutPortlet
LayoutPortlet.CachedTemplate
 
Field Summary
private  String columnSizes
           
protected  org.apache.jetspeed.cache.JetspeedContentCache decoratorCache
           
protected  org.apache.jetspeed.decoration.DecorationFactory decorators
           
protected static int DEFAULT_NUM_COLUMN
           
protected static String DEFAULT_ONE_COLUMN_SIZES
           
protected static String DEFAULT_THREE_COLUMN_SIZES
           
protected static String DEFAULT_TWO_COLUMN_SIZES
           
protected  org.apache.jetspeed.desktop.JetspeedDesktop desktop
           
private  String editorType
           
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
           
private  String portletName
           
 
Fields inherited from class org.apache.jetspeed.portlets.layout.LayoutPortlet
decorationLocator, DECORATOR_TYPE, DEFAULT_TEMPLATE_EXT, DEFAULT_TEMPLATE_TYPE, entityAccess, FRAGMENT_ATTR, FRAGMENT_PROCESSING_ERROR_PREFIX, GENERIC_TEMPLATE_TYPE, HIDDEN, jptFactory, LAYOUT_ATTR, LAYOUT_TEMPLATE_TYPE, pageManager, PARAM_SOLO_PAGE, registry, TEMPLATE_EXTENSION_KEY, TEMPLATE_TYPE_KEY, templateLocator, windowAccess
 
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
 
Constructor Summary
MultiColumnPortlet()
           
 
Method Summary
private  void applyStyle(org.apache.jetspeed.om.folder.Folder f, String theme, String theme_type)
           
protected  void clearLayoutAttributes(javax.portlet.ActionRequest request)
           
 void doView(javax.portlet.RenderRequest request, javax.portlet.RenderResponse response)
           
protected  String getEscapedName(String pageName)
           
protected  int getFragmentNestingLevel(org.apache.jetspeed.om.page.Fragment parent, int level, String fragmentId)
           
protected  int getFragmentNestingLevel(org.apache.jetspeed.om.page.Page page, String fragmentId)
           
 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, addPortletToPage, decorateAndInclude, doEdit, doHelp, getConfiguration, getDecoration, getDecoratorLocatorDescriptor, getFragment, getJetspeedPowerTool, getMaximizedLayout, getRequestContext, getTemplate, getTemplateLocatorDescriptor, removeFragment, 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_ONE_COLUMN_SIZES

protected static final String DEFAULT_ONE_COLUMN_SIZES
See Also:
Constant Field Values

DEFAULT_TWO_COLUMN_SIZES

protected static final String DEFAULT_TWO_COLUMN_SIZES
See Also:
Constant Field Values

DEFAULT_THREE_COLUMN_SIZES

protected static final String DEFAULT_THREE_COLUMN_SIZES
See Also:
Constant Field Values

numColumns

private int numColumns

columnSizes

private String columnSizes

portletName

private String portletName

layoutType

private String layoutType

editorType

private String editorType

decorators

protected org.apache.jetspeed.decoration.DecorationFactory decorators

desktop

protected org.apache.jetspeed.desktop.JetspeedDesktop desktop

decoratorCache

protected org.apache.jetspeed.cache.JetspeedContentCache decoratorCache
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

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

clearLayoutAttributes

protected void clearLayoutAttributes(javax.portlet.ActionRequest request)

getFragmentNestingLevel

protected int getFragmentNestingLevel(org.apache.jetspeed.om.page.Page page,
                                      String fragmentId)

getFragmentNestingLevel

protected int getFragmentNestingLevel(org.apache.jetspeed.om.page.Fragment parent,
                                      int level,
                                      String fragmentId)

getEscapedName

protected String getEscapedName(String pageName)

applyStyle

private void applyStyle(org.apache.jetspeed.om.folder.Folder f,
                        String theme,
                        String theme_type)
                 throws org.apache.jetspeed.page.FolderNotUpdatedException,
                        org.apache.jetspeed.page.document.NodeException
Throws:
org.apache.jetspeed.page.FolderNotUpdatedException
org.apache.jetspeed.page.document.NodeException


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