I guess your are using this for GXT grid. Since the PropertyAccess is used later to define a Column in the ColumModel of your grid, you need to define your how implementation of LabelProvider since the one generated through GWT.create(FieldProperties) will not work. Then, you create an instance of it at the time to bind it to the column.
-- Christian
Le jeudi 8 août 2013 17:37:21 UTC-4, Chulbul Pandey a écrit :
Le jeudi 8 août 2013 17:37:21 UTC-4, Chulbul Pandey a écrit :
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