org.odftoolkit.simple.text.list
Class BulletDecorator

java.lang.Object
  extended by org.odftoolkit.simple.text.list.BulletDecorator
All Implemented Interfaces:
ListDecorator

public class BulletDecorator
extends Object
implements ListDecorator

BulletDecorator is an implementation of the ListDecorator interface, decorates a given List as bullet list. User can extend this class and realize their own list and list item style. For example, set a specifies list item with red color.

A BulletDecorator can be reused in the same Document.

Since:
0.4

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.odftoolkit.simple.text.list.ListDecorator
ListDecorator.ListType
 
Constructor Summary
BulletDecorator(Document doc)
          Constructor with Document.
 
Method Summary
 void decorateList(List list)
          Decorate the specifies list, of which style is set.
 void decorateListItem(ListItem item)
          Decorate the specifies item in a List, of which style is set.
 ListDecorator.ListType getListType()
          Get the ListType of this ListDecorator.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BulletDecorator

public BulletDecorator(Document doc)
Constructor with Document.

Parameters:
doc - the Document which this BulletDecorator will be used on.
Method Detail

decorateList

public void decorateList(List list)
Description copied from interface: ListDecorator
Decorate the specifies list, of which style is set.

Specified by:
decorateList in interface ListDecorator
Parameters:
list - the List is decorated.

decorateListItem

public void decorateListItem(ListItem item)
Description copied from interface: ListDecorator
Decorate the specifies item in a List, of which style is set.

Specified by:
decorateListItem in interface ListDecorator
Parameters:
item - the ListItem is decorated.

getListType

public ListDecorator.ListType getListType()
Description copied from interface: ListDecorator
Get the ListType of this ListDecorator.

Specified by:
getListType in interface ListDecorator
Returns:
the ListType of this ListDecorator.


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