org.apache.jetspeed.modules.actions.controllers
Class MultiColumnControllerAction

java.lang.Object
  extended byorg.apache.turbine.modules.Assembler
      extended byorg.apache.turbine.modules.Action
          extended byorg.apache.turbine.modules.ActionEvent
              extended byorg.apache.turbine.util.velocity.VelocityActionEvent
                  extended byorg.apache.turbine.modules.actions.VelocityAction
                      extended byorg.apache.jetspeed.modules.actions.controllers.VelocityControllerAction
                          extended byorg.apache.jetspeed.modules.actions.controllers.MultiColumnControllerAction
Direct Known Subclasses:
XMultiColumnControllerAction

public class MultiColumnControllerAction
extends VelocityControllerAction

This action builds a context suitable for controllers handling grid positioned layout using PortletSet.Constraints

Version:
$Id: MultiColumnControllerAction.java,v 1.35 2005/05/12 18:15:59 morciuch Exp $
Author:
RaphaŽl Luta, Paul Spencer

Field Summary
 
Fields inherited from class org.apache.turbine.modules.ActionEvent
BUTTON, BUTTON_LENGTH, LENGTH, METHOD_NAME_LENGTH, METHOD_NAME_PREFIX
 
Constructor Summary
MultiColumnControllerAction()
           
 
Method Summary
protected static void addElement(IdentityElement element, java.util.List[] table, java.util.List work, int columnCount)
          Add an element to the "table" or "work" objects.
protected static java.util.List[] buildColumns(Portlets set, int colNum)
           
protected  void buildCustomizeContext(PortletController controller, org.apache.velocity.context.Context context, org.apache.turbine.util.RunData rundata)
          Subclasses must override this method to provide default behavior for the portlet action
protected  void buildNormalContext(PortletController controller, org.apache.velocity.context.Context context, org.apache.turbine.util.RunData rundata)
          Subclasses must override this method to provide default behavior for the portlet action
 void doCancel(org.apache.turbine.util.RunData data, org.apache.velocity.context.Context context)
          Cancel the current customizations.
 void doControl(org.apache.turbine.util.RunData data, org.apache.velocity.context.Context context)
           
 void doDelete(org.apache.turbine.util.RunData data, org.apache.velocity.context.Context context)
           
 void doDown(org.apache.turbine.util.RunData data, org.apache.velocity.context.Context context)
           
 void doLeft(org.apache.turbine.util.RunData data, org.apache.velocity.context.Context context)
           
 void doRight(org.apache.turbine.util.RunData data, org.apache.velocity.context.Context context)
           
 void doSave(org.apache.turbine.util.RunData data, org.apache.velocity.context.Context context)
           
 void doSecurity(org.apache.turbine.util.RunData data, org.apache.velocity.context.Context context)
           
 void doSkin(org.apache.turbine.util.RunData data, org.apache.velocity.context.Context context)
           
 void doUp(org.apache.turbine.util.RunData data, org.apache.velocity.context.Context context)
           
protected  void dumpColumns(java.util.List[] cols)
           
protected static java.util.List getCellClasses(java.lang.String classlist)
           
protected static java.util.List getCellSizes(java.lang.String sizeList)
          Parses the size config info and returns a list of size values for the current set
protected static void move(java.util.List[] cols, int oCol, int oRow, int nCol, int nRow)
           
protected static void setPosition(IdentityElement identityElement, int col, int row)
           
 
Methods inherited from class org.apache.jetspeed.modules.actions.controllers.VelocityControllerAction
doPerform, getContext, perform, setTemplate
 
Methods inherited from class org.apache.turbine.modules.actions.VelocityAction
doPerform
 
Methods inherited from class org.apache.turbine.util.velocity.VelocityActionEvent
executeEvents
 
Methods inherited from class org.apache.turbine.modules.ActionEvent
executeEvents, formatString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultiColumnControllerAction

public MultiColumnControllerAction()
Method Detail

buildNormalContext

protected void buildNormalContext(PortletController controller,
                                  org.apache.velocity.context.Context context,
                                  org.apache.turbine.util.RunData rundata)
Subclasses must override this method to provide default behavior for the portlet action

Specified by:
buildNormalContext in class VelocityControllerAction

buildCustomizeContext

protected void buildCustomizeContext(PortletController controller,
                                     org.apache.velocity.context.Context context,
                                     org.apache.turbine.util.RunData rundata)
Subclasses must override this method to provide default behavior for the portlet action

Overrides:
buildCustomizeContext in class VelocityControllerAction

doCancel

public void doCancel(org.apache.turbine.util.RunData data,
                     org.apache.velocity.context.Context context)
Cancel the current customizations. If this was the last customization on the stack, then return the user to the home page.

Overrides:
doCancel in class VelocityControllerAction

doSave

public void doSave(org.apache.turbine.util.RunData data,
                   org.apache.velocity.context.Context context)

doDelete

public void doDelete(org.apache.turbine.util.RunData data,
                     org.apache.velocity.context.Context context)

doLeft

public void doLeft(org.apache.turbine.util.RunData data,
                   org.apache.velocity.context.Context context)

doRight

public void doRight(org.apache.turbine.util.RunData data,
                    org.apache.velocity.context.Context context)

doUp

public void doUp(org.apache.turbine.util.RunData data,
                 org.apache.velocity.context.Context context)

doDown

public void doDown(org.apache.turbine.util.RunData data,
                   org.apache.velocity.context.Context context)

doControl

public void doControl(org.apache.turbine.util.RunData data,
                      org.apache.velocity.context.Context context)

doSkin

public void doSkin(org.apache.turbine.util.RunData data,
                   org.apache.velocity.context.Context context)

doSecurity

public void doSecurity(org.apache.turbine.util.RunData data,
                       org.apache.velocity.context.Context context)

setPosition

protected static void setPosition(IdentityElement identityElement,
                                  int col,
                                  int row)

move

protected static void move(java.util.List[] cols,
                           int oCol,
                           int oRow,
                           int nCol,
                           int nRow)

buildColumns

protected static java.util.List[] buildColumns(Portlets set,
                                               int colNum)

getCellSizes

protected static java.util.List getCellSizes(java.lang.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 java.util.List getCellClasses(java.lang.String classlist)

addElement

protected static void addElement(IdentityElement element,
                                 java.util.List[] table,
                                 java.util.List work,
                                 int columnCount)
Add an element to the "table" or "work" objects. If the element is unconstrained, and the position is within the number of columns, then the element is added to "table". Othewise the element is added to "work"

Parameters:
element - to add
table - of positioned elements
work - list of un-positioned elements
columnCount - Number of colum

dumpColumns

protected void dumpColumns(java.util.List[] cols)


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