Class ComponentSelection
- java.lang.Object
- 
- com.inductiveautomation.ignition.common.util.AbstractChangeable
- 
- com.inductiveautomation.perspective.designer.workspace.ComponentSelection
 
 
- 
- All Implemented Interfaces:
- Changeable
 
 public class ComponentSelection extends AbstractChangeable 
- 
- 
Field Summary- 
Fields inherited from class com.inductiveautomation.ignition.common.util.AbstractChangeablechangeEvent, listenerList
 
- 
 - 
Constructor SummaryConstructors Constructor Description ComponentSelection(ComponentRegistry registry)ComponentSelection(DesignAdapter support, java.lang.String rootViewPath, java.util.List<ComponentDetails> details, ComponentRegistry registry)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancontainsRootContainer()java.util.Optional<EventConfig>getAnchorEventConfig()java.util.Optional<java.lang.String>getAnchorPath()java.util.Optional<PropertyConfigCollection>getAnchorPropertyConfigCollection()java.util.Optional<ScriptConfig>getAnchorScriptConfig()java.util.Optional<java.lang.String>getAnchorType()java.util.List<ComponentDetails>getComponentDetails()java.util.List<java.lang.String>getComponentTypes()java.util.Optional<DeepSelection>getDeepSelection()java.util.Optional<ComponentDesignDelegate>getDesignDelegate()java.util.List<java.lang.String>getPaths()JsonSchemagetPositionSchema(DeepSelection deep)JsonSchemagetPropsSchema()java.lang.StringgetRootViewPath()com.inductiveautomation.ignition.common.gson.JsonObjectgetScope(PropertyType scope)intgetSelectionCount()booleanisComponents()booleanisEmpty()booleanisSession()booleanisSiblings()booleanisView()voidremoveChildPropertyConfigs(PropertyType scope, java.lang.String propertyPath)voidremoveProperty(PropertyType scope, java.lang.String pathToParent, int index)voidremoveProperty(PropertyType scope, java.lang.String pathToParent, java.lang.String name)voidrenameProperty(PropertyType scope, java.lang.String pathToParent, java.lang.String oldName, java.lang.String newName)voidupdateConfigs(java.util.List<ComponentDetails> newDetails)voidwrite(PropertyType scope, java.lang.String propertyPath, java.lang.String valueAsJson)Write the same value to each component in the selection.- 
Methods inherited from class com.inductiveautomation.ignition.common.util.AbstractChangeableaddChangeListener, fireStateChanged, getChangeListeners, removeChangeListener
 
- 
 
- 
- 
- 
Constructor Detail- 
ComponentSelectionpublic ComponentSelection(@Nonnull ComponentRegistry registry)
 - 
ComponentSelectionpublic ComponentSelection(@Nullable DesignAdapter support, @Nullable java.lang.String rootViewPath, @Nullable java.util.List<ComponentDetails> details, @Nonnull ComponentRegistry registry)
 
- 
 - 
Method Detail- 
updateConfigspublic void updateConfigs(java.util.List<ComponentDetails> newDetails) 
 - 
getComponentTypespublic java.util.List<java.lang.String> getComponentTypes() 
 - 
getDeepSelectionpublic java.util.Optional<DeepSelection> getDeepSelection() 
 - 
getAnchorEventConfigpublic java.util.Optional<EventConfig> getAnchorEventConfig() 
 - 
getAnchorScriptConfigpublic java.util.Optional<ScriptConfig> getAnchorScriptConfig() 
 - 
getAnchorPropertyConfigCollectionpublic java.util.Optional<PropertyConfigCollection> getAnchorPropertyConfigCollection() 
 - 
getRootViewPathpublic java.lang.String getRootViewPath() 
 - 
getPathspublic java.util.List<java.lang.String> getPaths() 
 - 
getComponentDetailspublic java.util.List<ComponentDetails> getComponentDetails() 
 - 
writepublic void write(PropertyType scope, java.lang.String propertyPath, java.lang.String valueAsJson) Write the same value to each component in the selection.
 - 
renamePropertypublic void renameProperty(PropertyType scope, java.lang.String pathToParent, java.lang.String oldName, java.lang.String newName) 
 - 
removePropertypublic void removeProperty(PropertyType scope, java.lang.String pathToParent, java.lang.String name) 
 - 
removePropertypublic void removeProperty(PropertyType scope, java.lang.String pathToParent, int index) 
 - 
removeChildPropertyConfigspublic void removeChildPropertyConfigs(PropertyType scope, java.lang.String propertyPath) 
 - 
getAnchorPathpublic java.util.Optional<java.lang.String> getAnchorPath() - Returns:
- The index path of the first component path in the selection
 
 - 
getAnchorTypepublic java.util.Optional<java.lang.String> getAnchorType() - Returns:
- The component type of the first component in the selection
 
 - 
getScopepublic com.inductiveautomation.ignition.common.gson.JsonObject getScope(PropertyType scope) 
 - 
isEmptypublic boolean isEmpty() 
 - 
getSelectionCountpublic int getSelectionCount() 
 - 
isSessionpublic boolean isSession() 
 - 
isViewpublic boolean isView() 
 - 
isComponentspublic boolean isComponents() 
 - 
isSiblingspublic boolean isSiblings() - Returns:
- true if the current selection represents non-view components that are siblings. Note that a view is not considered a component in this sense.
 
 - 
containsRootContainerpublic boolean containsRootContainer() 
 - 
getPropsSchema@Nullable public JsonSchema getPropsSchema() 
 - 
getPositionSchema@Nullable public JsonSchema getPositionSchema(DeepSelection deep) 
 - 
getDesignDelegatepublic java.util.Optional<ComponentDesignDelegate> getDesignDelegate() 
 
- 
 
-