WBTruncateFormatter Class Reference

Inherits java::text::Format.

Collaboration diagram for WBTruncateFormatter:

Collaboration graph
base refererrect $struct___string.html 51,13 115,37
[legend]

List of all members.

Public Member Functions

StringBuffer format (Object object, StringBuffer r, FieldPosition d)
Object parseObject (String anObject, ParsePosition o)
void setTruncateLength (int len)
int truncateLength ()
 WBTruncateFormatter (int length, String append)

Private Attributes

String appender = null
int truncateLength = 0


Detailed Description

WBTruncateFormatter is a formatter that truncates a string. Unlike the truncation performed with the WBComboFormatter, the truncation will split words.

Constructor & Destructor Documentation

WBTruncateFormatter ( int  length,
String  append 
)

Creates a new WBTruncateFormatter.

Parameters:
length Length to truncate to
append A String appended to the truncated String should the String actually be truncated.


Member Function Documentation

StringBuffer format ( Object  object,
StringBuffer  r,
FieldPosition  d 
)

Formats the string.

Parameters:
object String to format
r StringBuffer
d FieldPosition
Exceptions:
java.lang.IllegalArgumentException Thrown if object is not a String.

Object parseObject ( String  anObject,
ParsePosition  o 
)

void setTruncateLength ( int  len  ) 

int truncateLength (  ) 


Member Data Documentation

String appender = null [private]

int truncateLength = 0 [private]


The documentation for this class was generated from the following file:

Generated on Sat May 26 06:42:12 2012 for Project Wonder by  doxygen 1.5.8