This content has been marked as final.
Show 2 replies
-
1. Re: Universal Enum to String Converter
mbarkley Aug 12, 2013 2:56 PM (in response to holsen)Hi Chris,
That's a tricky question. You could try a global converter, but you would only be able to implement converting from Enum to String and not vice-versa.
If you're using programmatic bindings (i.e. dataBinder.bind(textBox, "myEnum", myEnumConverter) and not the @Bound declaration) you could make a converter like this.
So in short, it's probably not possible to do in the way you are thinking.
-- Max
-
2. Re: Universal Enum to String Converter
holsen Aug 15, 2013 3:22 AM (in response to mbarkley)Hi,
thanks for your reply! I'll guess I'll just write a global converter for each ENUM.
Chris