Skip to content

Improve Bindings #9

@skaldarnar

Description

@skaldarnar
  • 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Revive: Convertssue has been looked at and should be converted to a GitHub discussionStatus: Needs DiscussionRequires help discussing a reported issue or provided PR

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions