com.taco.swinger.text2gui.border
Class DispatchingBorderConverter

java.lang.Object
  extended by com.taco.text.AbstractInterpolatingStringToObjectConverter
      extended by com.taco.text.InterpolatingConverter
          extended by com.taco.text.DispatchingConverter
              extended by com.taco.swinger.text2gui.border.DispatchingBorderConverter
All Implemented Interfaces:
IInterpolatingConverter, IInterpolatingStringToObjectConverter, IStringToObjectConverter, IInterpolatingResourceBundleToObjectConverter, java.io.Serializable, java.lang.Cloneable

public class DispatchingBorderConverter
extends DispatchingConverter

An implementation of IInterpolatingConverter that converts strings and resource bundles to borders. Because the variety of borders is limitless, this class acts as a dispatcher to installed string to border converters. The first word of a string is used to select the appropriate border converter for the entire string. By itself, this class supports the following types of borders: empty, etched, line, matte, bevel, titled, and compound. Additional types of borders can be installed with installConverter().

See Also:
Serialized Form

Field Summary
static DispatchingBorderConverter instance
          The default instance of this class.
 
Fields inherited from class com.taco.text.DispatchingConverter
_suffixToTypeMap, _typeToConfigurerMap, _typeToConverterMap
 
Fields inherited from class com.taco.text.InterpolatingConverter
_BAD_OBJECT_MAPPER, _IGNORE_PROPERTY_VALUE, _IMPORTS, _STATIC_IMPORTS, _TO_OBJECT_MAPPER_CONVERTER, DEFAULT_INSTANCE
 
Fields inherited from class com.taco.text.AbstractInterpolatingStringToObjectConverter
_defArgMap, _defBundle
 
Constructor Summary
DispatchingBorderConverter()
          Create a new instance whose implementation of IStringToObjectConverter is incapable of resolving references.
DispatchingBorderConverter(java.util.ResourceBundle bundle, INoReturnMap argMap)
          Create a new instance whose implementation of IStringToObjectConverter uses the specified resource bundle and argument map to resolve references.
 
Method Summary
 
Methods inherited from class com.taco.text.DispatchingConverter
_getTypeForSuffix, _guessType, _literalToObject, _toObject, clone, configureComposite, getConfigurerForType, getConverterForType, installConfigurer, installConverter, installTypeForSuffix, name
 
Methods inherited from class com.taco.text.InterpolatingConverter
_argMapReferenceToObject, _getStandardImports, _getStandardStaticImports, _literalResultToObject, _scriptSnippetToObject, _toObjectMapper, toObject, toObject, toObject
 
Methods inherited from class com.taco.text.AbstractInterpolatingStringToObjectConverter
toObject
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

instance

public static final DispatchingBorderConverter instance
The default instance of this class.

Constructor Detail

DispatchingBorderConverter

public DispatchingBorderConverter()
Create a new instance whose implementation of IStringToObjectConverter is incapable of resolving references.


DispatchingBorderConverter

public DispatchingBorderConverter(java.util.ResourceBundle bundle,
                                  INoReturnMap argMap)
Create a new instance whose implementation of IStringToObjectConverter uses the specified resource bundle and argument map to resolve references.