Search in sources :

Example 6 with ValueModelAttribute

use of org.robobinding.attribute.ValueModelAttribute in project RoboBinding by RoboBinding.

the class ChildViewAttributesBuilderImpl method add.

@Override
public void add(String attributeName, OneWayMultiTypePropertyViewAttributeFactory<ViewType> factory) {
    ValueModelAttribute attribute = resolvedGroupAttributes.valueModelAttributeFor(attributeName);
    MultiTypePropertyViewAttributeBinder viewAttributeBinder = viewAttributeBinderFactory.binderFor(factory, attribute);
    childViewAttributeMap.put(attributeName, viewAttributeBinder);
}
Also used : MultiTypePropertyViewAttributeBinder(org.robobinding.viewattribute.property.MultiTypePropertyViewAttributeBinder) ValueModelAttribute(org.robobinding.attribute.ValueModelAttribute)

Example 7 with ValueModelAttribute

use of org.robobinding.attribute.ValueModelAttribute in project RoboBinding by RoboBinding.

the class ChildViewAttributesBuilderImpl method add.

@Override
public void add(String attributeName, TwoWayMultiTypePropertyViewAttribute<ViewType> viewAttribute) {
    ValueModelAttribute attribute = resolvedGroupAttributes.valueModelAttributeFor(attributeName);
    MultiTypePropertyViewAttributeBinder viewAttributeBinder = viewAttributeBinderFactory.binderFor(viewAttribute, attribute);
    childViewAttributeMap.put(attributeName, viewAttributeBinder);
}
Also used : MultiTypePropertyViewAttributeBinder(org.robobinding.viewattribute.property.MultiTypePropertyViewAttributeBinder) ValueModelAttribute(org.robobinding.attribute.ValueModelAttribute)

Example 8 with ValueModelAttribute

use of org.robobinding.attribute.ValueModelAttribute 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;
}
Also used : MultiTypePropertyViewAttributeBinderFactory(org.robobinding.viewattribute.property.MultiTypePropertyViewAttributeBinderFactory) PropertyViewAttributeBinderFactory(org.robobinding.viewattribute.property.PropertyViewAttributeBinderFactory) ValueModelAttribute(org.robobinding.attribute.ValueModelAttribute) PropertyViewAttributeBinder(org.robobinding.viewattribute.property.PropertyViewAttributeBinder) MultiTypePropertyViewAttributeBinder(org.robobinding.viewattribute.property.MultiTypePropertyViewAttributeBinder)

Example 9 with ValueModelAttribute

use of org.robobinding.attribute.ValueModelAttribute in project RoboBinding by RoboBinding.

the class ChildViewAttributesBuilderImpl method add.

@Override
public void add(String attributeName, TwoWayMultiTypePropertyViewAttributeFactory<ViewType> factory) {
    ValueModelAttribute attribute = resolvedGroupAttributes.valueModelAttributeFor(attributeName);
    MultiTypePropertyViewAttributeBinder viewAttributeBinder = viewAttributeBinderFactory.binderFor(factory, attribute);
    childViewAttributeMap.put(attributeName, viewAttributeBinder);
}
Also used : MultiTypePropertyViewAttributeBinder(org.robobinding.viewattribute.property.MultiTypePropertyViewAttributeBinder) ValueModelAttribute(org.robobinding.attribute.ValueModelAttribute)

Example 10 with ValueModelAttribute

use of org.robobinding.attribute.ValueModelAttribute in project RoboBinding by RoboBinding.

the class ChildViewAttributesBuilderImpl method add.

@Override
public void add(String attributeName, OneWayMultiTypePropertyViewAttribute<ViewType> viewAttribute) {
    ValueModelAttribute attribute = resolvedGroupAttributes.valueModelAttributeFor(attributeName);
    MultiTypePropertyViewAttributeBinder viewAttributeBinder = viewAttributeBinderFactory.binderFor(viewAttribute, attribute);
    childViewAttributeMap.put(attributeName, viewAttributeBinder);
}
Also used : MultiTypePropertyViewAttributeBinder(org.robobinding.viewattribute.property.MultiTypePropertyViewAttributeBinder) ValueModelAttribute(org.robobinding.attribute.ValueModelAttribute)

Aggregations

ValueModelAttribute (org.robobinding.attribute.ValueModelAttribute)12 MultiTypePropertyViewAttributeBinder (org.robobinding.viewattribute.property.MultiTypePropertyViewAttributeBinder)10 PropertyViewAttributeBinder (org.robobinding.viewattribute.property.PropertyViewAttributeBinder)5 BindingContext (org.robobinding.BindingContext)2 Attributes.aValueModelAttribute (org.robobinding.attribute.Attributes.aValueModelAttribute)2 MultiTypePropertyViewAttributeBinderFactory (org.robobinding.viewattribute.property.MultiTypePropertyViewAttributeBinderFactory)2 PropertyViewAttributeBinderFactory (org.robobinding.viewattribute.property.PropertyViewAttributeBinderFactory)1