org.apache.cocoon.portal.layout.impl
Class CompositeLayoutImpl

java.lang.Object
  extended by org.apache.cocoon.portal.aspect.impl.AbstractAspectalizable
      extended by org.apache.cocoon.portal.factory.impl.AbstractProducible
          extended by org.apache.cocoon.portal.layout.AbstractLayout
              extended by org.apache.cocoon.portal.layout.impl.CompositeLayoutImpl
All Implemented Interfaces:
Cloneable, Aspectalizable, Producible, CompositeLayout, Layout, Parameters

public class CompositeLayoutImpl
extends AbstractLayout
implements CompositeLayout

A composite layout is a layout that contains other layouts.

Version:
CVS $Id: CompositeLayoutImpl.html 1304258 2012-03-23 10:09:27Z ilgrosso $
Author:
Carsten Ziegeler, Volker Schmitt

Field Summary
protected  String itemClassName
          The class name of the items
protected  List items
           
 
Fields inherited from class org.apache.cocoon.portal.layout.AbstractLayout
parameters, parent, rendererName
 
Fields inherited from class org.apache.cocoon.portal.factory.impl.AbstractProducible
description, id, name
 
Fields inherited from class org.apache.cocoon.portal.aspect.impl.AbstractAspectalizable
aspectDataHandler, persistentDatas
 
Constructor Summary
CompositeLayoutImpl()
          Constructor
 
Method Summary
 void addItem(int index, Item item)
          Add indexed item to the itemList.
 void addItem(Item item)
          Add Item to the ItemList.
protected  Object clone()
           
 Layout copy()
          Make a copy of this layout object and of all it's children.
 Item createNewItem()
          Create a new item.
 Item getItem(int index)
          Get Item from the ItemList.
 String getItemClassName()
           
 List getItems()
          Get the ItemList.
 int getSize()
          Get size of ItemList.
 void removeItem(Item item)
          Remove an item
 void setItemClassName(String value)
           
 
Methods inherited from class org.apache.cocoon.portal.layout.AbstractLayout
addParameter, getCastorParameters, getLayoutRendererName, getParameters, getParent, getRendererName, setLayoutRendererName, setParent
 
Methods inherited from class org.apache.cocoon.portal.factory.impl.AbstractProducible
getId, getName, initialize, setDescription, setId, setName
 
Methods inherited from class org.apache.cocoon.portal.aspect.impl.AbstractAspectalizable
addPersistentAspectData, getAspectData, getAspectDatas, getPersistentAspectData, isAspectSupported, setAspectData, setAspectDataHandler
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.cocoon.portal.layout.Layout
getLayoutRendererName, getParent, getRendererName, setParent
 
Methods inherited from interface org.apache.cocoon.portal.layout.Parameters
getParameters
 
Methods inherited from interface org.apache.cocoon.portal.factory.Producible
getId, getName, initialize, setDescription
 
Methods inherited from interface org.apache.cocoon.portal.aspect.Aspectalizable
addPersistentAspectData, getAspectData, getAspectDatas, getPersistentAspectData, isAspectSupported, setAspectData, setAspectDataHandler
 

Field Detail

items

protected List items

itemClassName

protected String itemClassName
The class name of the items

Constructor Detail

CompositeLayoutImpl

public CompositeLayoutImpl()
Constructor

Method Detail

addItem

public final void addItem(int index,
                          Item item)
Add indexed item to the itemList.

Specified by:
addItem in interface CompositeLayout
Parameters:
index - index for the position inside the list
item - item to add

addItem

public final void addItem(Item item)
Add Item to the ItemList.

Specified by:
addItem in interface CompositeLayout
Parameters:
item - item to add

getItem

public final Item getItem(int index)
Get Item from the ItemList.

Specified by:
getItem in interface CompositeLayout
Returns:
Item

getItems

public final List getItems()
Get the ItemList.

Specified by:
getItems in interface CompositeLayout
Returns:
items

getSize

public final int getSize()
Get size of ItemList.

Specified by:
getSize in interface CompositeLayout
Returns:
size

removeItem

public final void removeItem(Item item)
Description copied from interface: CompositeLayout
Remove an item

Specified by:
removeItem in interface CompositeLayout

createNewItem

public Item createNewItem()
Description copied from interface: CompositeLayout
Create a new item. This item is not added to the composite layout

Specified by:
createNewItem in interface CompositeLayout

getItemClassName

public String getItemClassName()
Specified by:
getItemClassName in interface CompositeLayout
Returns:
Returns the item class name.

setItemClassName

public void setItemClassName(String value)
Specified by:
setItemClassName in interface CompositeLayout
Parameters:
value - The item class name to set.

clone

protected Object clone()
                throws CloneNotSupportedException
Overrides:
clone in class AbstractLayout
Throws:
CloneNotSupportedException

copy

public Layout copy()
Description copied from interface: Layout
Make a copy of this layout object and of all it's children. This includes copies of items and copletinstancedatas.

Specified by:
copy in interface Layout
Overrides:
copy in class AbstractLayout


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