C# Class 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.
Inheritance: IBulkEditSpecControl, IFWDisposable, ITextChangedNotification
Afficher le fichier Open project: sillsdev/FieldWorks

Protected Properties

Свойство Type Description
m_cache SIL.FieldWorks.FDO.FdoCache
m_mediator Mediator
m_pOSPopupTreeManager POSPopupTreeManager
m_sda XMLViewsDataCache
m_selectedHvo int
m_selectedLabel string
m_tree TreeCombo

Méthodes publiques

Méthode Description
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.

Méthodes protégées

Méthode Description
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.

Private Methods

Méthode Description
SelectNode ( TreeNode node ) : void
m_pOSPopupTreeManager_AfterSelect ( object sender, TreeViewEventArgs e ) : void
m_tree_TreeLoad ( object sender, EventArgs e ) : void

Method Details

BulkPosEditorBase() public méthode

public BulkPosEditorBase ( ) : System
Résultat System

CanFakeIt() protected abstract méthode

protected abstract CanFakeIt ( int hvo ) : bool
hvo int
Résultat bool

CheckDisposed() public méthode

Check to see if the object has been disposed. All public Properties and Methods should call this before doing anything else.
public CheckDisposed ( ) : void
Résultat void

ControlTextChanged() public méthode

Inform the editor that the text of the tree changed (without changing the selected index... that needs to be updated).
public ControlTextChanged ( ) : void
Résultat void

Dispose() public méthode

Must not be virtual.
public Dispose ( ) : void
Résultat void

Dispose() protected méthode

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
Résultat void

DoIt() public abstract méthode

public abstract DoIt ( IEnumerable itemsToChange, SIL.FieldWorks.Common.Controls.ProgressState state ) : void
itemsToChange IEnumerable
state SIL.FieldWorks.Common.Controls.ProgressState
Résultat void

FakeDoit() public méthode

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
Résultat void

MakeSuggestions() public méthode

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
Résultat void

SetClearField() public méthode

Subclasses should override if they override CanClearField to return true.
public SetClearField ( ) : void
Résultat void

Property Details

m_cache protected_oe property

protected FdoCache,SIL.FieldWorks.FDO m_cache
Résultat SIL.FieldWorks.FDO.FdoCache

m_mediator protected_oe property

protected Mediator m_mediator
Résultat Mediator

m_pOSPopupTreeManager protected_oe property

protected POSPopupTreeManager m_pOSPopupTreeManager
Résultat POSPopupTreeManager

m_sda protected_oe property

protected XMLViewsDataCache m_sda
Résultat XMLViewsDataCache

m_selectedHvo protected_oe property

protected int m_selectedHvo
Résultat int

m_selectedLabel protected_oe property

protected string m_selectedLabel
Résultat string

m_tree protected_oe property

protected TreeCombo m_tree
Résultat TreeCombo