Search in sources :

Example 1 with MultiTypePropertyViewAttributeBinderFactory

use of org.robobinding.viewattribute.property.MultiTypePropertyViewAttributeBinderFactory in project RoboBinding by RoboBinding.

the class MockInitializedBindingAttributeMappingsBuilder method withMultiTypePropertyAttribute.

public MockInitializedBindingAttributeMappingsBuilder withMultiTypePropertyAttribute(String attribute, final MultiTypePropertyViewAttributeBinder viewAttributeBinder) {
    multiTypePropertyAttributes.add(attribute);
    multiTypePropertyViewAttributeBinderFactoryMap.put(attribute, new MultiTypePropertyViewAttributeBinderFactory(null, null) {

        @Override
        public MultiTypePropertyViewAttributeBinder create(Object view, String attributeName, String attributeValue) {
            return viewAttributeBinder;
        }

        @Override
        public MultiTypePropertyViewAttributeBinder create(Object view, ValueModelAttribute attribute) {
            return viewAttributeBinder;
        }
    });
    return this;
}
Also used : MultiTypePropertyViewAttributeBinder(org.robobinding.viewattribute.property.MultiTypePropertyViewAttributeBinder) ValueModelAttribute(org.robobinding.attribute.ValueModelAttribute) MultiTypePropertyViewAttributeBinderFactory(org.robobinding.viewattribute.property.MultiTypePropertyViewAttributeBinderFactory)

Aggregations

ValueModelAttribute (org.robobinding.attribute.ValueModelAttribute)1 MultiTypePropertyViewAttributeBinder (org.robobinding.viewattribute.property.MultiTypePropertyViewAttributeBinder)1 MultiTypePropertyViewAttributeBinderFactory (org.robobinding.viewattribute.property.MultiTypePropertyViewAttributeBinderFactory)1