C# Class SIL.FieldWorks.Common.Framework.DetailControls.GhostStringSlice

A ghost string slice displays what purports to be a string (or multistring) property of a missing object. The canonical example is if a LexSense does not have an example sentence. The ghost slice apparently shows the missing Example property of the nonexistent ExampleSentence. If the user types something, a real object is created. A ghost slice is created when a part displays an object or object sequence that is empty, if the 'obj' or 'seq' element has an attribute ghost="fieldname" and ghostWs="vernacular/analysis". Optionally it may also have ghostClass="className". If this is absent it will create an instance of the base signature class, which had better not be abstract.
Inheritance: ViewPropertySlice
Afficher le fichier Open project: sillsdev/FieldWorks Class Usage Examples

Méthodes publiques

Méthode Description
GhostStringSlice ( ICmObject obj, int flid, XmlNode nodeObjProp, SIL.FieldWorks.FDO.FdoCache cache ) : System

Create a ghost string slice that pretends to be property flid of the missing object

Method Details

GhostStringSlice() public méthode

Create a ghost string slice that pretends to be property flid of the missing object
public GhostStringSlice ( ICmObject obj, int flid, XmlNode nodeObjProp, SIL.FieldWorks.FDO.FdoCache cache ) : System
obj ICmObject The obj.
flid int the empty object flid, which this slice is displaying.
nodeObjProp System.Xml.XmlNode the 'obj' or 'seq' element that requested the ghost
cache SIL.FieldWorks.FDO.FdoCache The cache.
Résultat System