|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectca.odell.glazedlists.swt.DefaultItemFormat<E>
public class DefaultItemFormat<E>
Default implementation of ItemFormat that converts an element by
calling toString() on it. If the element is null,
by default, the empty string is returned, but another default value can be
specified.
DefaultItemFormat(String)| Constructor Summary | |
|---|---|
DefaultItemFormat()
Default constructor which uses the empty string as representation for null elements. |
|
DefaultItemFormat(String valueForNullElement)
Constructor which takes a default value for representing a null element. |
|
| Method Summary | |
|---|---|
String |
format(E element)
Converts a list element to a string. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultItemFormat()
null elements.
public DefaultItemFormat(String valueForNullElement)
null element.
valueForNullElement - string value to be used for a null element| Method Detail |
|---|
public String format(E element)
ItemFormat
format in interface ItemFormat<E>element - the element to convert
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||