Package sc.bind

Interface IListener

    • Field Detail

      • VALUE_CHANGED

        static final int VALUE_CHANGED
        Listen for both invalidated and validated events on the value. Does not listen for array element changes
        See Also:
        Constant Field Values
      • VALUE_CHANGED_MASK

        static final int VALUE_CHANGED_MASK
        Use this to listen on any change events for a given value - the raw value, or the array element values
        See Also:
        Constant Field Values
      • UNSET_VALUE_SENTINEL

        static final java.lang.Object UNSET_VALUE_SENTINEL
        Stored internally to mark the case where we were not able to evaluate a given value
      • PENDING_VALUE_SENTINEL

        static final java.lang.Object PENDING_VALUE_SENTINEL
        Stored to mark the case where we've invoked an asynchronous call to retrieve the value. We don't fire the binding but mark it pending, to fire when the response comes in.
    • Method Detail

      • valueRequested

        void valueRequested​(java.lang.Object obj,
                            java.lang.Object prop)
      • valueChanged

        boolean valueChanged​(java.lang.Object srcObj,
                             java.lang.Object srcProp,
                             java.lang.Object eventDetail,
                             boolean apply)
        Called to notify the listener of a VALUE_CHANGED event on the property srcProp. The eventDetail may include the new value but is mainly used for debug logging. Typically code using or implementing a binding will get the current property rather than rely on the value propagated in the event since it might have changed since the delivery started.

        This method returns true if the binding detected that the value had changed. False if it is detects the binding did not change. Since most listeners cache the old value, they can tell whether we need to keep processing this change. If you do not cache the old value, just return "true".

      • valueInvalidated

        boolean valueInvalidated​(java.lang.Object srcObj,
                                 java.lang.Object srcProp,
                                 java.lang.Object eventDetail,
                                 boolean apply)
      • valueValidated

        boolean valueValidated​(java.lang.Object srcObj,
                               java.lang.Object srcProp,
                               java.lang.Object eventDetail,
                               boolean apply)
      • arrayElementChanged

        boolean arrayElementChanged​(java.lang.Object srcObj,
                                    java.lang.Object srcProp,
                                    java.lang.Object dims,
                                    boolean apply)
      • arrayElementInvalidated

        boolean arrayElementInvalidated​(java.lang.Object srcObj,
                                        java.lang.Object srcProp,
                                        java.lang.Object dims,
                                        boolean apply)
      • arrayElementValidated

        boolean arrayElementValidated​(java.lang.Object srcObj,
                                      java.lang.Object srcProp,
                                      java.lang.Object dims,
                                      boolean apply)
      • listenerAdded

        boolean listenerAdded​(java.lang.Object srcObj,
                              java.lang.Object srcProp,
                              java.lang.Object listener,
                              int eventMask,
                              int priority)
      • getPriority

        float getPriority()
      • getTrace

        boolean getTrace()
        Override and return true if trace is enabled to get tracing of property-set for any property using this listener
      • getVerbose

        boolean getVerbose()
      • isCrossScope

        boolean isCrossScope()