Search in sources :

Example 1 with EventViewAttributeBinderFactory

use of org.robobinding.viewattribute.event.EventViewAttributeBinderFactory in project RoboBinding by RoboBinding.

the class MockInitializedBindingAttributeMappingsBuilder method withEventAttribute.

public MockInitializedBindingAttributeMappingsBuilder withEventAttribute(String attribute, final EventViewAttributeBinder viewAttributeBinder) {
    eventAttributes.add(attribute);
    eventViewAttributeBinderFactoryMap.put(attribute, new EventViewAttributeBinderFactory(null, null) {

        @Override
        public EventViewAttributeBinder create(Object view, String attributeName, String attributeValue) {
            return viewAttributeBinder;
        }
    });
    return this;
}
Also used : EventViewAttributeBinderFactory(org.robobinding.viewattribute.event.EventViewAttributeBinderFactory) EventViewAttributeBinder(org.robobinding.viewattribute.event.EventViewAttributeBinder)

Aggregations

EventViewAttributeBinder (org.robobinding.viewattribute.event.EventViewAttributeBinder)1 EventViewAttributeBinderFactory (org.robobinding.viewattribute.event.EventViewAttributeBinderFactory)1