Skip to content

Watch for view model changes #7

Description

@kuhnza

Is there an easier/more elegant way to watch for view model changes from arbitrary classes? I seem to be able to do it like this:

void bind() {
  Trackable.track(new Tracker() {
      @Override
      public void update() {
        System.out.println("Tracker#update");
        bind();
      }
  }, new ReflectedProperty(model, "Name").getGetter());  // where model has get/setName
}

It feels nasty and verbose though.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions