Package sc.bind

Class AssignmentBinding

    • Constructor Detail

      • AssignmentBinding

        public AssignmentBinding​(java.lang.Object srcObject,
                                 VariableBinding lhsBinding,
                                 IBinding rhsBinding)
      • AssignmentBinding

        public AssignmentBinding​(java.lang.Object srcObject,
                                 VariableBinding lhsBinding,
                                 java.lang.Object rhsValue)
      • AssignmentBinding

        public AssignmentBinding​(java.lang.Object dstObject,
                                 IBinding dstProperty,
                                 java.lang.Object srcObject,
                                 VariableBinding lhsBinding,
                                 java.lang.Object rhsValue,
                                 BindingDirection bindingDirection,
                                 int flags,
                                 BindOptions opts)
    • Method Detail

      • getPropertyValue

        public java.lang.Object getPropertyValue​(java.lang.Object parent,
                                                 boolean getField,
                                                 boolean pendingChild)
        Description copied from interface: IBinding
        Retrieves the current value of the binding given the current object. Use getField = true to force use of the field, rather than the getX method if one exists. Use pendingChild = true for a special case where we are getting the property value of a binding that is part of a reverse binding but where the cached value is up-to-update because we are updating a child remote property.
      • addBindingListener

        public void addBindingListener​(java.lang.Object eventObject,
                                       IListener listener,
                                       int event)
      • removeBindingListener

        public void removeBindingListener​(java.lang.Object eventObject,
                                          IListener listener,
                                          int event)
      • invalidateBinding

        public void invalidateBinding​(java.lang.Object object,
                                      boolean sendEvent,
                                      int event,
                                      boolean includeParams)
      • applyBinding

        public boolean applyBinding​(java.lang.Object obj,
                                    java.lang.Object value,
                                    IBinding src,
                                    boolean refresh,
                                    boolean pendingChild)
      • applyReverseBinding

        public void applyReverseBinding​(java.lang.Object obj,
                                        java.lang.Object value,
                                        java.lang.Object src)
      • applyReverseBinding

        protected void applyReverseBinding()
      • setBindingParent

        public void setBindingParent​(IBinding parent,
                                     BindingDirection dir)
        Called by the parent when this is a hierarchical binding - i.e. one expression in another
      • isConstant

        public boolean isConstant()
      • initializeBinding

        public java.lang.Object initializeBinding()
        Called to initialize and retrieve the value of a top-level binding
      • getBoundValue

        protected java.lang.Object getBoundValue()
      • initBinding

        protected void initBinding()
      • reactivate

        protected void reactivate​(java.lang.Object obj)
      • removeListener

        public void removeListener()
      • valueRequested

        public void valueRequested​(java.lang.Object obj,
                                   IBeanMapper prop)
      • bindingInvalidated

        protected void bindingInvalidated​(boolean apply)
      • toString

        public java.lang.String toString​(java.lang.String operation,
                                         boolean displayValue)
        Overrides:
        toString in class DestinationListener
      • activate

        public void activate​(boolean state,
                             java.lang.Object obj,
                             boolean chained)
        Description copied from interface: IBinding
        Called to deactive/re-activate a child binding for a condition or ternary expression
        Specified by:
        activate in interface IBinding
        Overrides:
        activate in class AbstractListener
      • isReversible

        public boolean isReversible()