|
SWIXML 1.6 (#161) |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.swixml.LayoutConverterLibrary
public class LayoutConverterLibrary
The LayoutConverterLibrary
contains all available LayoutConverter
s.
LayoutConverter
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
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.
|
SWIXML 1.6 (#161) |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |