|
||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface class for displaying objects in UI text components like table cells, lists, labels and text fields.
Field Summary |
Fields inherited from interface com.kiwisoft.utils.format.ObjectFormat |
DEFAULT |
Method Summary | |
String |
format(Object value)
Returns the String representing the specified value. |
int |
getHorizontalAlignment(Object value)
Returns the horizontal alignment of the formatted text. |
Icon |
getIcon(Object value)
Returns the icon for the specified value; |
Object |
parse(String value,
Class targetClass)
Returns the Object created from the specified String .
|
Methods inherited from interface com.kiwisoft.utils.format.ObjectFormat |
canFormat, canParse, getGroup, getName |
Method Detail |
public int getHorizontalAlignment(Object value)
value
- The unformated value.
SwingConstants
:
LEFT
,
CENTER
,
RIGHT
,
LEADING
.
TRAILING
.public Icon getIcon(Object value)
value
- The unformated value.
public String format(Object value)
String
representing the specified value.
value
- The object which should be formated.
ObjectFormat.canFormat(Class)
public Object parse(String value, Class targetClass)
Object
created from the specified String
.
The method may throw an RuntimeException
if the String
is invalid.
value
- The String
which should be parsed.targetClass
- The Class
the return value should have. Can be ignored if
the format handles only one class.
Object
created from the String
.ObjectFormat.canParse(Class)
|
||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |