GridEntry<TName, TItem>

GridEntry
public abstract class GridEntry<TName, TItem> : GridEntry
Type specific implementation of GridEntry or name and item types.
TName
TItem

Constructors

GridEntry

#
protected GridEntry(EntryField<TName> name, EntryField<TItem> item)
name (EntryField<TName>)
item (EntryField<TItem>)

Properties

CanEditMeta

public virtual bool CanEditMeta { get; }
Gets whether meta data can be editor in the current state. Return true to enable the META button on the entry.
inherited fromGridEntry

CanPick

public virtual bool CanPick { get; }
Gets whether the entry can be picked in its current state. Return true to enable the PICK button on the entry.
inherited fromGridEntry

HasMeta

public virtual bool HasMeta { get; }
Gets whether the entry can potentially contain meta data. Return true to include a META button on the entry.
inherited fromGridEntry

HasPick

public virtual bool HasPick { get; }
Gets whether the entry can potentially be picked from UI. Return true to incluce a PICK button on the entry.
inherited fromGridEntry

Icon

public virtual IIcon Icon { get; }
Gets the icon, if any, associated with the current state. This property gets called a lot, so make it spiffy.
inherited fromGridEntry

IconMessage

public virtual string IconMessage { get; }
Override this to provive a tooltip message for the icon.
inherited fromGridEntry

IconTitle

public virtual string IconTitle { get; }
Override this to provive a tooltip title for the icon.
inherited fromGridEntry

Index

public int Index { get; }
Gets the index of this entry. Negative indices are not drawn.
inherited fromGridEntry

IndexOverride

public virtual int? IndexOverride { get; }
Optional index override. If this property returns a negative index, it is assumed to not have one.
inherited fromGridEntry

Item

#
public override IEntryField Item { get; }
GridEntry.Item

ItemT

#
public EntryField<TItem> ItemT { get; protected set; }
Gets the current identifier text in this entry.

MetaData

public virtual MetaData MetaData { get; set; }
Gets or sets the meta data in the current entry.
inherited fromGridEntry

Name

#
public override IEntryField Name { get; }
GridEntry.Name

NameT

#
public EntryField<TName> NameT { get; protected set; }
Gets the current identifier text in this entry.

Selected

public bool Selected { get; }
Gets whether this entry is selected.
inherited fromGridEntry

Methods

OnModified

public void OnModified()
Raise the Modified event.
inherited fromGridEntry

ParseItem

#
protected abstract Result<TItem> ParseItem(string text)
text (string)

ParseName

#
protected abstract Result<TName> ParseName(string text)
text (string)

RunPick

public virtual void RunPick()
This gets called when the user clicks on the PICK button.
inherited fromGridEntry

SetItem

#
public sealed override void SetItem(string text)
text (string)

SetName

#
public sealed override void SetName(string text)
text (string)

Events

Modified

public event EventHandler Modified
Raised when the value inside this entry is (possibly) modified.
inherited fromGridEntry