de.matthiasmann.twl.textarea
Class OrderedListType

java.lang.Object
  extended by de.matthiasmann.twl.textarea.OrderedListType

public class OrderedListType
extends java.lang.Object

Number formatting for ordered lists


Field Summary
protected  java.lang.String characterList
           
static OrderedListType DECIMAL
           
 
Constructor Summary
OrderedListType()
          Creates a new OrderedListType which just uses Integer.toString(int)
OrderedListType(java.lang.String characterList)
          Creates a new OrderedListType which uses TextUtil.toCharListNumber(int, java.lang.String) for positive numbers and Integer.toString(int) for the rest.
 
Method Summary
 java.lang.String format(int nr)
          Convert the number into a String
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DECIMAL

public static final OrderedListType DECIMAL

characterList

protected final java.lang.String characterList
Constructor Detail

OrderedListType

public OrderedListType()
Creates a new OrderedListType which just uses Integer.toString(int)


OrderedListType

public OrderedListType(java.lang.String characterList)
Creates a new OrderedListType which uses TextUtil.toCharListNumber(int, java.lang.String) for positive numbers and Integer.toString(int) for the rest.

Parameters:
characterList - the character list
Method Detail

format

public java.lang.String format(int nr)
Convert the number into a String

Parameters:
nr - the number
Returns:
the String which represents the number