use of org.robobinding.attribute.ValueModelAttribute in project RoboBinding by RoboBinding.
the class OneWayBindingPropertyTest method aBoundProperty.
private OneWayBindingProperty aBoundProperty() {
ValueModelAttribute attribute = aValueModelAttribute(PROPERTY_NAME);
OneWayBindingProperty bindingProperty = new OneWayBindingProperty(view, viewAttributeSpy, attribute);
BindingContext bindingContext = aBindingContextWithReadOnlyProperty(PROPERTY_NAME, valueModel);
bindingProperty.performBind(bindingContext);
return bindingProperty;
}
use of org.robobinding.attribute.ValueModelAttribute in project RoboBinding by RoboBinding.
the class TwoWayBindingPropertyTest method aBoundProperty.
private TwoWayBindingProperty aBoundProperty(ValueModel<Integer> valueModel) {
ValueModelAttribute attribute = aValueModelAttribute(PROPERTY_NAME);
TwoWayBindingProperty bindingProperty = new TwoWayBindingProperty(view, viewAddOn, viewAttributeSpy, attribute);
BindingContext bindingContext = aBindingContextWithProperty(PROPERTY_NAME, valueModel);
bindingProperty.performBind(bindingContext);
return bindingProperty;
}
use of org.robobinding.attribute.ValueModelAttribute in project RoboBinding by RoboBinding.
the class ChildViewAttributesBuilderImpl method add.
@Override
public void add(String attributeName, OneWayPropertyViewAttribute<ViewType, ?> viewAttribute) {
ValueModelAttribute attribute = resolvedGroupAttributes.valueModelAttributeFor(attributeName);
PropertyViewAttributeBinder viewAttributeBinder = viewAttributeBinderFactory.binderFor(viewAttribute, attribute);
childViewAttributeMap.put(attributeName, viewAttributeBinder);
}
use of org.robobinding.attribute.ValueModelAttribute in project RoboBinding by RoboBinding.
the class ChildViewAttributesBuilderImpl method add.
@Override
public void add(String attributeName, TwoWayPropertyViewAttribute<ViewType, ?, ?> viewAttribute) {
ValueModelAttribute attribute = resolvedGroupAttributes.valueModelAttributeFor(attributeName);
PropertyViewAttributeBinder viewAttributeBinder = viewAttributeBinderFactory.binderFor(viewAttribute, attribute);
childViewAttributeMap.put(attributeName, viewAttributeBinder);
}
use of org.robobinding.attribute.ValueModelAttribute in project RoboBinding by RoboBinding.
the class ChildViewAttributesBuilderImpl method add.
@Override
public void add(String propertyAttribute, OneWayPropertyViewAttributeFactory<ViewType> factory) {
ValueModelAttribute attribute = resolvedGroupAttributes.valueModelAttributeFor(propertyAttribute);
PropertyViewAttributeBinder viewAttributeBinder = viewAttributeBinderFactory.binderFor(factory, attribute);
childViewAttributeMap.put(propertyAttribute, viewAttributeBinder);
}
Aggregations