|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.l2fprod.common.util.converter.AWTConverters
public class AWTConverters
AWTConverters.
Converter commonly used AWT classes like Point,
Dimension, Rectangle, Insets to/from Strings and between each others when
possible.
The following convertions are supported:
From | To | Reverse |
---|---|---|
Dimension | String | yes |
Font | String | no |
Insets | String | yes |
Point | String | yes |
Rectangle | String | yes |
Constructor Summary | |
---|---|
AWTConverters()
|
Method Summary | |
---|---|
java.lang.Object |
convert(java.lang.Class type,
java.lang.Object value)
Converts value to an object of type . |
void |
register(ConverterRegistry registry)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AWTConverters()
Method Detail |
---|
public void register(ConverterRegistry registry)
public java.lang.Object convert(java.lang.Class type, java.lang.Object value)
Converter
value
to an object of type
.
convert
in interface Converter
value
converted to an object of type
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |