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 takes into account the hierarchically organized member categories, and the category editors assigned to each category, to automatically construct an UI for the edited node. If the designer of the node 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 lead (i.e. cannot possibly contain children), then this type of editor is also the default Standalone Editor of the node.
A sample instance of this editor is shown on the following figure:
Node Subtree Editor
The NNodeSubtreeEditor is a general node editor that is intended to edit the subtree of a given node. To do that it aggregates a subtree browser that uses a tree view, which shows 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:
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 Embedded Editor of the node, as specified by its designer (in most cases an instance of the NNodeMembersEditor).
A sample instance of this editor is shown on the following figure: