org.apache.cocoon.portal.tools.copletManagement
Class LayoutActions

java.lang.Object
  extended by org.apache.cocoon.portal.tools.copletManagement.LayoutActions

public class LayoutActions
extends Object

Version:
CVS $Id: LayoutActions.html 1304258 2012-03-23 10:09:27Z ilgrosso $

Field Summary
static int line
           
 
Constructor Summary
LayoutActions(Layout layout, LayoutFactory lf, CopletFactory cf, ProfileManager pm)
           
 
Method Summary
 void add(String parent, String type)
          Adds the object to the layout
 void addTab(String parent, String name)
          Adds a new Tab
 boolean del(String id)
          Delets the Object with the id in the layout
 CopletInstanceData getCopletInstanceData(String id)
           
 Collection getSelectedCoplets(Repeater r, Collection lets, String parent)
           
 boolean move(String id, boolean moveUp)
          Moves the object one position up or down
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

line

public static int line
Constructor Detail

LayoutActions

public LayoutActions(Layout layout,
                     LayoutFactory lf,
                     CopletFactory cf,
                     ProfileManager pm)
Method Detail

del

public boolean del(String id)
Delets the Object with the id in the layout

Parameters:
id -
Returns:
true if the object could be deleted.

move

public boolean move(String id,
                    boolean moveUp)
Moves the object one position up or down

Parameters:
id - id of the element
moveUp - set 'true', to move the element up ('false' to move it down)
Returns:
true if the object could be moved.

add

public void add(String parent,
                String type)
Adds the object to the layout

Parameters:
parent - Object to which the new Object should be added
type - Type of the Object (row, col ...)

addTab

public void addTab(String parent,
                   String name)
Adds a new Tab

Parameters:
parent - Parent Object
name - Name of the Tab

getSelectedCoplets

public Collection getSelectedCoplets(Repeater r,
                                     Collection lets,
                                     String parent)

getCopletInstanceData

public CopletInstanceData getCopletInstanceData(String id)


Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.