|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PrefsMapper
Interface used by PreferencesManager
to serialize and deserialize
specific types of bean properties in order to map it to the preference store.
The PreferencesManager knows how to map standard types like int, long, float,
double, boolean (and ther non-primitive equivalents) and String.
Example applications might be mapping of Font
and Color
.
Method Summary | |
---|---|
java.lang.Object |
read(java.lang.String s)
Maps a string to an actual object (that string was retrieved from the preferences store. |
java.lang.String |
write(java.lang.Object o)
Maps the actual object into a string (that string will be then stored to the preferences store. |
Method Detail |
---|
java.lang.String write(java.lang.Object o)
o
- the original object
java.lang.Object read(java.lang.String s)
s
- the string representing the original object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |