General Node Editors
In This Topic
General Editors are such editors that edit multiple aspects of the edited node. All types of General Node Editors derive from the base NNodeEditor base type. All general node editors can be created from the NDesigner - CreateNodeEditor<TNodeEditor> method, as shown in the following example:
Creating a General Node Editor |
Copy Code
|
NNodeMembersEditor membersEditor = designer.CreateNodeEditor<NNodeMembersEditor>(node);
|
Currently there are three distinct general editors, that are described in this topic.
Node Members Editor
The NNodeMembersEditor is a general node editor that aggregates the browsable property and child-slot editors of the edited node. It considers the hierarchically organized member categories and the category editors assigned to each category to automatically construct a UI for the edited node. If the node's designer provides any verbs, they are displayed at the top in the verbs toolbar.
This type of editor is the default Embedded Editor of the node. If the node is a leaf (i.e., it cannot contain children), then this editor is also the default Standalone Editor of the node.
A sample instance of this editor is shown in the following figure:
fig.1 NNodeMembersEditor
Node Subtree Editor
The NNodeSubtreeEditor is a general node editor designed to edit the subtree of a given node. It accomplishes this by aggregating a subtree browser that uses a tree view to display the hierarchy-browsable subtree of the node. For the selected node, the editor shows the Embedded Editor of the node, as specified by its designer (in most cases an instance of the NNodeMembersEditor). This type of editor is also by default the Standalone Editor of the node, if it is a node that can potentially have child nodes.
A sample instance of this editor is shown on the following figure:

fig.2 NNodeSubtreeEditor
Node Collection Editor
The NNodeCollectionEditor is a general node editor that is intended to edit only the children of a given node. To do that it aggregates a children browser that uses a list box, which shows the hierarchy-browsable children of the node. For the selected node, the editor shows the Standalone Editor of the node, as specified by its designer.
A sample instance of this editor is shown on the following figure:

fig.3 NNodeCollectionEditor