Skipping classes in class hierarchy with Editor Framework?

20 views
Skip to first unread message

Jens

unread,
Apr 17, 2012, 12:40:33 PM4/17/12
to google-we...@googlegroups.com
Hi,

is it somehow possible to skip classes in a class hierarchy when using the Editor Framework? 

For example I have lightweight model classes that only contains a Long id and the actual model with all properties. If a property is a list of other model classes this list only contains the lightweight version of the model.

Example hierarchy:

Model1Lite
  -> Long id
  -> Model1
        -> simple properties (Strings, etc.)
        -> List<Model2Lite>
              -> each Model2Lite contains a Long id and Model2.

I haven't found a way to skip all the Model1Lite classes when building up an editor hierarchy. Is this somehow possible?

-- J.

Aidan O'Kelly

unread,
Apr 17, 2012, 12:53:52 PM4/17/12
to google-we...@googlegroups.com
If I understand you correctly, using @Path with the dot syntax should work:
 
@Path("model.x.y.otherModels") 
OtherModelListEditor otherModels; 



-- J.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/XZD-waK5g7cJ.
To post to this group, send email to google-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Jens

unread,
Apr 17, 2012, 2:02:15 PM4/17/12
to google-we...@googlegroups.com
Ahhh good catch, totally forgot that. Works now, thanks :)

-- J.
Reply all
Reply to author
Forward
0 new messages