C# Class Castle.MonoRail.Framework.Helpers.FormHelper.CheckboxList

This class is an enumerable list of checkboxes. It uses the OperationState to manage the sets and to control the check/uncheck state.
Inheritance: IEnumerable, IEnumerator
Show file Open project: nats/castle-1.0.3-mono

Public Methods

Method Description
CheckboxList ( FormHelper helper, string target, object initialSelectionSet, IEnumerable dataSource, IDictionary attributes ) : System

Initializes a new instance of the CheckboxList class.

GetEnumerator ( ) : IEnumerator

Returns an enumerator that iterates through a collection.

Item ( ) : string

Outputs the Checkbox in the correct state (checked/unchecked) based on the Set. FormHelper.CreateCheckboxList(string,IEnumerable,IDictionary)

Item ( string id ) : string

Outputs the Checkbox in the correct state (checked/unchecked) based on the Set. FormHelper.CreateCheckboxList(string,IEnumerable,IDictionary)

MoveNext ( ) : bool

Advances the enumerator to the next element of the collection.

Reset ( ) : void

Sets the enumerator to its initial position, which is before the first element in the collection.

Method Details

CheckboxList() public method

Initializes a new instance of the CheckboxList class.
public CheckboxList ( FormHelper helper, string target, object initialSelectionSet, IEnumerable dataSource, IDictionary attributes ) : System
helper FormHelper The helper.
target string The object to get the value from and to be based on to create the element name.
initialSelectionSet object The initial selection set.
dataSource IEnumerable The set of available elements
attributes IDictionary Attributes for the FormHelper method and for the html element it generates
return System

GetEnumerator() public method

Returns an enumerator that iterates through a collection.
public GetEnumerator ( ) : IEnumerator
return IEnumerator

Item() public method

Outputs the Checkbox in the correct state (checked/unchecked) based on the Set. FormHelper.CreateCheckboxList(string,IEnumerable,IDictionary)
public Item ( ) : string
return string

Item() public method

Outputs the Checkbox in the correct state (checked/unchecked) based on the Set. FormHelper.CreateCheckboxList(string,IEnumerable,IDictionary)
public Item ( string id ) : string
id string The element id
return string

MoveNext() public method

Advances the enumerator to the next element of the collection.
The collection was modified after the enumerator was created.
public MoveNext ( ) : bool
return bool

Reset() public method

Sets the enumerator to its initial position, which is before the first element in the collection.
The collection was modified after the enumerator was created.
public Reset ( ) : void
return void