Skip to content

Support setters in UiBinder. #29

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: scalagwt
Choose a base branch
from

Conversation

nbauernfeind
Copy link

This is to support UiBinder in scala by using scala's auto generated setters.

A 'setter' is loosely defined as follows:

  1. It takes 1 parameter of field type.
  2. It's name contains the field name (case insensitive).
  3. It has return type void.

It's clearly not fool proof. I didn't think it made sense to hardcode the expected format for scala.

If this is too loose we could go to supporting only the 'set${fieldName}' format and require scala's annotation of @BeanProperty in addition to @UiField.

@nbauernfeind
Copy link
Author

Created an official issue with the GWT team:
http://code.google.com/p/google-web-toolkit/issues/detail?id=7194

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant