org.archiviststoolkit.swing
Class ATJgoodiesBindingConverterFactory

java.lang.Object
  extended by org.archiviststoolkit.swing.ATJgoodiesBindingConverterFactory

public class ATJgoodiesBindingConverterFactory
extends java.lang.Object


Nested Class Summary
static class ATJgoodiesBindingConverterFactory.LookupListConverter
          Converts Values to Strings and vice-versa using a given Format.
 
Method Summary
static com.jgoodies.binding.value.ValueModel createLookupListConverter(com.jgoodies.binding.value.ValueModel subject, java.lang.String format)
          Creates and returns a ValueModel that converts objects to Strings and vice versa.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createLookupListConverter

public static com.jgoodies.binding.value.ValueModel createLookupListConverter(com.jgoodies.binding.value.ValueModel subject,
                                                                              java.lang.String format)
Creates and returns a ValueModel that converts objects to Strings and vice versa. The conversion is performed by a Format.

Constraints: The subject is of type Object; it must be formattable and parsable via the given Format.

Parameters:
subject - the underlying ValueModel.
format - the Format used to format and parse
Returns:
a ValueModel that converts objects to Strings and vice versa
Throws:
java.lang.NullPointerException - if the subject or the format is null