dsto.dfc.swing.text
Class Text
java.lang.Object
  
dsto.dfc.swing.text.Text
public final class Text
- extends Object
 
 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
convertValue
public static Object convertValue(Object value,
                                  Class targetForm,
                                  ValueConverter converter)
                           throws IllegalFormatException
- Attempt to convert a value to a given class. The Convertable
 interface is used if available, otherwise attempts to use the
 form's constructor.
- Parameters:
 value - The value to convert.targetForm - The class to convert the value to. If the class
          is primitive, its equivalent Object-based class is used.converter - The converter to use. May be null in which case
          the default attempts to convert the value are used.
- Returns:
 - A new instance of form containing the converted value.
 - Throws:
 IllegalFormatException - if conversion was not possible
              (ie Convertable threw an exception, or no
              constructor available or constructor threw an
              exception).
 
 
convertValue
public static Object convertValue(Object value,
                                  Class form)
                           throws IllegalFormatException
- Throws:
 IllegalFormatException
 
getDefaultConverter
public static ValueConverter getDefaultConverter(Class from,
                                                 Class to)
 
Copyright © 2008 Commonwealth of Australia