org.swixml.converters
Class ConstraintsConverter
java.lang.Object
org.swixml.converters.ConstraintsConverter
public class ConstraintsConverter
extends java.lang.Object
The
ConstraintsConverter
class defines a converter that returns Layout constants
based on layout type and input string.
Examples for Valid XML attribute notations:
- constraints="BorderLayout.NORTH"
static Class | TEMPLATE - converter's return type
|
static Object | convert(Class type, Attribute attr) - Converts Strings into Layout constants.
|
Class | convertsTo() - A
Converters conversTo method informs about the Class type the converter
is returning when its convert method is called
|
TEMPLATE
public static final Class TEMPLATE
converter's return type
convert
public static Object convert(Class type,
Attribute attr)
Converts Strings into Layout constants.
type
- Class
Layout typeattr
- Attribute
value needs to provide String which is used for the conversion
convertsTo
public Class convertsTo()
A Converters
conversTo method informs about the Class type the converter
is returning when its convert
method is called
Class
- the Class the converter is returning when its convert method is called
Copyright B) 2002 - 2005 - Wolf Paulus - CarlsbadCubes.com . All rights reserved.