Interface ComponentDescriptor
- All Known Implementing Classes:
- ComponentDescriptorImpl
public interface ComponentDescriptor
This interface represents the component model that is registered with 
ComponentRegistry.  The
 ComponentDescriptorImpl provides a baseline implementation for most of the functionality needed.- 
Method SummaryModifier and TypeMethodDescriptionReturns a set ofBrowserResources, which are provided to the designer and perspective client at runtime to insure the needed items are provided in the web environment to support the component.Optional<com.inductiveautomation.ignition.common.gson.JsonObject>Defined default position property structure and values for children of new instances of this component.default JsonSchemaUsed for components that are containers in order to provide a schema for the position objects of their children.The default meta.name value for this component.com.inductiveautomation.ignition.common.gson.JsonObjectDefines default property structure and values for new instances of this component.booleandefault Collection<ComponentEventDescriptor>events()default Collection<ExtensionFunctionDescriptor>Optional<com.inductiveautomation.ignition.common.gson.JsonObject>getIcon()Return the icon that is registered along with the descriptor.default com.inductiveautomation.ignition.common.gson.JsonObjectgetInitialProps(String variantId) id()The unique string that identifies this componentmoduleId()The moduleId should be a String id that matches the module that is contributing this component to the Ignition Perspective module system.name()Which category this component should be listed under in the Designer's component palette.schema()Defines the shape of the component's properties structure.
- 
Method Details- 
idThe unique string that identifies this component
- 
nameString name()- Returns:
- a human-readable name to briefly describe the component
 
- 
deprecatedboolean deprecated()- Returns:
- true if this component is no longer in active use. This will hide it from the palette and other UI that allows users to pick components (e.g. tag drop config)
 
- 
paletteEntries
- 
paletteCategoryWhich category this component should be listed under in the Designer's component palette.
- 
defaultMetaNameThe default meta.name value for this component.
- 
moduleIdThe moduleId should be a String id that matches the module that is contributing this component to the Ignition Perspective module system.- Returns:
- the Ignition module ID of the module providing the component.
 
- 
defaultPropertiescom.inductiveautomation.ignition.common.gson.JsonObject defaultProperties()Defines default property structure and values for new instances of this component.
- 
childPositionDefaultsOptional<com.inductiveautomation.ignition.common.gson.JsonObject> childPositionDefaults()Defined default position property structure and values for children of new instances of this component.
- 
browserResourcesReturns a set ofBrowserResources, which are provided to the designer and perspective client at runtime to insure the needed items are provided in the web environment to support the component. Common use cases are css files and js libraries. These resources are collected at runtime and added to the DOM prior to starting the project/view.- Returns:
- a set of resources that the component requires.
 
- 
schemaDefines the shape of the component's properties structure.
- 
childPositionSchemaUsed for components that are containers in order to provide a schema for the position objects of their children.
- 
events- Returns:
- a collection of the events that this component might fire.
 
- 
extensionFunctions- Returns:
- a collection of the extension functions that this component declares
 
- 
getInitialProps@Nullable default com.inductiveautomation.ignition.common.gson.JsonObject getInitialProps(String variantId) 
- 
getExampleChildPositionDefaultsOptional<com.inductiveautomation.ignition.common.gson.JsonObject> getExampleChildPositionDefaults()
- 
getIconReturn the icon that is registered along with the descriptor. If an icon is not set, the default icon will be used instead. Pro-tip: use InteractiveSvgIconto create an icon that works well in the nav-tree- Returns:
- icon used for the nav tree and component palette
 
 
-