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
Afficher le fichier Open project: nats/castle-1.0.3-mono

Méthodes publiques

Méthode 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 méthode

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
Résultat System

GetEnumerator() public méthode

Returns an enumerator that iterates through a collection.
public GetEnumerator ( ) : IEnumerator
Résultat IEnumerator

Item() public méthode

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

Item() public méthode

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
Résultat string

MoveNext() public méthode

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

Reset() public méthode

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
Résultat void