to.etc.domui.component.input
Interface IBinder

All Superinterfaces:
IModelBinding
All Known Implementing Classes:
DisplayOnlyBinder, SimpleBinder

public interface IBinder
extends IModelBinding

EXPERIMENTAL - DO NOT USE. A thingy which handles binding a control to a model/property, data move event or IReadOnlyModel/property. FIXME Question - should this be a IModelBinding or should this have a IModelBinding?

Author:
Frits Jalvingh Created on Oct 13, 2009

Method Summary
 boolean isBound()
          If this object is actually bound to something return true.
<T> void
to(java.lang.Class<T> theClass, IReadOnlyModel<T> model, java.lang.String property)
          Create a binding between the associated control, the specified model and the property specified.
 void to(IBindingListener<?> listener)
          Bind the control to a listener.
<T> void
to(IReadOnlyModel<T> model, PropertyMetaModel<?> pmm)
          Create a binding between the specified model and the property whose metadata is passed in.
 void to(java.lang.Object instance, PropertyMetaModel<?> pmm)
          Create a binding to the associated instance's property whose metadata is passed.
 void to(java.lang.Object instance, java.lang.String property)
          Create a binding to the associated control and the specified object instance and the named property of that instance.
 
Methods inherited from interface to.etc.domui.component.form.IModelBinding
moveControlToModel, moveModelToControl, setControlsEnabled
 

Method Detail

to

void to(@Nonnull
        java.lang.Object instance,
        @Nonnull
        java.lang.String property)
Create a binding to the associated control and the specified object instance and the named property of that instance.

Parameters:
instance -
property -

to

void to(@Nonnull
        java.lang.Object instance,
        @Nonnull
        PropertyMetaModel<?> pmm)
Create a binding to the associated instance's property whose metadata is passed.

Parameters:
instance -
pmm -

to

<T> void to(@Nonnull
            java.lang.Class<T> theClass,
            @Nonnull
            IReadOnlyModel<T> model,
            @Nonnull
            java.lang.String property)
Create a binding between the associated control, the specified model and the property specified.

Type Parameters:
T -
Parameters:
theClass -
model -
property -

to

<T> void to(@Nonnull
            IReadOnlyModel<T> model,
            @Nonnull
            PropertyMetaModel<?> pmm)
Create a binding between the specified model and the property whose metadata is passed in.

Type Parameters:
T -
Parameters:
model - The model to obtain an instance from
pmm - The propertymeta for a property on that instance.

to

void to(@Nonnull
        IBindingListener<?> listener)
Bind the control to a listener.

Parameters:
listener -

isBound

boolean isBound()
If this object is actually bound to something return true.

Returns: