|
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.converters.BorderConverter
public class BorderConverter
The BorderConverter
class defines a converter that creates Border objects based on a provided String.
The BorderConverter internally uses the javax.swing.BorderFactory
and its static create.. methods
to instatiate differnt kinds of borders, based on the given String.
Additional parameters to create a border need to be comma separated and enclosed in parentheses.
Parameter types get converted through the ConverterLibrary
. Therefore, only parameter classes are supported that
have registered converters in the ConverLibrary.
BorderFactory
,
AbstractBorder
,
ConverterLibrary
Field Summary | |
---|---|
static Class |
TEMPLATE
converter's return type |
Constructor Summary | |
---|---|
BorderConverter()
|
Method Summary | |
---|---|
Object |
convert(Class type,
Attribute attr,
Localizer localizer)
Returns a javax.swing Border |
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
Constructor Detail |
---|
public BorderConverter()
Method Detail |
---|
public Object convert(Class type, Attribute attr, Localizer localizer)
javax.swing Border
convert
in interface Converter
type
- Class
not usedattr
- Attribute
value needs to provide Border type name and optional parameter
Object
runtime type is subclass of AbstractBorder
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.6 (#161) |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |