Class PortListEditor<T>
PortListEditor represents visuals of a list typed port. Implements the PortEditor<T>
Inherited Members
Namespace: Mechatronics.SystemGraph
Syntax
[Serializable]
[InitializeOnLoad]
public class PortListEditor<T> : PortEditor<PortList<T>>
Type Parameters
| Name | Description |
|---|---|
| T |
Constructors
PortListEditor(INodeEditor, String, String, String, Object, PortDirection, FieldExtra, Boolean)
Initializes a new instance of the PortListEditor<T> class.
Declaration
public PortListEditor(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
AddPortHandler(IPortEditor)
Adds the port handler.
Declaration
public static void AddPortHandler(IPortEditor self)
Parameters
| Type | Name | Description |
|---|---|---|
| IPortEditor | self | This instance. |
CreateButton(String)
Creates the button.
Declaration
public static Button CreateButton(string name)
Parameters
| Type | Name | Description |
|---|---|---|
| String | name | The name. |
Returns
| Type | Description |
|---|---|
| Button | Button. |
GetEditorFlexDirection(IPortEditor)
Gets the editor flex direction.
Declaration
public static FlexDirection GetEditorFlexDirection(IPortEditor self)
Parameters
| Type | Name | Description |
|---|---|---|
| IPortEditor | self | This instance. |
Returns
| Type | Description |
|---|---|
| FlexDirection | FlexDirection. |
HandleCreate(IPortEditor)
Handles the creation.
Declaration
public static void HandleCreate(IPortEditor self)
Parameters
| Type | Name | Description |
|---|---|---|
| IPortEditor | self | This instance. |
HandleRefreshEditor(IPortEditor, VisualElement, Boolean)
Handles the refresh of the editor.
Declaration
public static bool HandleRefreshEditor(IPortEditor self, VisualElement port, bool forceHide)
Parameters
| Type | Name | Description |
|---|---|---|
| IPortEditor | self | This instance. |
| VisualElement | port | The port. |
| Boolean | forceHide | if set to |
Returns
| Type | Description |
|---|---|
| Boolean |
|
HandleSpawnEditor(IPortEditor, VisualElement)
Handles the spawn of the editor.
Declaration
public static bool HandleSpawnEditor(IPortEditor self, VisualElement port)
Parameters
| Type | Name | Description |
|---|---|---|
| IPortEditor | self | This instance. |
| VisualElement | port | The port. |
Returns
| Type | Description |
|---|---|
| Boolean |
|
RemovePortHandler(IPortEditor)
Removes the port handler.
Declaration
public static void RemovePortHandler(IPortEditor self)
Parameters
| Type | Name | Description |
|---|---|---|
| IPortEditor | self | This instance. |
See Also
PortEditor<T>