Thursday, August 8, 2013

PropertyAcess : Define condition values for label in PropertyAcess

I have a model called Field which has id and label.

I have defined PropertyAcess as below and it works. I would like to change it in such a way that I can show label based on condition ie if field.getLabel() is null, use field.getId() as label else use field.getLabel() as label. How can I acheieve that

interface FieldProperties extends PropertyAccess<Field> {    ModelKeyProvider<Field> id();      LabelProvider<Field> label();      @Path("label")    ValueProvider<Field, String> labelProp();   }  

Thanks

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment