C# Класс SIL.FieldWorks.FdoUi.BulkPosEditorBase

BulkPosEditor is the spec/display component of the Bulk Edit bar used to set the PartOfSpeech of group of LexSenses (actually by creating or modifying an MoStemMsa that is the MorphoSyntaxAnalysis of the sense). It was originally part of XmlViews, but it needs to use the POSPopupTreeManager class, and since FdoUi references XmlViews, XmlViews can't reference FdoUi. Also, it sort of makes sense to put it here as a class that is quite specific to a particular part of the model.
Наследование: IBulkEditSpecControl, IFWDisposable, ITextChangedNotification
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
m_cache SIL.FieldWorks.FDO.FdoCache
m_mediator Mediator
m_pOSPopupTreeManager POSPopupTreeManager
m_sda XMLViewsDataCache
m_selectedHvo int
m_selectedLabel string
m_tree TreeCombo

Открытые методы

Метод Описание
BulkPosEditorBase ( ) : System
CheckDisposed ( ) : void

Check to see if the object has been disposed. All public Properties and Methods should call this before doing anything else.

ControlTextChanged ( ) : void

Inform the editor that the text of the tree changed (without changing the selected index... that needs to be updated).

Dispose ( ) : void

Must not be virtual.

DoIt ( IEnumerable itemsToChange, SIL.FieldWorks.Common.Controls.ProgressState state ) : void
FakeDoit ( IEnumerable itemsToChange, int tagFakeFlid, int tagEnable, SIL.FieldWorks.Common.Controls.ProgressState state ) : void
MakeSuggestions ( IEnumerable itemsToChange, int tagFakeFlid, int tagEnabled, SIL.FieldWorks.Common.Controls.ProgressState state ) : void

Used by SemanticDomainChooserBEditControl to make suggestions and then call FakeDoIt

SetClearField ( ) : void

Subclasses should override if they override CanClearField to return true.

Защищенные методы

Метод Описание
CanFakeIt ( int hvo ) : bool
Dispose ( bool disposing ) : void

Executes in two distinct scenarios. 1. If disposing is true, the method has been called directly or indirectly by a user's code via the Dispose method. Both managed and unmanaged resources can be disposed. 2. If disposing is false, the method has been called by the runtime from inside the finalizer and you should not reference (access) other managed objects, as they already have been garbage collected. Only unmanaged resources can be disposed.

If any exceptions are thrown, that is fine. If the method is being done in a finalizer, it will be ignored. If it is thrown by client code calling Dispose, it needs to be handled by fixing the bug. If subclasses override this method, they should call the base implementation.

Приватные методы

Метод Описание
SelectNode ( TreeNode node ) : void
m_pOSPopupTreeManager_AfterSelect ( object sender, TreeViewEventArgs e ) : void
m_tree_TreeLoad ( object sender, EventArgs e ) : void

Описание методов

BulkPosEditorBase() публичный метод

public BulkPosEditorBase ( ) : System
Результат System

CanFakeIt() защищенный абстрактный метод

protected abstract CanFakeIt ( int hvo ) : bool
hvo int
Результат bool

CheckDisposed() публичный метод

Check to see if the object has been disposed. All public Properties and Methods should call this before doing anything else.
public CheckDisposed ( ) : void
Результат void

ControlTextChanged() публичный метод

Inform the editor that the text of the tree changed (without changing the selected index... that needs to be updated).
public ControlTextChanged ( ) : void
Результат void

Dispose() публичный метод

Must not be virtual.
public Dispose ( ) : void
Результат void

Dispose() защищенный метод

Executes in two distinct scenarios. 1. If disposing is true, the method has been called directly or indirectly by a user's code via the Dispose method. Both managed and unmanaged resources can be disposed. 2. If disposing is false, the method has been called by the runtime from inside the finalizer and you should not reference (access) other managed objects, as they already have been garbage collected. Only unmanaged resources can be disposed.
If any exceptions are thrown, that is fine. If the method is being done in a finalizer, it will be ignored. If it is thrown by client code calling Dispose, it needs to be handled by fixing the bug. If subclasses override this method, they should call the base implementation.
protected Dispose ( bool disposing ) : void
disposing bool
Результат void

DoIt() публичный абстрактный метод

public abstract DoIt ( IEnumerable itemsToChange, SIL.FieldWorks.Common.Controls.ProgressState state ) : void
itemsToChange IEnumerable
state SIL.FieldWorks.Common.Controls.ProgressState
Результат void

FakeDoit() публичный метод

public FakeDoit ( IEnumerable itemsToChange, int tagFakeFlid, int tagEnable, SIL.FieldWorks.Common.Controls.ProgressState state ) : void
itemsToChange IEnumerable
tagFakeFlid int
tagEnable int
state SIL.FieldWorks.Common.Controls.ProgressState
Результат void

MakeSuggestions() публичный метод

Used by SemanticDomainChooserBEditControl to make suggestions and then call FakeDoIt
public MakeSuggestions ( IEnumerable itemsToChange, int tagFakeFlid, int tagEnabled, SIL.FieldWorks.Common.Controls.ProgressState state ) : void
itemsToChange IEnumerable
tagFakeFlid int
tagEnabled int
state SIL.FieldWorks.Common.Controls.ProgressState
Результат void

SetClearField() публичный метод

Subclasses should override if they override CanClearField to return true.
public SetClearField ( ) : void
Результат void

Описание свойств

m_cache защищенное свойство

protected FdoCache,SIL.FieldWorks.FDO m_cache
Результат SIL.FieldWorks.FDO.FdoCache

m_mediator защищенное свойство

protected Mediator m_mediator
Результат Mediator

m_pOSPopupTreeManager защищенное свойство

protected POSPopupTreeManager m_pOSPopupTreeManager
Результат POSPopupTreeManager

m_sda защищенное свойство

protected XMLViewsDataCache m_sda
Результат XMLViewsDataCache

m_selectedHvo защищенное свойство

protected int m_selectedHvo
Результат int

m_selectedLabel защищенное свойство

protected string m_selectedLabel
Результат string

m_tree защищенное свойство

protected TreeCombo m_tree
Результат TreeCombo