C# Class SIL.FieldWorks.SharpViews.Builders.ViewBuilderFdo

ViewBuilderFdo extends ViewBuilder with capabilities appropriate to building views of FDO objects.
Inheritance: ViewBuilder
ファイルを表示 Open project: sillsdev/FieldWorks

Public Methods

Method Description
ViewBuilderFdo ( GroupBox destination ) : System

Protected Methods

Method Description
GetHookupEventActions ( string name, object target, Action &hookEventAction, Action &unhookEventAction ) : void

Given that we are displaying property name of the target object, we would like to obtain actions that will connect and disconnect us from receiving notifications when that property changes. We have determined that there is no "'Name'Changed" event on the object. This hook method allows subclasses to provide an alternative strategy for setting up notifications.

MakeHookupForString ( Func fetcher, TssClientRun run, string name, object target, ParaBox para ) : void

Given a function that fetches strings, a run which represents the initial value of that string already inserted into a particular paragraph box, and that we have identified the fetcher as a property with the specified name of the specified target object, but we have not been able to find a ''Name'Changed' event on the target object, this stub provides a possible place for a subclass to use an alternative strategy for hooking something up to notify the view of changes to the property.

Private Methods

Method Description
GetPropChangedKey ( string name, ICmObject cmObj ) : int>.Tuple

Method Details

GetHookupEventActions() protected method

Given that we are displaying property name of the target object, we would like to obtain actions that will connect and disconnect us from receiving notifications when that property changes. We have determined that there is no "'Name'Changed" event on the object. This hook method allows subclasses to provide an alternative strategy for setting up notifications.
protected GetHookupEventActions ( string name, object target, Action &hookEventAction, Action &unhookEventAction ) : void
name string
target object
hookEventAction Action
unhookEventAction Action
return void

MakeHookupForString() protected method

Given a function that fetches strings, a run which represents the initial value of that string already inserted into a particular paragraph box, and that we have identified the fetcher as a property with the specified name of the specified target object, but we have not been able to find a ''Name'Changed' event on the target object, this stub provides a possible place for a subclass to use an alternative strategy for hooking something up to notify the view of changes to the property.
protected MakeHookupForString ( Func fetcher, TssClientRun run, string name, object target, ParaBox para ) : void
fetcher Func
run SIL.FieldWorks.SharpViews.Paragraphs.TssClientRun
name string
target object
para SIL.FieldWorks.SharpViews.Paragraphs.ParaBox
return void

ViewBuilderFdo() public method

public ViewBuilderFdo ( GroupBox destination ) : System
destination GroupBox
return System