Chronos Plugins  5.2.0
This documentation covers the plugin interfaces definitions and an example implementation.
MockPlugin.SampleListColumns.ColumnHeaderMenu Class Reference

Just a general purpose column header menu. More...

+ Inheritance diagram for MockPlugin.SampleListColumns.ColumnHeaderMenu:
+ Collaboration diagram for MockPlugin.SampleListColumns.ColumnHeaderMenu:

Public Member Functions

 ColumnHeaderMenu (Func< string > getCaption, Action< IReadOnlyList< ICellAccessor >> menuAction)
 
void ProcessSelected (IReadOnlyList< ICellAccessor > affectedCells)
 All cells that were selected while picking the menu entry / all cells of the column if there was no selection. More...
 

Properties

string Caption [get]
 
- Properties inherited from AxelSemrau.Chronos.Plugin.Columns.IColumnMenu
string Caption [get]
 Text for the menu entry in the column header menu. More...
 

Private Attributes

readonly Func< string > mGetCaption
 
readonly Action< IReadOnlyList< ICellAccessor > > mMenuAction
 

Detailed Description

Just a general purpose column header menu.

Definition at line 11 of file ColumnHeaderMenu.cs.

Constructor & Destructor Documentation

◆ ColumnHeaderMenu()

MockPlugin.SampleListColumns.ColumnHeaderMenu.ColumnHeaderMenu ( Func< string >  getCaption,
Action< IReadOnlyList< ICellAccessor >>  menuAction 
)

Definition at line 16 of file ColumnHeaderMenu.cs.

17  {
18  mGetCaption = getCaption;
19  mMenuAction = menuAction;
20  }
readonly Action< IReadOnlyList< ICellAccessor > > mMenuAction

References MockPlugin.SampleListColumns.ColumnHeaderMenu.mGetCaption, and MockPlugin.SampleListColumns.ColumnHeaderMenu.mMenuAction.

Member Function Documentation

◆ ProcessSelected()

void MockPlugin.SampleListColumns.ColumnHeaderMenu.ProcessSelected ( IReadOnlyList< ICellAccessor affectedCells)

All cells that were selected while picking the menu entry / all cells of the column if there was no selection.

Do whatever you promised to do in the menu entry.

Parameters
affectedCells

Implements AxelSemrau.Chronos.Plugin.Columns.IColumnMenu.

Member Data Documentation

◆ mGetCaption

readonly Func<string> MockPlugin.SampleListColumns.ColumnHeaderMenu.mGetCaption
private

◆ mMenuAction

readonly Action<IReadOnlyList<ICellAccessor> > MockPlugin.SampleListColumns.ColumnHeaderMenu.mMenuAction
private

Property Documentation

◆ Caption

string MockPlugin.SampleListColumns.ColumnHeaderMenu.Caption
get

Definition at line 22 of file ColumnHeaderMenu.cs.


The documentation for this class was generated from the following file: