Class PropertyBinding

    • Method Detail

      • isBidirectional

        public boolean isBidirectional()
        Specified by:
        isBidirectional in interface Binding
        Returns:
        true if this binding wants to be bidirectional. Note that if any transforms are present, then the binding will not operate in a bidirectional way.
      • onTargetPropertyChanged

        public void onTargetPropertyChanged​(QualifiedValue newTargetValue)
        Description copied from interface: Binding
        This will be called when the target property changes from a source other than the binding, if the binding returns true from Binding.isBidirectional() and there are no transforms present.
        Specified by:
        onTargetPropertyChanged in interface Binding
      • onUserRefresh

        public void onUserRefresh()
        Description copied from interface: Binding
        Called to prompt the binding to produce a value as soon as possible. This _not_ the normal way that bindings work. Bindings are expected to produce a value un-prompted after startup, and then again whenever they feel is appropriate. This is there to allow the user to call component.refreshBinding(property) and prompt a non-polling binding to run.
        Specified by:
        onUserRefresh in interface Binding