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.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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