Skip to content

Instantly share code, notes, and snippets.

@mbarkley
Created March 28, 2017 14:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mbarkley/57263b6c2ab4873706e226cf1e099a3b to your computer and use it in GitHub Desktop.
Save mbarkley/57263b6c2ab4873706e226cf1e099a3b to your computer and use it in GitHub Desktop.
Bindable wrapper
@Bindable
public class Wrapper {
private Model wrapped;
public void wrap(Model wrapped) {
this.wrapped = wrapped;
}
public void setFoo(Object foo) {
wrap.setFoo(foo);
}
public Object getFoo() {
return wrap.getFoo();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment