public static class OptionsBinder.OptionBindingImpl<V> extends java.lang.Object implements OptionsBinding<V>
Modifier and Type | Field and Description |
---|---|
protected Component |
component |
protected com.haulmont.bali.events.Subscription |
componentValueChangeSubscription |
protected OptionsBinder.OptionsTarget<V> |
optionsTarget |
protected Options<V> |
source |
protected com.haulmont.bali.events.Subscription |
sourceOptionsChangeSupscription |
protected com.haulmont.bali.events.Subscription |
sourceStateChangeSupscription |
protected com.haulmont.bali.events.Subscription |
sourceValueChangeSupscription |
Constructor and Description |
---|
OptionBindingImpl(Options<V> source,
Component component,
OptionsBinder.OptionsTarget<V> optionsTarget) |
Modifier and Type | Method and Description |
---|---|
void |
activate() |
<E extends Entity> |
bind() |
protected void |
componentValueChanged(HasValue.ValueChangeEvent event) |
Component |
getComponent() |
Options<V> |
getSource() |
protected void |
optionsSourceOptionsChanged(Options.OptionsChangeEvent<V> event) |
protected void |
optionsSourceStateChanged(DataUnit.StateChangeEvent event) |
protected void |
optionsSourceValueChanged(EntityOptions.ValueChangeEvent<? extends Entity> event) |
void |
unbind()
Destroy data binding.
|
protected OptionsBinder.OptionsTarget<V> optionsTarget
protected Component component
protected com.haulmont.bali.events.Subscription componentValueChangeSubscription
protected com.haulmont.bali.events.Subscription sourceStateChangeSupscription
protected com.haulmont.bali.events.Subscription sourceOptionsChangeSupscription
protected com.haulmont.bali.events.Subscription sourceValueChangeSupscription
public OptionBindingImpl(Options<V> source, Component component, OptionsBinder.OptionsTarget<V> optionsTarget)
public Options<V> getSource()
getSource
in interface OptionsBinding<V>
public Component getComponent()
getComponent
in interface OptionsBinding<V>
public void activate()
activate
in interface OptionsBinding<V>
public <E extends Entity> void bind()
protected void optionsSourceOptionsChanged(Options.OptionsChangeEvent<V> event)
protected void optionsSourceValueChanged(EntityOptions.ValueChangeEvent<? extends Entity> event)
protected void componentValueChanged(HasValue.ValueChangeEvent event)
protected void optionsSourceStateChanged(DataUnit.StateChangeEvent event)