com.taco.swinger.text2gui
Class ComponentLayerPairConverter

java.lang.Object
  extended by com.taco.text.AbstractInterpolatingStringToObjectConverter
      extended by com.taco.text.InterpolatingConverter
          extended by com.taco.swinger.text2gui.ComponentConstraintPairConverter
              extended by com.taco.swinger.text2gui.ComponentLayerPairConverter
All Implemented Interfaces:
ICommonGUIConverters, IInterpolatingConverter, IInterpolatingStringToObjectConverter, IStringToObjectConverter, IInterpolatingResourceBundleToObjectConverter, java.lang.Cloneable

public class ComponentLayerPairConverter
extends ComponentConstraintPairConverter
implements ICommonGUIConverters

A converter to component / layer pairs. This class creates instances of ComponentConstraintPair, with the constraint member set to a layer identifier.


Field Summary
 
Fields inherited from class com.taco.swinger.text2gui.ComponentConstraintPairConverter
_componentConverter, _parent
 
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
 
Fields inherited from interface com.taco.swinger.text2gui.ICommonGUIConverters
COLOR_CONVERTER, CURSOR_CONVERTER, FONT_CONVERTER, KEYCODE_CONVERTER, KEYSTROKE_CONVERTER, LAYER_CONVERTER, RANGE_COLLECTION_CONVERTER
 
Constructor Summary
ComponentLayerPairConverter(DispatchingComponentConverter componentConverter)
           
 
Method Summary
protected  IInterpolatingConverter _getConstraintConverter()
          Return the converter used for constraints.
protected  java.lang.String _makeConstraintKey(java.lang.String baseKey)
          This implementation returns the base key concatenated with ".layer".
 
Methods inherited from class com.taco.swinger.text2gui.ComponentConstraintPairConverter
_literalToObject, toObject
 
Methods inherited from class com.taco.text.InterpolatingConverter
_argMapReferenceToObject, _getStandardImports, _getStandardStaticImports, _literalResultToObject, _scriptSnippetToObject, _toObject, _toObjectMapper, clone, name, 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
 

Constructor Detail

ComponentLayerPairConverter

public ComponentLayerPairConverter(DispatchingComponentConverter componentConverter)
Method Detail

_makeConstraintKey

protected java.lang.String _makeConstraintKey(java.lang.String baseKey)
This implementation returns the base key concatenated with ".layer".

Overrides:
_makeConstraintKey in class ComponentConstraintPairConverter

_getConstraintConverter

protected IInterpolatingConverter _getConstraintConverter()
Return the converter used for constraints. This base implementation returns the instance of IComponentAddStrategy provided by the component converter, for the parent container. This method is called by _literalToString() and toObject(ResourceBundle bundle, ...).

Overrides:
_getConstraintConverter in class ComponentConstraintPairConverter