public class LayoutConverterLibrary extends Object
The LayoutConverterLibrary
contains all available LayoutConverter
s.
LayoutConverter
Modifier and Type | Method and Description |
---|---|
static LayoutConverterLibrary |
getInstance()
Returns the single instacne of the LayoutConverterLibrary.
|
LayoutConverter |
getLayoutConverter(Class layoutClass)
Returns a
LayoutConverter instance, able to produce objects for
the given layout manager class . |
LayoutConverter |
getLayoutConverterByID(String id)
Returns a
LayoutConverter instance, able to produce objects for
the given layout manager id (see LayoutConverter.getID() ). |
Map |
getLayoutConverters()
Returns all registered layout converters.
|
void |
register(Class layoutClass,
LayoutConverter layoutConverter)
Registers a LayoutConverter with the LayoutConverterLibrary.
|
void |
register(String layoutClassName,
LayoutConverter layoutConverter)
Registers a LayoutConverter with the LayoutConverterLibrary.
|
public static LayoutConverterLibrary getInstance()
public Map getLayoutConverters()
public void register(Class layoutClass, LayoutConverter layoutConverter)
layoutClass
- Type of the layout manager the LayoutConverter creates.layoutConverter
- Instance of LayoutConverter able to convert Strings
into layout managers or layout constraints.public void register(String layoutClassName, LayoutConverter layoutConverter)
layoutClassName
- Type name of the layout manager the LayoutConverter creates.layoutConverter
- Instance of LayoutConverter able to convert Strings
into layout managers or layout constraints.public LayoutConverter getLayoutConverter(Class layoutClass)
LayoutConverter
instance, able to produce objects for
the given layout manager class
.layoutClass
- Class of the object the LayoutConverter
needs to produce.public LayoutConverter getLayoutConverterByID(String id)
LayoutConverter
instance, able to produce objects for
the given layout manager id
(see LayoutConverter.getID()
).id
- Identifier of the layout manager the LayoutConverter
needs to produce.Copyright © 2002 - 2013 - Wolf Paulus - wolfpaulus.com. All rights reserved.