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
)

Properties

CanEditMeta

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

CanPick

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

HasMeta

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

HasPick

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

Icon

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

IconMessage

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

IconTitle

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

Index

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

IndexOverride

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

Item

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

ItemT

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

MetaData

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

Name

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

NameT

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

Selected

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

Methods

OnModified

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

ParseItem

#
protected abstract Result<TItem> ParseItem(
text
)

ParseName

#
protected abstract Result<TName> ParseName(
text
)

RunPick

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

SetItem

#
public sealed override void SetItem(
text
)

SetName

#
public sealed override void SetName(
text
)

Events

Modified

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