com.taco.swinger.text2gui
Class DispatchingLayoutConverter.OverlayLayoutConverter
java.lang.Object
com.taco.text.AbstractInterpolatingStringToObjectConverter
com.taco.text.InterpolatingConverter
com.taco.swinger.text2gui.DispatchingLayoutConverter.OverlayLayoutConverter
- All Implemented Interfaces:
- IInterpolatingConverter, IInterpolatingStringToObjectConverter, IStringToObjectConverter, IInterpolatingResourceBundleToObjectConverter, java.lang.Cloneable
- Enclosing class:
- DispatchingLayoutConverter
public final class DispatchingLayoutConverter.OverlayLayoutConverter
- extends InterpolatingConverter
A class that converts strings and resource bundles to overlay layout managers. This class
isn't static because it references the container of the outer class.
Field Summary |
protected java.awt.Container |
_container
The container the layout created by this instance will be for. |
Method Summary |
protected java.lang.Object |
_literalToObject(java.lang.String s,
java.util.ResourceBundle bundle,
INoReturnMap argMap,
java.lang.String globalName)
Return a new overlay layout using the outer class's container,
without checking the string. |
protected java.lang.Object |
_toObject(java.util.ResourceBundle bundle,
java.lang.String baseKey,
INoReturnMap argMap,
KeyLookupRecord context,
java.lang.String globalName)
If the value associated with baseKey is a non-null string,
use this instance to convert it to an object. |
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 |
_container
protected java.awt.Container _container
- The container the layout created by this instance will be for.
DispatchingLayoutConverter.OverlayLayoutConverter
public DispatchingLayoutConverter.OverlayLayoutConverter(java.awt.Container container)
_toObject
protected final java.lang.Object _toObject(java.util.ResourceBundle bundle,
java.lang.String baseKey,
INoReturnMap argMap,
KeyLookupRecord context,
java.lang.String globalName)
throws java.text.ParseException,
java.util.MissingResourceException
- Description copied from class:
InterpolatingConverter
- If the value associated with
baseKey
is a non-null string,
use this instance to convert it to an object. Otherwise, return the
object.
- Overrides:
_toObject
in class InterpolatingConverter
- Throws:
java.text.ParseException
java.util.MissingResourceException
_literalToObject
protected final java.lang.Object _literalToObject(java.lang.String s,
java.util.ResourceBundle bundle,
INoReturnMap argMap,
java.lang.String globalName)
- Return a new overlay layout using the outer class's container,
without checking the string.
- Overrides:
_literalToObject
in class InterpolatingConverter