Package sc.bind

Class AbstractListener

    • Constructor Detail

      • AbstractListener

        public AbstractListener()
    • Method Detail

      • valueRequested

        public void valueRequested​(java.lang.Object obj,
                                   java.lang.Object prop)
        Specified by:
        valueRequested in interface IListener
      • valueInvalidated

        public boolean valueInvalidated​(java.lang.Object obj,
                                        java.lang.Object prop,
                                        java.lang.Object eventDetail,
                                        boolean apply)
        Specified by:
        valueInvalidated in interface IListener
      • valueValidated

        public boolean valueValidated​(java.lang.Object obj,
                                      java.lang.Object prop,
                                      java.lang.Object eventDetail,
                                      boolean apply)
        Specified by:
        valueValidated in interface IListener
      • valueChanged

        public boolean valueChanged​(java.lang.Object obj,
                                    java.lang.Object prop,
                                    java.lang.Object eventDetail,
                                    boolean apply)
        Description copied from interface: IListener
        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".

        Specified by:
        valueChanged in interface IListener
      • arrayElementChanged

        public boolean arrayElementChanged​(java.lang.Object obj,
                                           java.lang.Object prop,
                                           java.lang.Object dims,
                                           boolean apply)
        Specified by:
        arrayElementChanged in interface IListener
      • arrayElementValidated

        public boolean arrayElementValidated​(java.lang.Object obj,
                                             java.lang.Object prop,
                                             java.lang.Object dims,
                                             boolean apply)
        Specified by:
        arrayElementValidated in interface IListener
      • arrayElementInvalidated

        public boolean arrayElementInvalidated​(java.lang.Object obj,
                                               java.lang.Object prop,
                                               java.lang.Object dims,
                                               boolean apply)
        Specified by:
        arrayElementInvalidated in interface IListener
      • listenerAdded

        public boolean listenerAdded​(java.lang.Object obj,
                                     java.lang.Object prop,
                                     java.lang.Object listener,
                                     int eventMask,
                                     int priority)
        Specified by:
        listenerAdded in interface IListener
      • parentBindingChanged

        public void parentBindingChanged()
        Remap Java bean style events
      • performCast

        public java.lang.Object performCast​(java.lang.Object value)
        This is called by the parent binding before we apply a reverse binding. It might need to do some conversion of the value before it can set it to the destination (i.e. like a float to int conversion).
      • activate

        public void activate​(boolean state,
                             java.lang.Object obj,
                             boolean chained)
      • getTrace

        public boolean getTrace()
        Description copied from interface: IListener
        Override and return true if trace is enabled to get tracing of property-set for any property using this listener
        Specified by:
        getTrace in interface IListener