How to seperate the model from the view?

Posted by geejay on Stack Overflow See other posts from Stack Overflow or by geejay
Published on 2010-05-27T14:33:48Z Indexed on 2010/05/27 14:41 UTC
Read the original article Hit count: 204

I have a bunch of model objects.

These objects end up being rendered as views (say forms) in a rich client app.

I started to annotate the fields in the model objects (Java annotations) with things that let me render them as forms on the fly (e.g displayname, group, page, validvalues).

I now realise that the view has crept into the model.

How should I seperate the view logic out of the model objects?

TECH: Java, Java Annotations, Eclipse RCP

© Stack Overflow or respective owner

Related posts about java

Related posts about eclipse-rcp