|
From: Rogan D. <ro...@da...> - 2008-01-28 21:06:41
|
Arne Limburg wrote:
> Hi Rogan,
>
> you need to extend AsYouTypeTextComponentAdapter and override
> adaptedValueChanged with something like this:
> protected void adaptedValueChanged(Object newValue) {
> super.adaptedValueChanged(((String)newValue).getBytes());
> }
>
> You also have to reimplement TextComponentBinding to use your Adapter
> and to set the bytes, i.e. you have to change line 41 like this:
> textComponent.setText(new
> String((byte[])valueModel.getValue()));
>
> and implement an appropriate Binder (take a look at TextAreaBinder).
> <http://dict.leo.org/ende?lp=ende&p=eL4jU.&search=appropriate>Of course,
> if you need you have to handle encoding-specific conversions at the
> places above.
>
> Regards,
>
> Arne
Thanks Arne,
That looks like it should do it!
Rogan
|