
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 |
| WBComboFormatter | ( | boolean | t, | |
| boolean | s, | |||
| boolean | h | |||
| ) |
Creates a new WBComboFormatter.
| 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 |
| StringBuffer format | ( | Object | object, | |
| StringBuffer | r, | |||
| FieldPosition | d | |||
| ) |
Formats the string.
| object | String to format | |
| r | StringBuffer | |
| d | FieldPosition |
| 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 | ( | ) |
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] |
1.5.8