com.taco.swinger.text2gui
Class JScrollPaneConverter
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.JContainerConverter
com.taco.swinger.text2gui.JScrollPaneConverter
- All Implemented Interfaces:
- ICommonGUIConverters, ICommonRegexConstants, IInterpolatingConverter, IInterpolatingStringToObjectConverter, IStringToObjectConverter, IInterpolatingResourceBundleToObjectConverter, java.lang.Cloneable, javax.swing.ScrollPaneConstants
public class JScrollPaneConverter
- extends JContainerConverter
- implements javax.swing.ScrollPaneConstants
A converter to instances of JScrollPane
.
Fields inherited from interface javax.swing.ScrollPaneConstants |
COLUMN_HEADER, HORIZONTAL_SCROLLBAR, HORIZONTAL_SCROLLBAR_ALWAYS, HORIZONTAL_SCROLLBAR_AS_NEEDED, HORIZONTAL_SCROLLBAR_NEVER, HORIZONTAL_SCROLLBAR_POLICY, LOWER_LEADING_CORNER, LOWER_LEFT_CORNER, LOWER_RIGHT_CORNER, LOWER_TRAILING_CORNER, ROW_HEADER, UPPER_LEADING_CORNER, UPPER_LEFT_CORNER, UPPER_RIGHT_CORNER, UPPER_TRAILING_CORNER, VERTICAL_SCROLLBAR, VERTICAL_SCROLLBAR_ALWAYS, VERTICAL_SCROLLBAR_AS_NEEDED, VERTICAL_SCROLLBAR_NEVER, VERTICAL_SCROLLBAR_POLICY, VIEWPORT |
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 void |
_addCornersMapConsistencyListener(javax.swing.JScrollPane scrollPane,
IObjectMapper toMapValueConverter,
INoReturnMap argMap,
java.lang.Object mapKey,
java.lang.reflect.Method addListenerMethod)
|
protected void |
_addMapConsistencyListener(java.lang.Object composite,
java.lang.String propertyName,
IObjectMapper toMapValueConverter,
INoReturnMap argMap,
java.lang.Object mapKey,
java.lang.reflect.Method addListenerMethod)
If propertyName is "alignX", "alignY", "minSize",
"maxSize", or "prefSize", use the superclass's method which adds a
property change listener, but use the full property name. |
protected java.lang.Object |
_createComposite(java.util.Map propertyMap,
java.util.ResourceBundle bundle,
INoReturnMap argMap)
Return a new instance of JTabbedPane using the default
constructor. |
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.CompositeConverter |
_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 |
_componentCornerPairCollectionConverter
protected final IInterpolatingConverter _componentCornerPairCollectionConverter
- The converter used for collections of component / corner pairs.
_JSCROLLPANE_CONVERTER_MAP
protected static final java.util.Map _JSCROLLPANE_CONVERTER_MAP
_JSCROLLPANE_ACTION_MAP
protected static final java.util.Map _JSCROLLPANE_ACTION_MAP
_CORNER_ARRAY
protected static final java.lang.String[] _CORNER_ARRAY
- An array of all corner identifier strings.
JScrollPaneConverter
public JScrollPaneConverter(DispatchingComponentConverter componentConverter)
_createComposite
protected java.lang.Object _createComposite(java.util.Map propertyMap,
java.util.ResourceBundle bundle,
INoReturnMap argMap)
- Return a new instance of
JTabbedPane
using the default
constructor.
- Overrides:
_createComposite
in class CompositeConverter
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 JContainerConverter
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 JContainerConverter
_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 JContainerConverter
_addCornersMapConsistencyListener
protected void _addCornersMapConsistencyListener(javax.swing.JScrollPane scrollPane,
IObjectMapper toMapValueConverter,
INoReturnMap argMap,
java.lang.Object mapKey,
java.lang.reflect.Method addListenerMethod)
_addMapConsistencyListener
protected void _addMapConsistencyListener(java.lang.Object composite,
java.lang.String propertyName,
IObjectMapper toMapValueConverter,
INoReturnMap argMap,
java.lang.Object mapKey,
java.lang.reflect.Method addListenerMethod)
- Description copied from class:
JComponentConverter
- If
propertyName
is "alignX", "alignY", "minSize",
"maxSize", or "prefSize", use the superclass's method which adds a
property change listener, but use the full property name.
- Overrides:
_addMapConsistencyListener
in class JComponentConverter
- Parameters:
composite
- The composite object to add a listener to.propertyName
- The name of property of the composite, which when
changed, should cause the listener to update the argument map.toMapValueConverter
- If non-null, the strategy to used to convert
the property value of the composite to the value put in the argument
map.argMap
- The argument map.mapKey
- The argument map key to keep consistent.addListenerMethod
- If non-null, a method of the composite that
can be used to add a property change listener to it. It has the
signature void addPropertyChangeListener(String propertyName,
PropertyChangeListener)
. This parameter only needs to be
referenced by this default implementation of the method.