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

These classes are command objects representing the task of getting a string value from a browse column in a way specified by its node and writing a new string value back to the object. This is orthogonal to the several different transformations that can be performed on the strings so obtained. This abstract class also has the responsibility for deciding whether a field read/writer can be created for the column, and if so, for creating the appropriate subclass.
Inheritance: IGhostable
Mostrar archivo Open project: sillsdev/FieldWorks Class Usage Examples

Protected Properties

Property Type Description
m_ghostParentHelper SIL.FieldWorks.Common.Controls.GhostParentHelper
m_sda ISilDataAccess

Private Properties

Property Type Description
GetWsFromMetaData int

Public Methods

Method Description
Create ( XmlNode node, SIL.FieldWorks.FDO.FdoCache cache ) : FieldReadWriter
Create ( XmlNode node, SIL.FieldWorks.FDO.FdoCache cache, int hvoRootObj ) : FieldReadWriter
CurrentValue ( int hvo ) : ITsString
FieldReadWriter ( ISilDataAccess sda ) : System
InitForGhostItems ( SIL.FieldWorks.FDO.FdoCache cache, XmlNode colSpec ) : void
SetNewValue ( int hvo, ITsString tss ) : void

Private Methods

Method Description
GetWsFromMetaData ( int wsIn, int flid, SIL.FieldWorks.FDO.FdoCache cache ) : int

Method Details

Create() static public method

static public Create ( XmlNode node, SIL.FieldWorks.FDO.FdoCache cache ) : FieldReadWriter
node System.Xml.XmlNode
cache SIL.FieldWorks.FDO.FdoCache
return FieldReadWriter

Create() static public method

static public Create ( XmlNode node, SIL.FieldWorks.FDO.FdoCache cache, int hvoRootObj ) : FieldReadWriter
node System.Xml.XmlNode
cache SIL.FieldWorks.FDO.FdoCache
hvoRootObj int
return FieldReadWriter

CurrentValue() public abstract method

public abstract CurrentValue ( int hvo ) : ITsString
hvo int
return ITsString

FieldReadWriter() public method

public FieldReadWriter ( ISilDataAccess sda ) : System
sda ISilDataAccess
return System

InitForGhostItems() public method

public InitForGhostItems ( SIL.FieldWorks.FDO.FdoCache cache, XmlNode colSpec ) : void
cache SIL.FieldWorks.FDO.FdoCache
colSpec System.Xml.XmlNode
return void

SetNewValue() public abstract method

public abstract SetNewValue ( int hvo, ITsString tss ) : void
hvo int
tss ITsString
return void

Property Details

m_ghostParentHelper protected_oe property

protected GhostParentHelper,SIL.FieldWorks.Common.Controls m_ghostParentHelper
return SIL.FieldWorks.Common.Controls.GhostParentHelper

m_sda protected_oe property

protected ISilDataAccess m_sda
return ISilDataAccess