Class PortEditor<T>
Class PortEditor. Implements the IPortEditor
Inherited Members
Namespace: Mechatronics.SystemGraph
Syntax
[Serializable]
[InitializeOnLoad]
public class PortEditor<T> : IPortEditor
Type Parameters
| Name | Description |
|---|---|
| T |
Constructors
PortEditor(INodeEditor, String, String, String, Object, PortDirection, FieldExtra, Boolean)
Initializes a new instance of the PortEditor<T> class.
Declaration
public PortEditor(INodeEditor owner, string memberName, string displayName, string tooltip, object dataBind, PortDirection portDirection, FieldExtra fieldRW, bool promiscuous = false)
Parameters
| Type | Name | Description |
|---|---|---|
| INodeEditor | owner | The owner. |
| String | memberName | Name of the member. |
| String | displayName | The display name. |
| String | tooltip | The tooltip. |
| Object | dataBind | The data bind. |
| PortDirection | portDirection | The port direction. |
| FieldExtra | fieldRW | The field extra settings. |
| Boolean | promiscuous | if set to |
Methods
RefreshEditor(Boolean)
Refreshes the editor.
Declaration
public override void RefreshEditor(bool forceHide = false)
Parameters
| Type | Name | Description |
|---|---|---|
| Boolean | forceHide | if set to |
Overrides
RegisterHandlers(Type, IPortEditor.tHandlerDescriptor)
Registers the handlers.
Declaration
public static void RegisterHandlers(Type t, IPortEditor.tHandlerDescriptor f)
Parameters
| Type | Name | Description |
|---|---|---|
| Type | t | The type. |
| IPortEditor.tHandlerDescriptor | f | The handler descriptor. |
SpawnDefaultEditorPanel(IPortEditor, VisualElement)
Spawns the default editor panel.
Declaration
public static VisualElement SpawnDefaultEditorPanel(IPortEditor self, VisualElement port)
Parameters
| Type | Name | Description |
|---|---|---|
| IPortEditor | self | This instance. |
| VisualElement | port | The port. |
Returns
| Type | Description |
|---|---|
| VisualElement | VisualElement of the panel. |
SpawnEditor(VisualElement)
Spawns the editor.
Declaration
public override void SpawnEditor(VisualElement port)
Parameters
| Type | Name | Description |
|---|---|---|
| VisualElement | port | The port. |
Overrides
UnRegisterHandlers(Type)
Uns the register handlers.
Declaration
public static void UnRegisterHandlers(Type t)
Parameters
| Type | Name | Description |
|---|---|---|
| Type | t | The type. |