Class ComponentSelection
java.lang.Object
com.inductiveautomation.ignition.common.util.AbstractChangeable
com.inductiveautomation.perspective.designer.workspace.ComponentSelection
- All Implemented Interfaces:
Changeable
-
Field Summary
Fields inherited from class com.inductiveautomation.ignition.common.util.AbstractChangeable
changeEvent, listenerList
-
Constructor Summary
ConstructorsConstructorDescriptionComponentSelection
(ComponentRegistry registry) ComponentSelection
(DesignAdapter support, String rootViewPath, List<ComponentDetails> details, ComponentRegistry registry) -
Method Summary
Modifier and TypeMethodDescriptionboolean
getPaths()
com.inductiveautomation.ignition.common.gson.JsonObject
getScope
(PropertyType scope) int
void
insertProperty
(PropertyType scope, String path, int index, String json) boolean
boolean
isEmpty()
boolean
boolean
boolean
isView()
void
removeChildPropertyConfigs
(PropertyType scope, String propertyPath) void
removeProperty
(PropertyType scope, String pathToParent, int index) void
removeProperty
(PropertyType scope, String pathToParent, String name) void
renameProperty
(PropertyType scope, String pathToParent, String oldName, String newName) void
reorderProperty
(PropertyType scope, String path, int oldIndex, int newIndex, String json) void
updateConfigs
(List<ComponentDetails> newDetails) void
write
(PropertyType scope, String propertyPath, String valueAsJson) Write the same value to each component in the selection.Methods inherited from class com.inductiveautomation.ignition.common.util.AbstractChangeable
addChangeListener, fireStateChanged, getChangeListeners, removeChangeListener
-
Constructor Details
-
ComponentSelection
-
ComponentSelection
public ComponentSelection(@Nullable DesignAdapter support, @Nullable String rootViewPath, @Nullable List<ComponentDetails> details, @Nonnull ComponentRegistry registry)
-
-
Method Details
-
updateConfigs
-
getComponentTypes
-
getDeepSelection
-
getAnchorEventConfig
-
getAnchorScriptConfig
-
getAnchorPropertyConfigCollection
-
getRootViewPath
-
getPaths
-
getComponentDetails
-
write
Write the same value to each component in the selection. -
renameProperty
-
removeProperty
-
removeProperty
-
insertProperty
-
reorderProperty
public void reorderProperty(PropertyType scope, String path, int oldIndex, int newIndex, String json) -
removeChildPropertyConfigs
-
getAnchorPath
- Returns:
- The index path of the first component path in the selection
-
getAnchorType
- Returns:
- The component type of the first component in the selection
-
getScope
-
isEmpty
public boolean isEmpty() -
getSelectionCount
public int getSelectionCount() -
isSession
public boolean isSession() -
isView
public boolean isView() -
isComponents
public boolean isComponents() -
isSiblings
public 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.
-
containsRootContainer
public boolean containsRootContainer() -
getPropsSchema
-
getPositionSchema
-
getDesignDelegate
-