C# Class Spring.DataBinding.MultipleSelectionListControlBinding

Handles binding of a multiple selection ListControl to a target's IList property.
Inheritance: SimpleExpressionBinding
Mostrar archivo Open project: spring-projects/spring-net Class Usage Examples

Public Methods

Method Description
MultipleSelectionListControlBinding ( string sourceExpression, string targetExpression, BindingDirection direction, IFormatter itemFormatter ) : System

Creates a new instance of this binding.

If no formatter is specified, a DataSourceItemFormatter will be used.

Protected Methods

Method Description
DoBindSourceToTarget ( object source, object target, object>.IDictionary variables ) : void

Actually performs unbinding the ListControl's selected values into the target's IList

DoBindTargetToSource ( object source, object target, object>.IDictionary variables ) : void

Actually performs binding the targetlist to the ListControl.

SetSourceValue ( object source, object value, object>.IDictionary variables ) : void

Setting source value is not allowed in this bindingType.

SetTargetValue ( object target, object value, object>.IDictionary variables ) : void

Setting target value is not allowed in this bindingType.

Method Details

DoBindSourceToTarget() protected method

Actually performs unbinding the ListControl's selected values into the target's IList
protected DoBindSourceToTarget ( object source, object target, object>.IDictionary variables ) : void
source object
target object
variables object>.IDictionary
return void

DoBindTargetToSource() protected method

Actually performs binding the targetlist to the ListControl.
protected DoBindTargetToSource ( object source, object target, object>.IDictionary variables ) : void
source object
target object
variables object>.IDictionary
return void

MultipleSelectionListControlBinding() public method

Creates a new instance of this binding.
If no formatter is specified, a DataSourceItemFormatter will be used.
public MultipleSelectionListControlBinding ( string sourceExpression, string targetExpression, BindingDirection direction, IFormatter itemFormatter ) : System
sourceExpression string The expression that will evaluate to the acting as the source
targetExpression string The expression that will evaluate to an property acting as the target
direction BindingDirection Binding's direction
itemFormatter IFormatter An optional formatter converting target items into and back
return System

SetSourceValue() protected method

Setting source value is not allowed in this bindingType.
protected SetSourceValue ( object source, object value, object>.IDictionary variables ) : void
source object
value object
variables object>.IDictionary
return void

SetTargetValue() protected method

Setting target value is not allowed in this bindingType.
protected SetTargetValue ( object target, object value, object>.IDictionary variables ) : void
target object
value object
variables object>.IDictionary
return void