|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.beans.binding.Binding.BindingController
public final class Binding.BindingController
BindingController is used by BindingTargets to control
the binding.
BindingTarget| Method Summary | |
|---|---|
void |
bind(Binding binding,
java.lang.Object source,
java.lang.Object target,
java.lang.String targetPath,
boolean keepUncommited)
Binds the specified child binding. |
ELPropertyResolver |
createResolver()
Creates and returns an ELPropertyResolver. |
Binding |
getBinding()
Returns the Binding. |
java.lang.Object |
getValueForTarget(Binding binding,
ELPropertyResolver resolver,
java.lang.Class<?> targetType)
Returns the value from the specified resolver. |
void |
unbindOnCommit(Binding binding)
Schedules a Binding to unbind when the
Binding is committed. |
void |
valueEdited()
Invoke to signal the target value has been edited. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public ELPropertyResolver createResolver()
ELPropertyResolver.
ELPropertyResolver
public java.lang.Object getValueForTarget(Binding binding,
ELPropertyResolver resolver,
java.lang.Class<?> targetType)
binding - the Binding the resolver was created forresolver - the resolver to use for getting the valuetargetType - the expected type of the value
java.lang.IllegalArgumentException - if any of the arguments are
nullpublic void valueEdited()
UNCOMMITTED and notifies the
BindingContext.
public Binding getBinding()
Binding.
Bindingpublic void unbindOnCommit(Binding binding)
Binding to unbind when the
Binding is committed.
binding - the Binding to remove
java.lang.NullPointerException - if binding is null
java.lang.IllegalArgumentException - if binding is not a
child of the Binding returned by
getBinding()
public void bind(Binding binding,
java.lang.Object source,
java.lang.Object target,
java.lang.String targetPath,
boolean keepUncommited)
binding - the Binding to bindsource - the source for the bindingtarget - the target for the bindingtargetPath - path for the targetkeepUncommited - if true the binding remains uncommited
even after the value is set on the source from the target
java.lang.IllegalArgumentException - if the specified
Binding is not a child of the Binding returned by
getBinding()
java.lang.IllegalStateException - if already bound, or
the source or target is null
PropertyResolverException - if PropertyResolver throws an
exception; refer to PropertyResolver for the conditions
under which an exception is thrown
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||