C# 클래스 Habanero.Faces.Base.ComboBoxManager

This manager groups common logic for IComboBox objects. Do not use this object in working code - rather call CreateComboBox in the appropriate control factory.
파일 보기 프로젝트 열기: Chillisoft/habanero.faces 1 사용 예제들

공개 메소드들

메소드 설명
ComboBoxManager ( IComboBox comboBox )

Creates ComboBoxManager

GetItemToSelect ( object value ) : object

If the IComboBox contains ComboPairs ;
If the value equals a ComboPair.Key for a ComboPair then return the ComboPair;
else returns null;
else return the value;

GetSelectedItem ( object selectedItem ) : object

Returns the Key for the Selected Item if it is a ComboPair else returns the selectedItem.

GetSelectedValue ( object item ) : object

If the item is a ComboPair then returns the ComboPair.Value for the ComboPair else returns the item.

GetValueToSelect ( object value ) : object

If the IComboBox contains ComboPairs
If the value is equal to the ComboPair.Value for a ComboPair then
returns the ComboPair else returns the null.
Else
returns the value

메소드 상세

ComboBoxManager() 공개 메소드

Creates ComboBoxManager
public ComboBoxManager ( IComboBox comboBox )
comboBox IComboBox

GetItemToSelect() 공개 메소드

If the IComboBox contains ComboPairs ;
If the value equals a ComboPair.Key for a ComboPair then return the ComboPair;
else returns null;
else return the value;
public GetItemToSelect ( object value ) : object
value object
리턴 object

GetSelectedItem() 공개 메소드

Returns the Key for the Selected Item if it is a ComboPair else returns the selectedItem.
public GetSelectedItem ( object selectedItem ) : object
selectedItem object
리턴 object

GetSelectedValue() 공개 메소드

If the item is a ComboPair then returns the ComboPair.Value for the ComboPair else returns the item.
public GetSelectedValue ( object item ) : object
item object
리턴 object

GetValueToSelect() 공개 메소드

If the IComboBox contains ComboPairs
If the value is equal to the ComboPair.Value for a ComboPair then
returns the ComboPair else returns the null.
Else
returns the value
public GetValueToSelect ( object value ) : object
value object
리턴 object