Package sc.bind
Class ArraySelectorBinding
- java.lang.Object
-
- sc.bind.AbstractListener
-
- sc.bind.ArraySelectorBinding
-
public class ArraySelectorBinding extends AbstractListener implements IBinding
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface sc.bind.IListener
IListener.SyncType
-
-
Field Summary
-
Fields inherited from interface sc.bind.IListener
ARRAY_ELEMENT_CHANGED, ARRAY_ELEMENT_INVALIDATED, ARRAY_ELEMENT_VALIDATED, LISTENER_ADDED, PENDING_VALUE_SENTINEL, UNSET_VALUE_SENTINEL, VALUE_CHANGED, VALUE_CHANGED_MASK, VALUE_INVALIDATED, VALUE_REQUESTED, VALUE_VALIDATED
-
-
Constructor Summary
Constructors Constructor Description ArraySelectorBinding(IBinding arrayElementBinding)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addBindingListener(java.lang.Object eventObject, IListener listener, int event)
boolean
applyBinding(java.lang.Object obj, java.lang.Object value, IBinding src, boolean refresh, boolean pendingChild)
void
applyReverseBinding(java.lang.Object obj, java.lang.Object value, java.lang.Object src)
java.lang.Object
getBoundValue(boolean pendingChild)
java.lang.Object
getPropertyValue(java.lang.Object parent, boolean getField, boolean pendingChild)
Retrieves the current value of the binding given the current object.java.lang.Object
initializeBinding()
void
invalidateBinding(java.lang.Object object, boolean sendEvent, int event, boolean includeParams)
boolean
isConstant()
boolean
isReversible()
void
parentBindingChanged()
Remap Java bean style eventsvoid
removeBindingListener(java.lang.Object eventObject, IListener listener, int event)
void
removeListener()
void
setBindingParent(IBinding parent, BindingDirection dir)
boolean
valueInvalidated(java.lang.Object srcObj, java.lang.Object srcProp, java.lang.Object eventDetail, boolean apply)
boolean
valueValidated(java.lang.Object srcObj, java.lang.Object srcProp, java.lang.Object eventDetail, boolean apply)
-
Methods inherited from class sc.bind.AbstractListener
activate, arrayElementChanged, arrayElementInvalidated, arrayElementValidated, getCurrentScopeContexts, getPriority, getSync, getTrace, getVerbose, isCrossScope, listenerAdded, performCast, valueChanged, valueRequested
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface sc.bind.IBinding
activate, performCast
-
-
-
-
Constructor Detail
-
ArraySelectorBinding
public ArraySelectorBinding(IBinding arrayElementBinding)
-
-
Method Detail
-
initializeBinding
public java.lang.Object initializeBinding()
- Specified by:
initializeBinding
in interfaceIBinding
-
setBindingParent
public void setBindingParent(IBinding parent, BindingDirection dir)
- Specified by:
setBindingParent
in interfaceIBinding
-
isConstant
public boolean isConstant()
- Specified by:
isConstant
in interfaceIBinding
-
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.- Specified by:
getPropertyValue
in interfaceIBinding
-
getBoundValue
public java.lang.Object getBoundValue(boolean pendingChild)
-
addBindingListener
public void addBindingListener(java.lang.Object eventObject, IListener listener, int event)
- Specified by:
addBindingListener
in interfaceIBinding
-
removeBindingListener
public void removeBindingListener(java.lang.Object eventObject, IListener listener, int event)
- Specified by:
removeBindingListener
in interfaceIBinding
-
invalidateBinding
public void invalidateBinding(java.lang.Object object, boolean sendEvent, int event, boolean includeParams)
- Specified by:
invalidateBinding
in interfaceIBinding
-
applyBinding
public boolean applyBinding(java.lang.Object obj, java.lang.Object value, IBinding src, boolean refresh, boolean pendingChild)
- Specified by:
applyBinding
in interfaceIBinding
-
applyReverseBinding
public void applyReverseBinding(java.lang.Object obj, java.lang.Object value, java.lang.Object src)
- Specified by:
applyReverseBinding
in interfaceIBinding
-
removeListener
public void removeListener()
- Specified by:
removeListener
in interfaceIBinding
-
parentBindingChanged
public void parentBindingChanged()
Description copied from class:AbstractListener
Remap Java bean style events- Specified by:
parentBindingChanged
in interfaceIBinding
- Overrides:
parentBindingChanged
in classAbstractListener
-
valueInvalidated
public boolean valueInvalidated(java.lang.Object srcObj, java.lang.Object srcProp, java.lang.Object eventDetail, boolean apply)
- Specified by:
valueInvalidated
in interfaceIListener
- Overrides:
valueInvalidated
in classAbstractListener
-
valueValidated
public boolean valueValidated(java.lang.Object srcObj, java.lang.Object srcProp, java.lang.Object eventDetail, boolean apply)
- Specified by:
valueValidated
in interfaceIListener
- Overrides:
valueValidated
in classAbstractListener
-
isReversible
public boolean isReversible()
- Specified by:
isReversible
in interfaceIBinding
-
-