com.taco.swinger.text2gui
Class FillerConverter
java.lang.Object
com.taco.text.AbstractInterpolatingStringToObjectConverter
com.taco.text.InterpolatingConverter
com.taco.text.CompositeConverter
com.taco.text.BracedPropertyCompositeConverter
com.taco.swinger.text2gui.ComponentConverter
com.taco.swinger.text2gui.JComponentConverter
com.taco.swinger.text2gui.FillerConverter
- All Implemented Interfaces:
- ICommonGUIConverters, ICommonRegexConstants, IInterpolatingConverter, IInterpolatingStringToObjectConverter, IStringToObjectConverter, IInterpolatingResourceBundleToObjectConverter, java.lang.Cloneable
public class FillerConverter
- extends JComponentConverter
A converter to a filler.
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 |
protected |
FillerConverter()
Construct a new instance that uses the following defaults if not
specified:
minSize: width = 0, height = 0
prefSize: width = 20, height = 20
maxSize: width = 100, height = 100 |
|
FillerConverter(java.awt.Dimension defMinSize,
java.awt.Dimension defPrefSize,
java.awt.Dimension defMaxSize)
Create a new instance that uses the arguments as default sizes. |
Method Summary |
protected java.lang.Object |
_createComposite(java.util.Map propertyMap,
java.util.ResourceBundle bundle,
INoReturnMap argMap)
Return a new filler component. |
IInterpolatingConverter |
getConverterForProperty(java.lang.String propertyName,
java.lang.Object composite)
Return an instance of IInterpolatingConverter for the
argument property name. |
java.util.Collection |
getCreationPropertyNames()
Return a collection of names of properties of the composite needed
at construction time. |
Methods inherited from class com.taco.text.CompositeConverter |
_addMapConsistencyListeners, _addProperties, _addUpdaterListeners, _configureComposite, _createUpdaterListener, _makeInitConverter, _setProperties, _toObject, configureComposite, getConverterNameForProperty, 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 java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_FILLER_CREATION_PROPERTY_NAMES
protected static final java.util.Collection _FILLER_CREATION_PROPERTY_NAMES
_FILLER_CONVERTER_MAP
protected static final java.util.Map _FILLER_CONVERTER_MAP
DEFAULT_INSTANCE
public static final FillerConverter DEFAULT_INSTANCE
- The default instance of this class.
FillerConverter
public FillerConverter(java.awt.Dimension defMinSize,
java.awt.Dimension defPrefSize,
java.awt.Dimension defMaxSize)
- Create a new instance that uses the arguments as default sizes.
- Parameters:
defMinSize
- The default minimum size to use if not explicitly
specified.defPrefSize
- The default preferred size to use if not explicitly
specified.defMaxSize
- The default maximum size to use if not explicitly
specified.
- Throws:
java.lang.NullPointerException
- if any of the arguments are
null
.
FillerConverter
protected FillerConverter()
- Construct a new instance that uses the following defaults if not
specified:
- minSize: width = 0, height = 0
- prefSize: width = 20, height = 20
- maxSize: width = 100, height = 100
_createComposite
protected java.lang.Object _createComposite(java.util.Map propertyMap,
java.util.ResourceBundle bundle,
INoReturnMap argMap)
- Return a new filler component.
- Overrides:
_createComposite
in class CompositeConverter
getCreationPropertyNames
public java.util.Collection getCreationPropertyNames()
- Description copied from class:
CompositeConverter
Return a collection of names of properties of the composite needed
at construction time. 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.
This base implementation returns a singleton list with "instance" in
it.
- Overrides:
getCreationPropertyNames
in class CompositeConverter
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 JComponentConverter