com.taco.swinger.text2gui
Class JTabbedPaneConverter.TabConverter
java.lang.Object
com.taco.text.AbstractInterpolatingStringToObjectConverter
com.taco.text.InterpolatingConverter
com.taco.text.CompositeConverter
com.taco.text.BracedPropertyCompositeConverter
com.taco.swinger.text2gui.JTabbedPaneConverter.TabConverter
- All Implemented Interfaces:
- ICommonRegexConstants, IInterpolatingConverter, IInterpolatingStringToObjectConverter, IStringToObjectConverter, IInterpolatingResourceBundleToObjectConverter, java.lang.Cloneable
- Enclosing class:
- JTabbedPaneConverter
protected class JTabbedPaneConverter.TabConverter
- extends BracedPropertyCompositeConverter
A converter for a tab in a tabbed pane. Instances of this class
create a property map that is used later to add a tab to a tabbed
pane.
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 |
Method Summary |
protected java.lang.Object |
_createComposite(java.util.Map propertyMap,
java.util.ResourceBundle bundle,
INoReturnMap argMap)
Return the property map; the map is used later when adding the
tab to the tabbed pane. |
protected CompositeConverter.ISetPropertyAction |
_getActionForProperty(java.lang.String propertyName)
No action is necessary since we are simply returning the
property map. |
protected void |
_setProperties(java.lang.Object composite,
java.util.Map propertyMap,
java.util.ResourceBundle bundle,
INoReturnMap argMap)
For efficiency's sake, this method is overloaded to do nothing,
since all properties are already set in the property map. |
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.CompositeConverter |
_addMapConsistencyListener, _addMapConsistencyListeners, _addProperties, _addUpdaterListeners, _configureComposite, _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 java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JTabbedPaneConverter.TabConverter
public JTabbedPaneConverter.TabConverter()
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.
- Specified by:
getPropertyNames
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
.
- Specified by:
getConverterForProperty
in class CompositeConverter
_getActionForProperty
protected CompositeConverter.ISetPropertyAction _getActionForProperty(java.lang.String propertyName)
- No action is necessary since we are simply returning the
property map.
- Specified by:
_getActionForProperty
in class CompositeConverter
_createComposite
protected java.lang.Object _createComposite(java.util.Map propertyMap,
java.util.ResourceBundle bundle,
INoReturnMap argMap)
- Return the property map; the map is used later when adding the
tab to the tabbed pane.
- Overrides:
_createComposite
in class CompositeConverter
_setProperties
protected void _setProperties(java.lang.Object composite,
java.util.Map propertyMap,
java.util.ResourceBundle bundle,
INoReturnMap argMap)
- For efficiency's sake, this method is overloaded to do nothing,
since all properties are already set in the property map.