|
SWIXML 1.5 (#149) |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.swixml.converters.LayoutConverter
public class LayoutConverter
The LayoutConverter
class defines a converter that creates LayoutManager objects
based on a provided String.
FlowLayout
can be created with all 3 construtors:
LayoutManager
,
ConverterLibrary
Field Summary | |
---|---|
static String |
BORDER_LAYOUT
|
static String |
CARD_LAYOUT
|
static String |
FLOW_LAYOUT
|
static String |
GRID_LAYOUT
|
static String |
GRIDBAG_LAYOUT
|
static Class |
TEMPLATE
converter's return type |
Constructor Summary | |
---|---|
LayoutConverter()
|
Method Summary | |
---|---|
Object |
convert(Class type,
Attribute attr,
Localizer localizer)
Convert the specified input object into an output object of the specified type. |
Class |
convertsTo()
A Converters conversTo method informs about the Class type the converter
is returning when its convert method is called |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final Class TEMPLATE
public static final String FLOW_LAYOUT
public static final String BORDER_LAYOUT
public static final String GRID_LAYOUT
public static final String GRIDBAG_LAYOUT
public static final String CARD_LAYOUT
Constructor Detail |
---|
public LayoutConverter()
Method Detail |
---|
public Object convert(Class type, Attribute attr, Localizer localizer)
FlowLayout
can be created with all 3 construtors:
convert
in interface Converter
type
- Class
not usedattr
- Attribute
value is needed for conversion
Object
public Class convertsTo()
Converters
conversTo method informs about the Class type the converter
is returning when its convert
method is called
convertsTo
in interface Converter
Class
- the Class the converter is returning when its convert method is called
|
SWIXML 1.5 (#149) |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |