|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.taco.text.AbstractInterpolatingStringToObjectConverter
com.taco.text.InterpolatingConverter
com.taco.text.DispatchingConverter
com.taco.swinger.text2gui.DispatchingLayoutConverter
public class DispatchingLayoutConverter
An dispatching converter to instances of LayoutManager
.
Because the variety of layout managers is limitless, this class acts as a
dispatcher to installed string to layout manager converters. The first word
of a string is used to select the appropriate layout manager converter for
the entire string. By itself, this class supports the following types of
layout managers: flow, border, grid, card, box, overlay, and grid bag.
Additional types of layout managers can be installed with
installConverter()
.
Nested Class Summary | |
---|---|
static class |
DispatchingLayoutConverter.BorderLayoutConverter
A class that converts strings and resource bundles to border layout managers. |
static class |
DispatchingLayoutConverter.BoxLayoutConverter
A class that converts strings and resource bundles to box layout managers. |
static class |
DispatchingLayoutConverter.CardLayoutConverter
A class that converts strings and resource bundles to card layout managers. |
static class |
DispatchingLayoutConverter.ContainerDependentLayoutConverter
A layout converter that creates a layout dependent on the container the layout is for. |
static class |
DispatchingLayoutConverter.FlowLayoutConverter
A class that converts strings and resource bundles to flow layout managers. |
static class |
DispatchingLayoutConverter.GridBagLayoutConverter
A class that converts strings and resource bundles to grid bag layout managers. |
static class |
DispatchingLayoutConverter.GridLayoutConverter
A class that converts strings and resource bundles to grid layout managers. |
class |
DispatchingLayoutConverter.OverlayLayoutConverter
A class that converts strings and resource bundles to overlay layout managers. |
Field Summary | |
---|---|
protected java.awt.Container |
_container
The container the layout manager will manage. |
Fields inherited from class com.taco.text.DispatchingConverter |
---|
_suffixToTypeMap, _typeToConfigurerMap, _typeToConverterMap |
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 |
Constructor Summary | |
---|---|
DispatchingLayoutConverter(java.awt.Container container)
|
Method Summary | |
---|---|
protected java.lang.Object |
_literalToObject(java.lang.String s,
java.util.ResourceBundle bundle,
INoReturnMap argMap,
java.lang.String globalName)
Set the container's layout once the layout has been converted. |
protected java.lang.Object |
_toObject(java.util.ResourceBundle bundle,
java.lang.String baseKey,
INoReturnMap argMap,
KeyLookupRecord context,
java.lang.String globalName)
Set the container's layout once the layout has been converted. |
static void |
main(java.lang.String[] args)
A simple test program. |
Methods inherited from class com.taco.text.DispatchingConverter |
---|
_getTypeForSuffix, _guessType, clone, configureComposite, getConfigurerForType, getConverterForType, installConfigurer, installConverter, installTypeForSuffix, name |
Methods inherited from class com.taco.text.InterpolatingConverter |
---|
_argMapReferenceToObject, _getStandardImports, _getStandardStaticImports, _literalResultToObject, _scriptSnippetToObject, _toObjectMapper, 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 |
---|
protected java.awt.Container _container
Constructor Detail |
---|
public DispatchingLayoutConverter(java.awt.Container container)
Method Detail |
---|
public static void main(java.lang.String[] args)
protected java.lang.Object _literalToObject(java.lang.String s, java.util.ResourceBundle bundle, INoReturnMap argMap, java.lang.String globalName) throws java.text.ParseException, java.util.MissingResourceException
_literalToObject
in class DispatchingConverter
java.text.ParseException
java.util.MissingResourceException
protected 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
_toObject
in class DispatchingConverter
java.text.ParseException
java.util.MissingResourceException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |