org.jdesktop.swingx.renderer
Interface StringValue

All Superinterfaces:
Serializable
All Known Implementing Classes:
FormatStringValue

public interface StringValue
extends Serializable

A simplistic converter to return a String representation of an object.

PENDING: use a full-fledged Format instead? Would impose a higher burden onto implementors but could be re-used in editors.


Field Summary
static StringValue EMPTY
          Converter returning an empty String always.
static StringValue TO_STRING
          Default converter using the toString.
 
Method Summary
 String getString(Object value)
          Returns a string representation of the given value.
 

Field Detail

TO_STRING

static final StringValue TO_STRING
Default converter using the toString.


EMPTY

static final StringValue EMPTY
Converter returning an empty String always.

Method Detail

getString

String getString(Object value)
Returns a string representation of the given value.

Parameters:
value - the object to present as a string
Returns:
a string representation of the given value, guaranteed to be not null