Table of Contents

Class ListElementNode<TContainer, TList, TElement, TEditor>

Namespace
NanoByte.StructureEditor
Assembly
NanoByte.StructureEditor.dll

Describes a node in the structure that points to an element in the list.

public class ListElementNode<TContainer, TList, TElement, TEditor> : Node where TContainer : class where TList : notnull where TElement : class, TList where TEditor : INodeEditor<TElement>, new()

Type Parameters

TContainer

The type of the container containing the list.

TList

The type of elements in the list.

TElement

The type of a specific element type in the list.

TEditor

An editor for modifying the content of the element.

Inheritance
ListElementNode<TContainer, TList, TElement, TEditor>
Inherited Members

Constructors

ListElementNode(string, TContainer, IList<TList>, TElement)

Describes a node in the structure that points to an element in the list.

public ListElementNode(string name, TContainer container, IList<TList> list, TElement element)

Parameters

name string

The name of the element type.

container TContainer

The container containing the list.

list IList<TList>

The list containing the element.

element TElement

The element in the list.

Methods

GetEditorControl(ICommandExecutor)

Gets a GUI control for editing the node's target.

public override INodeEditor GetEditorControl(ICommandExecutor executor)

Parameters

executor ICommandExecutor

Used to perform undo/redo operations.

Returns

INodeEditor

GetRemoveCommand()

Gets a command for removing the node's target from the structure.

public override IUndoCommand GetRemoveCommand()

Returns

IUndoCommand

GetSerialized()

Returns a serialized representation of the Target.

public override string GetSerialized()

Returns

string

GetUpdateCommand(string)

Gets a command for updating the node's target with a new value.

public override IValueCommand? GetUpdateCommand(string serializedValue)

Parameters

serializedValue string

A serialized representation of the new value.

Returns

IValueCommand