JIDE 3.5.15

com.jidesoft.document
Class DefaultStringConverter

java.lang.Object
  extended by com.jidesoft.document.DefaultStringConverter
All Implemented Interfaces:
StringConverter

public class DefaultStringConverter
extends Object
implements StringConverter

Convert from one string to another string.


Constructor Summary
DefaultStringConverter(int maxLength, int end)
          Construct a StringConverter.
 
Method Summary
 String convert(String str)
          Converts from one string to another string, for example, to make it shorter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultStringConverter

public DefaultStringConverter(int maxLength,
                              int end)
Construct a StringConverter.

Parameters:
maxLength - max length of the string after conversion
end - number of chars after "..."
Method Detail

convert

public String convert(String str)
Converts from one string to another string, for example, to make it shorter.

Specified by:
convert in interface StringConverter
Parameters:
str - string to be converted
Returns:
string after conversion

JIDE 3.5.15