Table of Contents

Class EditorState

Namespace
CLI.CliniCore.Service.Editor
Assembly
CLI.CliniCore.dll

Manages the state of the clinical document editor including current document, selection, cursor position, and view mode.

public class EditorState
Inheritance
EditorState
Inherited Members

Constructors

EditorState(ClinicalDocument)

public EditorState(ClinicalDocument document)

Parameters

document ClinicalDocument

Properties

Document

public ClinicalDocument Document { get; }

Property Value

ClinicalDocument

FlattenedEntries

public IReadOnlyList<AbstractClinicalEntry> FlattenedEntries { get; }

Property Value

IReadOnlyList<AbstractClinicalEntry>

HasEntries

public bool HasEntries { get; }

Property Value

bool

IsDirty

public bool IsDirty { get; set; }

Property Value

bool

SelectedEntry

public AbstractClinicalEntry? SelectedEntry { get; }

Property Value

AbstractClinicalEntry

SelectedIndex

public int SelectedIndex { get; set; }

Property Value

int

ViewMode

public EditorState.EditorViewMode ViewMode { get; set; }

Property Value

EditorState.EditorViewMode

Methods

GetEntryIndex(AbstractClinicalEntry)

public int GetEntryIndex(AbstractClinicalEntry entry)

Parameters

entry AbstractClinicalEntry

Returns

int

GetGroupedEntries()

public GroupedEntries GetGroupedEntries()

Returns

GroupedEntries

MarkClean()

public void MarkClean()

MarkDirty()

public void MarkDirty()

MoveSelectionDown()

public void MoveSelectionDown()

MoveSelectionUp()

public void MoveSelectionUp()

MoveToFirst()

public void MoveToFirst()

MoveToLast()

public void MoveToLast()

RefreshFlattenedEntries()

public void RefreshFlattenedEntries()