Interface IQualityStatementItemFilter
Provides the ability for Addins to filter which quality statement items are currently displayed and editable.
Namespace: Algenta.Colectica.ViewModel
Assembly: Algenta.Colectica.ViewModel.dll
Syntax
public interface IQualityStatementItemFilter
Remarks
Addins implementing this interface will show a button on top of the QualityStatement editor. When the button is pressed, the GetItemState method will be called for each quality statement item to determine which items should be displayed.
Properties
IsEnabled
Gets a value indicating whether the button should be displayed.
Declaration
bool IsEnabled { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Name
Gets the text to be displayed on the filter's button.
Declaration
string Name { get; }
Property Value
Type | Description |
---|---|
System.String |
Weight
Gets the order in which this Addin should be displayed. Lower values are displayed higher or further to the left.
Declaration
int Weight { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Methods
GetItemState(QualityStatementItem)
Called to determine whether the specified quality statement item should be displayed when the filter defined by this Addin is active.
Declaration
QualityStatementItemState GetItemState(QualityStatementItem item)
Parameters
Type | Name | Description |
---|---|---|
QualityStatementItem | item | The item for which state is being determined. |
Returns
Type | Description |
---|---|
QualityStatementItemState | Whether the item should be displayed, disabled, or hidden. |