use of org.robobinding.viewattribute.property.PropertyViewAttributeBinder 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.viewattribute.property.PropertyViewAttributeBinder 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.viewattribute.property.PropertyViewAttributeBinder 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);
}
use of org.robobinding.viewattribute.property.PropertyViewAttributeBinder in project RoboBinding by RoboBinding.
the class MockInitializedBindingAttributeMappingsBuilder method withPropertyAttribute.
public MockInitializedBindingAttributeMappingsBuilder withPropertyAttribute(String attribute, final PropertyViewAttributeBinder viewAttributeBinder) {
propertyAttributes.add(attribute);
propertyViewAttributeBinderFactoryMap.put(attribute, new PropertyViewAttributeBinderFactory(null, null) {
@Override
public PropertyViewAttributeBinder create(Object view, String attributeName, String attributeValue) {
return viewAttributeBinder;
}
@Override
public PropertyViewAttributeBinder create(Object view, ValueModelAttribute attribute) {
return viewAttributeBinder;
}
});
return this;
}
use of org.robobinding.viewattribute.property.PropertyViewAttributeBinder in project RoboBinding by RoboBinding.
the class ChildViewAttributesBuilderImpl method add.
@Override
public void add(String attributeName, TwoWayPropertyViewAttributeFactory<ViewType> factory) {
ValueModelAttribute attribute = resolvedGroupAttributes.valueModelAttributeFor(attributeName);
PropertyViewAttributeBinder viewAttributeBinder = viewAttributeBinderFactory.binderFor(factory, attribute);
childViewAttributeMap.put(attributeName, viewAttributeBinder);
}
Aggregations