se.biltmore.tools.odttoapt.maven.plugin.models
Class APTListItem

java.lang.Object
  extended by se.biltmore.tools.odttoapt.maven.plugin.models.APT
      extended by se.biltmore.tools.odttoapt.maven.plugin.models.APTParent
          extended by se.biltmore.tools.odttoapt.maven.plugin.models.APTListItem
Direct Known Subclasses:
APTList

public class APTListItem
extends APTParent

This represents a list item. See APTList for more information. It is this list item that is responsible for the list bullet handling, and also all formatting for the list item. It can take APTParagraph and APTList children. For APTParagraph it gets its values unformatted and does its own formatting since the requirements of a normal paragraph and one in a list item are different. APTList children are passed along as is since they should contain already formatted APTParagraph children and sub lists.

See Also:
APTList

Field Summary
private  String bulletType
          The list bullet type.
private  String bulletTypeSpace
          Prefix for other than first line that matches the bullet type size.
private  String level
          The list level.
 
Constructor Summary
APTListItem()
          Creates a new APTListItem instance.
 
Method Summary
 void addChild(APT apt)
          Adds the specified APT object as a child to this APT object.
protected  String getBulletType()
          Returns the bullet type.
protected  String getLevel()
          Returns the level of this list.
 String getValue()
          Returns the value.
(package private)  void setBulletType(String bulletType)
          Sets the bullet type of the list.
(package private)  void setLevel(String level)
          Sets the level of this list.
 
Methods inherited from class se.biltmore.tools.odttoapt.maven.plugin.models.APTParent
getChildren, getLastChild, getUnformattedValue, hasChildren
 
Methods inherited from class se.biltmore.tools.odttoapt.maven.plugin.models.APT
done, formatText, getParent, hasValue, isAllowFormat, isLink, setAllowFormat, setLink, setParent, setValue, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

level

private String level
The list level.


bulletType

private String bulletType
The list bullet type.


bulletTypeSpace

private String bulletTypeSpace
Prefix for other than first line that matches the bullet type size.

Constructor Detail

APTListItem

public APTListItem()
Creates a new APTListItem instance.

Method Detail

setLevel

void setLevel(String level)
Sets the level of this list.

Parameters:
level -

getLevel

protected String getLevel()
Returns the level of this list.


setBulletType

void setBulletType(String bulletType)
Sets the bullet type of the list.

Parameters:
bulletType - The bullet type to set.

getBulletType

protected String getBulletType()
Returns the bullet type.


addChild

public void addChild(APT apt)
Adds the specified APT object as a child to this APT object.

Overrides:
addChild in class APTParent
Parameters:
apt - The APT object to add.

getValue

public String getValue()
Returns the value.

Overrides:
getValue in class APT


Copyright © 2009-2010 Biltmore Group AB. All Rights Reserved.