TextPresenters with "pluggable" displayBlocks

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

TextPresenters with "pluggable" displayBlocks

Günther Schmidt
Hi,

I want to pass a rather complex object as a model to a TextPresenter.
Naturally what appears in the attached view is the printString value of
that object.


Of course I could just rewrite the objects' displayString method but it
isn't my code but I wonder if there is something similar to
"getTextBlock" of list views for TextPresenter views.

Any ideas?

Günther


Reply | Threaded
Open this post in threaded view
|

Re: TextPresenters with "pluggable" displayBlocks

Udo Schneider
Günther Schmidt wrote:
> Any ideas?
Why not use TypeConverters? You'll need to write a TypeConverter which
is able to transfer your object from/to text. Then just choose this
TypeConverter for an TextPresenters typeconverter property.

CU,

Udo