Search in sources :

Example 1 with PropertyViewAttributeBinderFactory

use of org.robobinding.viewattribute.property.PropertyViewAttributeBinderFactory 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)

Aggregations

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