org.formaria.swing.util
Class ClassArgumentConverter

java.lang.Object
  extended by org.formaria.aria.helper.ArgumentConverter
      extended by org.formaria.swing.util.ClassArgumentConverter

public class ClassArgumentConverter
extends ArgumentConverter

Convert border class names to AbstractBorder instances for JComponents


Constructor Summary
ClassArgumentConverter()
           
 
Method Summary
 java.lang.Object convert(java.lang.String value)
          Convert a string value to a destination argument type
 boolean forType(java.lang.Class type)
          Is the conversion allowed for a particular context
 java.lang.Class getTarget()
          Get the target class follwoing conversion
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClassArgumentConverter

public ClassArgumentConverter()
Method Detail

getTarget

public java.lang.Class getTarget()
Get the target class follwoing conversion

Specified by:
getTarget in class ArgumentConverter

convert

public java.lang.Object convert(java.lang.String value)
Convert a string value to a destination argument type

Specified by:
convert in class ArgumentConverter
Parameters:
value -
Returns:

forType

public boolean forType(java.lang.Class type)
Is the conversion allowed for a particular context

Overrides:
forType in class ArgumentConverter
Parameters:
type - the object type (class) where the argument will be used
Returns: