C# Class SIL.FieldWorks.Common.Controls.XMLViewsDataCache

A 'Decorator' class for the FDO ISilDataAccess implementation. This class allows for caching the 'fake' flids used in a browse view (i.e., flides used for the check box and selection, etc.).
Inheritance: SIL.FieldWorks.FDO.Application.DomainDataByFlidDecoratorBase
Mostrar archivo Open project: sillsdev/FieldWorks Class Usage Examples

Private Properties

Property Type Description
GetItemSelectedValue int
XMLViewsDataCache System

Public Methods

Method Description
CacheMultiString ( int hvo, int tag, int ws, ITsString val ) : void

Store a value, without generating PropChanged calls.

RemoveMultiBaseStrings ( int hvo, int tag ) : void

Remove any ktagAlternateValueMultiBase values for this hvo

SetInt ( int hvo, int tag, int n ) : void

Override to support fake integer properties.

SetMultiStringAlt ( int hvo, int tag, int ws, ITsString tss ) : void

Override to handle props in the tagEditColumn range. We also handle the virtual property LexEntry.ReversalEntriesBulkText in a special way. (See FWR-376.)

SetString ( int hvo, int tag, ITsString _tss ) : void

Override to handle ktagAlternateValue.

XMLViewsDataCache ( ISilDataAccessManaged domainDataByFlid, bool defaultSelected, int>.Dictionary selectedItems ) : System

The main constructor.

get_IntProp ( int hvo, int tag ) : int

Override to support fake integer properties.

get_IsPropInCache ( int hvo, int tag, int cpt, int ws ) : bool

Override to support some fake flids.

get_MultiStringAlt ( int hvo, int tag, int ws ) : ITsString

We understand how to get a multistring for any hvo in the tagEditColumn range. We also handle the virtual property LexEntry.ReversalEntriesBulkText in a special way. (See FWR-376.)

get_ObjectProp ( int hvo, int tag ) : int

Override to work with fake flids.

get_StringProp ( int hvo, int tag ) : ITsString

Override to handle ktagAlternateValue.

get_VecSize ( int hvo, int tag ) : int

Override to work with fake flid.

Private Methods

Method Description
GetItemSelectedValue ( int hvo ) : int
XMLViewsDataCache ( ISilDataAccessManaged domainDataByFlid, XmlNode nodeSpec ) : System

Simpler constructor supplies default args

Method Details

CacheMultiString() public method

Store a value, without generating PropChanged calls.
public CacheMultiString ( int hvo, int tag, int ws, ITsString val ) : void
hvo int
tag int
ws int
val ITsString
return void

RemoveMultiBaseStrings() public method

Remove any ktagAlternateValueMultiBase values for this hvo
public RemoveMultiBaseStrings ( int hvo, int tag ) : void
hvo int
tag int
return void

SetInt() public method

Override to support fake integer properties.
public SetInt ( int hvo, int tag, int n ) : void
hvo int
tag int
n int
return void

SetMultiStringAlt() public method

Override to handle props in the tagEditColumn range. We also handle the virtual property LexEntry.ReversalEntriesBulkText in a special way. (See FWR-376.)
public SetMultiStringAlt ( int hvo, int tag, int ws, ITsString tss ) : void
hvo int
tag int
ws int
tss ITsString
return void

SetString() public method

Override to handle ktagAlternateValue.
public SetString ( int hvo, int tag, ITsString _tss ) : void
hvo int
tag int
_tss ITsString
return void

XMLViewsDataCache() public method

The main constructor.
public XMLViewsDataCache ( ISilDataAccessManaged domainDataByFlid, bool defaultSelected, int>.Dictionary selectedItems ) : System
domainDataByFlid ISilDataAccessManaged
defaultSelected bool
selectedItems int>.Dictionary
return System

get_IntProp() public method

Override to support fake integer properties.
public get_IntProp ( int hvo, int tag ) : int
hvo int
tag int
return int

get_IsPropInCache() public method

Override to support some fake flids.
public get_IsPropInCache ( int hvo, int tag, int cpt, int ws ) : bool
hvo int
tag int
cpt int
ws int
return bool

get_MultiStringAlt() public method

We understand how to get a multistring for any hvo in the tagEditColumn range. We also handle the virtual property LexEntry.ReversalEntriesBulkText in a special way. (See FWR-376.)
public get_MultiStringAlt ( int hvo, int tag, int ws ) : ITsString
hvo int
tag int
ws int
return ITsString

get_ObjectProp() public method

Override to work with fake flids.
public get_ObjectProp ( int hvo, int tag ) : int
hvo int
tag int
return int

get_StringProp() public method

Override to handle ktagAlternateValue.
public get_StringProp ( int hvo, int tag ) : ITsString
hvo int
tag int
return ITsString

get_VecSize() public method

Override to work with fake flid.
public get_VecSize ( int hvo, int tag ) : int
hvo int
tag int
return int