C# 클래스 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.
상속: IEnumerable, IEnumerator
파일 보기 프로젝트 열기: nats/castle-1.0.3-mono

공개 메소드들

메소드 설명
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.

메소드 상세

CheckboxList() 공개 메소드

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
리턴 System

GetEnumerator() 공개 메소드

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

Item() 공개 메소드

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

Item() 공개 메소드

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
리턴 string

MoveNext() 공개 메소드

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

Reset() 공개 메소드

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
리턴 void