Interface IValueSelectionProvider
Interface which must be implemented in all lookup selector. A Lookup selector will search, find and show possible options for a LookupTextBox. A sample implementation is the ItemBoxSelectionProvider.
Inherited Members
Namespace: Simplic.Framework.DBUI
Assembly: Simplic.Framework.DBUI.dll
Syntax
public interface IValueSelectionProvider : IDisposable
Methods
| Improve this Doc View SourceDependingLookupTextBoxesChanged(SelectorLookupResult, LookupTextBox)
Handling for the case, if a depending LTB changed (Its calidation status/Validation result)
Declaration
void DependingLookupTextBoxesChanged(SelectorLookupResult result, LookupTextBox lookupTextBox)
Parameters
Type | Name | Description |
---|---|---|
SelectorLookupResult | result | Result of the depending Lookup Text Box |
LookupTextBox | lookupTextBox | Instance of the Lookup Text Box |
Find(Object)
Load the selector result by it's unique id, for example a primary key in the database
Declaration
SelectorLookupResult Find(object identity)
Parameters
Type | Name | Description |
---|---|---|
System.Object | identity | Unique id |
Returns
Type | Description |
---|---|
SelectorLookupResult | Selector result object, containing all information |
Find<T, TResult>(Func<T, TResult>)
Find data by using a linq expression (delegate)
Declaration
SelectorLookupResult Find<T, TResult>(Func<T, TResult> findDelegate)
Parameters
Type | Name | Description |
---|---|---|
System.Func<T, TResult> | findDelegate | Function for looking up via linq expression |
Returns
Type | Description |
---|---|
SelectorLookupResult | Selector result object, containing all information |
Type Parameters
Name | Description |
---|---|
T | |
TResult |
InitializeDependingLookupTextBox(LookupTextBox, Object[])
Initialize a lookup TextBox for depending value resolving
Declaration
void InitializeDependingLookupTextBox(LookupTextBox lookupTextBox, params object[] parameter)
Parameters
Type | Name | Description |
---|---|---|
LookupTextBox | lookupTextBox | |
System.Object[] | parameter | Initialize parameter |
Search(String)
Search for an input, if a valid result was found it will be returned
Declaration
SelectorLookupResult Search(string searchText)
Parameters
Type | Name | Description |
---|---|---|
System.String | searchText | Search text |
Returns
Type | Description |
---|---|
SelectorLookupResult | Selector result object, containing all information |
Show(String)
Show the current selector dialog
Declaration
SelectorLookupResult Show(string input)
Parameters
Type | Name | Description |
---|---|---|
System.String | input | Current input in the input box, on which the selection based |
Returns
Type | Description |
---|---|
SelectorLookupResult | Selector result object, containing all information |