org.speakright.core
Class DefaultItemFormatter

java.lang.Object
  extended by org.speakright.core.DefaultItemFormatter
All Implemented Interfaces:
java.io.Serializable, IItemFormatter

public class DefaultItemFormatter
extends java.lang.Object
implements IItemFormatter

The default item formatter simply calls toString of the given model item. Therefore model item's should override toString, unless they always supply their own formatter.

Author:
IanRaeLaptop
See Also:
Serialized Form

Constructor Summary
DefaultItemFormatter(IModelItem item)
           
 
Method Summary
 java.lang.String formatItem()
          Return a prompt string that says the value of a model item.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultItemFormatter

public DefaultItemFormatter(IModelItem item)
Method Detail

formatItem

public java.lang.String formatItem()
Description copied from interface: IItemFormatter
Return a prompt string that says the value of a model item.

Specified by:
formatItem in interface IItemFormatter
Returns: