Chronos Plugins 5.11.0
This documentation covers the plugin interfaces definitions and an example implementation.
Loading...
Searching...
No Matches
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.

Properties

string Caption [get]
 Text for the menu entry in the column header menu.

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 }

References mGetCaption, and 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

Definition at line 13 of file ColumnHeaderMenu.cs.

Referenced by ColumnHeaderMenu().

◆ mMenuAction

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

Definition at line 14 of file ColumnHeaderMenu.cs.

Referenced by ColumnHeaderMenu().

Property Documentation

◆ Caption

string MockPlugin.SampleListColumns.ColumnHeaderMenu.Caption
get

Text for the menu entry in the column header menu.

Implements AxelSemrau.Chronos.Plugin.Columns.IColumnMenu.

Definition at line 22 of file ColumnHeaderMenu.cs.


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