Search in sources :

Example 1 with PropertyViewAttributeBinder

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

Example 2 with PropertyViewAttributeBinder

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

Example 3 with PropertyViewAttributeBinder

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

Example 4 with PropertyViewAttributeBinder

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;
}
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 5 with PropertyViewAttributeBinder

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

Aggregations

MultiTypePropertyViewAttributeBinder (org.robobinding.viewattribute.property.MultiTypePropertyViewAttributeBinder)6 PropertyViewAttributeBinder (org.robobinding.viewattribute.property.PropertyViewAttributeBinder)6 ValueModelAttribute (org.robobinding.attribute.ValueModelAttribute)5 Test (org.junit.Test)1 ViewAttributeBinder (org.robobinding.viewattribute.ViewAttributeBinder)1 EventViewAttributeBinder (org.robobinding.viewattribute.event.EventViewAttributeBinder)1 GroupedViewAttributeBinder (org.robobinding.viewattribute.grouped.GroupedViewAttributeBinder)1 MultiTypePropertyViewAttributeBinderFactory (org.robobinding.viewattribute.property.MultiTypePropertyViewAttributeBinderFactory)1 PropertyViewAttributeBinderFactory (org.robobinding.viewattribute.property.PropertyViewAttributeBinderFactory)1