Skip to content
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

Improve Bindings #9

Open
3 tasks
skaldarnar opened this issue Aug 9, 2020 · 0 comments
Open
3 tasks

Improve Bindings #9

skaldarnar opened this issue Aug 9, 2020 · 0 comments
Labels
Revive: Convert ssue has been looked at and should be converted to a GitHub discussion Status: Needs Discussion Requires help discussing a reported issue or provided PR

Comments

@skaldarnar
Copy link
Member

  • add a simple way to create ReadOnlyBinding<T> from a Binding<T>. Where to add helper methods like this?

    public static <T> ReadOnlyBinding<T> fromBinding(Binding<T> binding) {
      return new ReadOnlyBinding<T>() {
        private final Binding<T> internal = binding;
    
        @Override
        public T get() {
          return internal.get();
        }
      };
    }
  • ensure that most properties are also exposed as read-only bindings; double check set binding vs bind

  • document which accessors should be available for bindable properties

@skaldarnar skaldarnar added the Status: Needs Discussion Requires help discussing a reported issue or provided PR label Aug 9, 2020
@jdrueckert jdrueckert added the Revive: Convert ssue has been looked at and should be converted to a GitHub discussion label Jul 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Revive: Convert ssue has been looked at and should be converted to a GitHub discussion Status: Needs Discussion Requires help discussing a reported issue or provided PR
Projects
None yet
Development

No branches or pull requests

2 participants