Package sc.bind
Class TernaryBinding
- java.lang.Object
-
- sc.bind.AbstractListener
-
- sc.bind.DestinationListener
-
- sc.bind.AbstractMethodBinding
-
- sc.bind.TernaryBinding
-
public class TernaryBinding extends AbstractMethodBinding
-
-
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 TernaryBinding(java.lang.Object dstObject, IBinding dstBinding, IBinding[] parameterBindings, BindingDirection dir, int flags, BindOptions opts)
TernaryBinding(IBinding[] parameterBindings)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
initParams()
void
invalidateBinding(java.lang.Object obj, boolean sendEvent, int event, boolean includeParams)
When we are invalidated, do not run any children of the ternary.protected java.lang.Object
invokeMethod(java.lang.Object obj, boolean pendingChild)
protected java.lang.Object
invokeReverseMethod(java.lang.Object obj, java.lang.Object value)
Called when reverse bindings fireboolean
isReversible()
protected boolean
needsMethodObj()
Override in subclasses that do not use the methObj so we can tell when the method just could not be resolvedjava.lang.String
toString(java.lang.String operation, boolean displayValue)
-
Methods inherited from class sc.bind.AbstractMethodBinding
accessBinding, activate, addBindingListener, applyBinding, applyChangedValue, applyPendingChildValue, applyPendingValue, applyReverseBinding, cleanParamValues, equalObjects, getBoundParams, getBoundValueForChild, getPropertyValue, hasNullParams, hasPendingParams, hasUnsetParams, initFlagsOnChildren, initializeBinding, isConstant, isRefreshDisabled, isValid, parentBindingChanged, refreshBinding, removeBindingListener, removeListener, setBindingParent, setMethObj, toBindingString, useParens, valueInvalidated, valueValidated
-
Methods inherited from class sc.bind.DestinationListener
accessObj, addCurrentScopeContext, getCurrentScopeContexts, getTrace, getUnsetOrPending, getVerbose, initFlags, isCrossScope, isDefinedObject, isValidObject, toString, toString
-
Methods inherited from class sc.bind.AbstractListener
arrayElementChanged, arrayElementInvalidated, arrayElementValidated, getPriority, getSync, listenerAdded, performCast, valueChanged, valueRequested
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface sc.bind.IBinding
performCast
-
-
-
-
Constructor Detail
-
TernaryBinding
public TernaryBinding(IBinding[] parameterBindings)
-
TernaryBinding
public TernaryBinding(java.lang.Object dstObject, IBinding dstBinding, IBinding[] parameterBindings, BindingDirection dir, int flags, BindOptions opts)
-
-
Method Detail
-
initParams
protected void initParams()
- Overrides:
initParams
in classAbstractMethodBinding
-
needsMethodObj
protected boolean needsMethodObj()
Description copied from class:AbstractMethodBinding
Override in subclasses that do not use the methObj so we can tell when the method just could not be resolved- Overrides:
needsMethodObj
in classAbstractMethodBinding
-
invokeMethod
protected java.lang.Object invokeMethod(java.lang.Object obj, boolean pendingChild)
- Specified by:
invokeMethod
in classAbstractMethodBinding
-
invokeReverseMethod
protected java.lang.Object invokeReverseMethod(java.lang.Object obj, java.lang.Object value)
Called when reverse bindings fire- Specified by:
invokeReverseMethod
in classAbstractMethodBinding
-
toString
public java.lang.String toString(java.lang.String operation, boolean displayValue)
- Overrides:
toString
in classDestinationListener
-
invalidateBinding
public void invalidateBinding(java.lang.Object obj, boolean sendEvent, int event, boolean includeParams)
When we are invalidated, do not run any children of the ternary.- Specified by:
invalidateBinding
in interfaceIBinding
- Overrides:
invalidateBinding
in classAbstractMethodBinding
-
isReversible
public boolean isReversible()
- Specified by:
isReversible
in interfaceIBinding
- Overrides:
isReversible
in classAbstractMethodBinding
-
-