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

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.RowColumnControllerAction
Direct Known Subclasses:
PanedControllerAction

public class RowColumnControllerAction
extends VelocityControllerAction

This action builds a context suitable for controllers handlings simple sorted lists of portlets

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
RowColumnControllerAction()
           
 
Method Summary
protected  void buildCustomizeContext(PortletController controller, org.apache.velocity.context.Context context, org.apache.turbine.util.RunData rundata)
          Adds a "pane" portlet object in the context which represents the currently selected pane
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 doApply(org.apache.turbine.util.RunData data, org.apache.velocity.context.Context context)
           
 void doCancel(org.apache.turbine.util.RunData data, org.apache.velocity.context.Context context)
          Cancel the current customizations.
 void doDelete(org.apache.turbine.util.RunData data, org.apache.velocity.context.Context context)
          Remove a pane from the current set This method expects the following parameters - paneid: the id a the pane to modify within the current profile - position: the position of the component to delete
 void doDown(org.apache.turbine.util.RunData data, org.apache.velocity.context.Context context)
          Move a component down within the pane This method expects the following parameters - paneid: the id a the pane to modify within the current profile - position: move the component which occupies this position
 void doMove(org.apache.turbine.util.RunData data, org.apache.velocity.context.Context context, boolean moveUp)
          Move a component within the pane This method expects the following parameters - paneid: the id a the pane to modify within the current profile - position: move the component which occupies this position The moveUp boolean determines the direction of the move
 void doSave(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)
          Move a component up within the pane This method expects the following parameters - paneid: the id a the pane to modify within the current profile - position: move the component which occupies this position
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
 
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

RowColumnControllerAction

public RowColumnControllerAction()
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

getCellSizes

public 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

Returns:
a List of values

buildCustomizeContext

protected void buildCustomizeContext(PortletController controller,
                                     org.apache.velocity.context.Context context,
                                     org.apache.turbine.util.RunData rundata)
Adds a "pane" portlet object in the context which represents the currently selected pane

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)

doApply

public void doApply(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)
              throws java.lang.Exception
Remove a pane from the current set This method expects the following parameters - paneid: the id a the pane to modify within the current profile - position: the position of the component to delete

Throws:
java.lang.Exception

doUp

public void doUp(org.apache.turbine.util.RunData data,
                 org.apache.velocity.context.Context context)
          throws java.lang.Exception
Move a component up within the pane This method expects the following parameters - paneid: the id a the pane to modify within the current profile - position: move the component which occupies this position

Throws:
java.lang.Exception

doDown

public void doDown(org.apache.turbine.util.RunData data,
                   org.apache.velocity.context.Context context)
            throws java.lang.Exception
Move a component down within the pane This method expects the following parameters - paneid: the id a the pane to modify within the current profile - position: move the component which occupies this position

Throws:
java.lang.Exception

doMove

public void doMove(org.apache.turbine.util.RunData data,
                   org.apache.velocity.context.Context context,
                   boolean moveUp)
            throws java.lang.Exception
Move a component within the pane This method expects the following parameters - paneid: the id a the pane to modify within the current profile - position: move the component which occupies this position The moveUp boolean determines the direction of the move

Throws:
java.lang.Exception


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