|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectto.etc.domui.component.input.DisplayOnlyBinder
public class DisplayOnlyBinder
This is a binder to be used when IDisplayControl's are to be bound to a model.
Constructor Summary | |
---|---|
DisplayOnlyBinder(IDisplayControl<?> control)
|
Method Summary | ||
---|---|---|
boolean |
isBound()
Returns T if this contains an actual binding. |
|
void |
moveControlToModel()
Move the control value to wherever it's needed. |
|
void |
moveModelToControl()
|
|
void |
setControlsEnabled(boolean on)
Not applicable for display-only controls. |
|
|
to(java.lang.Class<T> theClass,
IReadOnlyModel<T> model,
java.lang.String property)
Bind to a property of the object returned by this model. |
|
void |
to(IBindingListener<?> listener)
Bind the control to a listener. |
|
|
to(IReadOnlyModel<T> model,
PropertyMetaModel<?> pmm)
Bind to a property on some model whose metadata is passed. |
|
void |
to(java.lang.Object instance,
PropertyMetaModel<?> pmm)
Bind to a propertyMetaModel and the given instance. |
|
void |
to(java.lang.Object instance,
java.lang.String property)
Bind to a property of the instance specified. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DisplayOnlyBinder(@Nonnull IDisplayControl<?> control)
Method Detail |
---|
public boolean isBound()
isBound
in interface IBinder
IBinder.isBound()
public <T> void to(@Nonnull java.lang.Class<T> theClass, @Nonnull IReadOnlyModel<T> model, @Nonnull java.lang.String property)
to
in interface IBinder
IBinder.to(java.lang.Class, to.etc.domui.util.IReadOnlyModel, java.lang.String)
public <T> void to(@Nonnull IReadOnlyModel<T> model, @Nonnull PropertyMetaModel<?> pmm)
to
in interface IBinder
T
- model
- pmm
- public void to(@Nonnull IBindingListener<?> listener)
IBinder
to
in interface IBinder
IBinder.to(to.etc.domui.component.input.IBindingListener)
public void to(@Nonnull java.lang.Object instance, @Nonnull java.lang.String property)
to
in interface IBinder
IBinder.to(java.lang.Object, java.lang.String)
public void to(@Nonnull java.lang.Object instance, @Nonnull PropertyMetaModel<?> pmm)
to
in interface IBinder
instance
- pmm
- public void moveControlToModel() throws java.lang.Exception
moveControlToModel
in interface IModelBinding
java.lang.Exception
IModelBinding.moveControlToModel()
public void moveModelToControl() throws java.lang.Exception
moveModelToControl
in interface IModelBinding
java.lang.Exception
public void setControlsEnabled(boolean on)
setControlsEnabled
in interface IModelBinding
IModelBinding.setControlsEnabled(boolean)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |