WBComboFormatter Class Reference

Inherits java::text::Format.

Collaboration diagram for WBComboFormatter:

Collaboration graph
[legend]

List of all members.

Public Member Functions

StringBuffer format (Object object, StringBuffer r, FieldPosition d)
Object parseObject (String anObject, ParsePosition o)
void setStripHTML (boolean bool)
void setTextareaToHTML (boolean bool)
void setTruncate (boolean bool)
void setTruncateLength (int len)
boolean stripHTML ()
boolean textareaToHTML ()
boolean truncate ()
int truncateLength ()
 WBComboFormatter (boolean t, boolean s, boolean h)

Static Public Attributes

static final int DEFAULT_LENGTH = 250

Private Attributes

boolean stripHTML
boolean textareaToHTML
boolean truncate
int truncateLength = DEFAULT_LENGTH


Detailed Description

WBComboFormatter is a formatter that can truncate a string, strip out the HTML in a string,
and convert a textarea string to HTML. WBComboFormatter can format the string useing any combination.
The textarea to HTML takes a String and converts the carriage returns to breaks and tabs to five non-break spaces.

Constructor & Destructor Documentation

WBComboFormatter ( boolean  t,
boolean  s,
boolean  h 
)

Creates a new WBComboFormatter.

Parameters:
t Needs to truncate the String
s Needs to strip out the HTML in the String
h Needs to convert the textarea string to HTML


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 setStripHTML ( boolean  bool  ) 

void setTextareaToHTML ( boolean  bool  ) 

void setTruncate ( boolean  bool  ) 

void setTruncateLength ( int  len  ) 

boolean stripHTML (  ) 

boolean textareaToHTML (  ) 

boolean truncate (  ) 

int truncateLength (  ) 


Member Data Documentation

final int DEFAULT_LENGTH = 250 [static]

Default length to truncate a String.

boolean stripHTML [private]

boolean textareaToHTML [private]

boolean truncate [private]

int truncateLength = DEFAULT_LENGTH [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