Interface Component
- 
- All Superinterfaces:
- AuditingContext,- LoggingContext,- PerspectiveElement,- PropertyTreeOwner
 - All Known Implementing Classes:
- ComponentModel,- DesignerComponentModel
 
 public interface Component extends PerspectiveElement Interface for component instances.
- 
- 
Field SummaryFields Modifier and Type Field Description static java.lang.StringMDC_COMPONENT
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description java.util.Optional<PerspectiveElement>findChildByName(java.util.Iterator<java.lang.String> pathIterator)java.util.Optional<ExtensionFunction>findExtensionFunction(java.lang.String name)voidfireEvent(java.lang.String eventType, java.lang.String eventName, java.lang.Object eventObject)Fire an event on component.java.util.Optional<Component>getChild(int index)java.util.Collection<Component>getChildren()java.lang.StringgetComponentAddressPath()Index path of the component, like "0:5"default PagegetPage()ComponentgetParent()java.util.Optional<PropertyConfig>getPropertyConfig(PropertyKey property)default SessiongetSession()- 
Methods inherited from interface com.inductiveautomation.perspective.gateway.api.AuditingContextaudit, getAuditSnapshot
 - 
Methods inherited from interface com.inductiveautomation.perspective.gateway.api.LoggingContextgetLogger, getMdcParent, mdc, mdcSetup, mdcSetupTree, mdcTeardown, mdcTeardownTree, mdcWrap
 - 
Methods inherited from interface com.inductiveautomation.perspective.gateway.api.PerspectiveElementcreatePropertyReference, getAuditProfile, getName, getQualifiedPath, getView, isRunning
 - 
Methods inherited from interface com.inductiveautomation.perspective.gateway.api.PropertyTreeOwnergetPropertyTreeOf
 
- 
 
- 
- 
- 
Field Detail- 
MDC_COMPONENTstatic final java.lang.String MDC_COMPONENT - See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
getParent@Nullable Component getParent() - Returns:
- parent component, or null if this a root container.
 
 - 
getChildjava.util.Optional<Component> getChild(int index) 
 - 
getChildrenjava.util.Collection<Component> getChildren() 
 - 
findChildByNamejava.util.Optional<PerspectiveElement> findChildByName(@Nonnull java.util.Iterator<java.lang.String> pathIterator) 
 - 
findExtensionFunctionjava.util.Optional<ExtensionFunction> findExtensionFunction(java.lang.String name) 
 - 
getPropertyConfigjava.util.Optional<PropertyConfig> getPropertyConfig(PropertyKey property) 
 - 
getPage@Nullable default Page getPage() - Specified by:
- getPagein interface- PerspectiveElement
- Returns:
- The Page that this element is part of. Will return null if this is the Session
 
 - 
getSession@Nonnull default Session getSession() - Specified by:
- getSessionin interface- PerspectiveElement
- Returns:
- The session that this element is a part of.
 
 - 
fireEventvoid fireEvent(java.lang.String eventType, java.lang.String eventName, java.lang.Object eventObject)Fire an event on component. Can either be a 'component' event or a 'delegate' event.
 - 
getComponentAddressPathjava.lang.String getComponentAddressPath() Index path of the component, like "0:5"
 
- 
 
-