com.taco.swinger.text2gui
Class ContainerConverter

java.lang.Object
  extended by com.taco.text.AbstractInterpolatingStringToObjectConverter
      extended by com.taco.text.InterpolatingConverter
          extended by com.taco.text.CompositeConverter
              extended by com.taco.text.BracedPropertyCompositeConverter
                  extended by com.taco.swinger.text2gui.ComponentConverter
                      extended by com.taco.swinger.text2gui.ContainerConverter
All Implemented Interfaces:
ICommonGUIConverters, ICommonRegexConstants, IInterpolatingConverter, IInterpolatingStringToObjectConverter, IStringToObjectConverter, IInterpolatingResourceBundleToObjectConverter, java.lang.Cloneable
Direct Known Subclasses:
WindowConverter

public class ContainerConverter
extends ComponentConverter

A base class for converters that create instances of Container which are not instances of JComponent.


Nested Class Summary
protected  class ContainerConverter.SetContentsAction
          An action that sets the contents of the container.
 
Nested classes/interfaces inherited from class com.taco.text.CompositeConverter
CompositeConverter.AbstractCompositeUpdater, CompositeConverter.AbstractMapConsistencyListener, CompositeConverter.CompositeUpdater, CompositeConverter.DefaultMapConsistencyListener, CompositeConverter.DelayedConvertedResult, CompositeConverter.ICompositeUpdater, CompositeConverter.IMapConsistencyListener, CompositeConverter.ISetPropertyAction, CompositeConverter.NotUpdaterListenerFilter, CompositeConverter.ReflectionSetPropertyAction
 
Field Summary
protected  DispatchingComponentConverter _componentConverter
          The converter to components embedded in the component created.
protected static java.util.Map _CONTAINER_ACTION_MAP
           
protected static java.util.Map _CONTAINER_CONVERTER_MAP
           
 
Fields inherited from class com.taco.swinger.text2gui.ComponentConverter
_COMPONENT_ACTION_MAP, _COMPONENT_CONVERTER_MAP, instance
 
Fields inherited from class com.taco.text.BracedPropertyCompositeConverter
_KEEP_ENCLOSING_PUNCTUATION_PATTERN
 
Fields inherited from class com.taco.text.CompositeConverter
_DEFAULT_COMPOSITE_CONVERTER_MAP, _DEFAULT_COMPOSITE_CREATION_PROPERTY_NAMES, _SHOULD_READ_GLOBAL_NAME
 
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
 
Fields inherited from interface com.taco.text.ICommonRegexConstants
BOOLEAN_REGEX_STRING, CHAR_REGEX_STRING, FLOAT_REGEX_STRING, HEX_NUMBER_REGEX_STRING, INTEGER_REGEX_STRING, JAVA_CLASS_NAME_REGEX_STRING, LONG_HEX_REGEX_STRING, LONG_INTEGER_REGEX_STRING, NON_NEGATIVE_FLOAT_REGEX_STRING, PROPERTY_PREFIX_PATTERN, PROPERTY_PREFIX_REGEX_STRING, QUOTED_STRING_REGEX_STRING, WHITESPACE_PATTERN
 
Constructor Summary
ContainerConverter(DispatchingComponentConverter componentConverter)
          Construct a new instance that uses the argument converter to convert strings and resource bundles to components that are embedded in the component created by this instance.
 
Method Summary
protected  CompositeConverter.ISetPropertyAction _getActionForProperty(java.lang.String propertyName)
          Return an instance ISetPropertyAction for the argument property name.
 IInterpolatingConverter getConverterForProperty(java.lang.String propertyName, java.lang.Object composite)
          Return an instance of IInterpolatingConverter for the argument property name.
 java.util.Collection getPropertyNames()
          Return a collection of names of properties of the composite being created.
 
Methods inherited from class com.taco.text.BracedPropertyCompositeConverter
_addProperties, _extractPropertiesSubSequence, _extractPropertyValue, _gatherPropertyMatchResults, _literalToObject, _shouldKeepEnclosingPunctuation
 
Methods inherited from class com.taco.text.CompositeConverter
_addMapConsistencyListener, _addMapConsistencyListeners, _addProperties, _addUpdaterListeners, _configureComposite, _createComposite, _createUpdaterListener, _makeInitConverter, _setProperties, _toObject, configureComposite, getConverterNameForProperty, getCreationPropertyNames, isPropertyReadable, isPropertyUpdatable, isPropertyWritable
 
Methods inherited from class com.taco.text.InterpolatingConverter
_argMapReferenceToObject, _getStandardImports, _getStandardStaticImports, _literalResultToObject, _scriptSnippetToObject, _toObjectMapper, clone, name, 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

_componentConverter

protected final DispatchingComponentConverter _componentConverter
The converter to components embedded in the component created.


_CONTAINER_CONVERTER_MAP

protected static final java.util.Map _CONTAINER_CONVERTER_MAP

_CONTAINER_ACTION_MAP

protected static final java.util.Map _CONTAINER_ACTION_MAP
Constructor Detail

ContainerConverter

public ContainerConverter(DispatchingComponentConverter componentConverter)
Construct a new instance that uses the argument converter to convert strings and resource bundles to components that are embedded in the component created by this instance.

Method Detail

getPropertyNames

public java.util.Collection getPropertyNames()
Description copied from class: CompositeConverter
Return a collection of names of properties of the composite being created. These properties should be configurable after the composite is actually constructed. These are appended after the base key name and a '.' character to create keys to lookup in a resource bundle when converting from resource bundle to composites.

Overrides:
getPropertyNames in class ComponentConverter

getConverterForProperty

public IInterpolatingConverter getConverterForProperty(java.lang.String propertyName,
                                                       java.lang.Object composite)
Description copied from class: CompositeConverter
Return an instance of IInterpolatingConverter for the argument property name. If no converter pair is associated with the property name, return null.

Overrides:
getConverterForProperty in class ComponentConverter

_getActionForProperty

protected CompositeConverter.ISetPropertyAction _getActionForProperty(java.lang.String propertyName)
Description copied from class: CompositeConverter
Return an instance ISetPropertyAction for the argument property name. If no action is associated with the property name, return null.

Overrides:
_getActionForProperty in class ComponentConverter