org.odftoolkit.simple.text.list
Class AbstractListContainer

java.lang.Object
  extended by org.odftoolkit.simple.text.list.AbstractListContainer
All Implemented Interfaces:
ListContainer

public abstract class AbstractListContainer
extends Object
implements ListContainer

AbstractListContainer is an abstract implementation of the ListContainer interface, with a default implementation for every method defined in ListContainer , except getListContainerElement(). A subclass must implement the abstract method getListContainerElement().

Since:
0.4

Constructor Summary
AbstractListContainer()
           
 
Method Summary
 List addList()
          Add a new List to this container.
 List addList(ListDecorator decorator)
          Add a List with specified ListDecorator to this container.
 void clearList()
          Remove all Lists from this container.
 Iterator<List> getListIterator()
          Return an Iterator of the Lists in this ListContainer.
 boolean removeList(List list)
          Remove the existing List from this container.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.odftoolkit.simple.text.list.ListContainer
getListContainerElement
 

Constructor Detail

AbstractListContainer

public AbstractListContainer()
Method Detail

addList

public List addList()
Description copied from interface: ListContainer
Add a new List to this container.

Specified by:
addList in interface ListContainer
Returns:
added list.

addList

public List addList(ListDecorator decorator)
Description copied from interface: ListContainer
Add a List with specified ListDecorator to this container.

Specified by:
addList in interface ListContainer
Parameters:
decorator - the specified ListDecorator
Returns:
added list.

clearList

public void clearList()
Description copied from interface: ListContainer
Remove all Lists from this container.

Specified by:
clearList in interface ListContainer

getListIterator

public Iterator<List> getListIterator()
Description copied from interface: ListContainer
Return an Iterator of the Lists in this ListContainer. The Lists are iterated in the same order that they occur in the ListContainer.

Specified by:
getListIterator in interface ListContainer
Returns:
an Iterator of the Lists in this ListContainer
See Also:
Iterator

removeList

public boolean removeList(List list)
Description copied from interface: ListContainer
Remove the existing List from this container.

Specified by:
removeList in interface ListContainer
Returns:
true, if the container contains this List.


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