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
  • Constructor Details

  • Method Details

    • updateConfigs

      public void updateConfigs(List<ComponentDetails> newDetails)
    • getComponentTypes

      public List<String> getComponentTypes()
    • getDeepSelection

      public Optional<DeepSelection> getDeepSelection()
    • getAnchorEventConfig

      public Optional<EventConfig> getAnchorEventConfig()
    • getAnchorScriptConfig

      public Optional<ScriptConfig> getAnchorScriptConfig()
    • getAnchorPropertyConfigCollection

      public Optional<PropertyConfigCollection> getAnchorPropertyConfigCollection()
    • getRootViewPath

      public String getRootViewPath()
    • getPaths

      public List<String> getPaths()
    • getComponentDetails

      public List<ComponentDetails> getComponentDetails()
    • write

      public void write(PropertyType scope, String propertyPath, String valueAsJson)
      Write the same value to each component in the selection.
    • renameProperty

      public void renameProperty(PropertyType scope, String pathToParent, String oldName, String newName)
    • removeProperty

      public void removeProperty(PropertyType scope, String pathToParent, String name)
    • removeProperty

      public void removeProperty(PropertyType scope, String pathToParent, int index)
    • insertProperty

      public void insertProperty(PropertyType scope, String path, int index, String json)
    • reorderProperty

      public void reorderProperty(PropertyType scope, String path, int oldIndex, int newIndex, String json)
    • removeChildPropertyConfigs

      public void removeChildPropertyConfigs(PropertyType scope, String propertyPath)
    • getAnchorPath

      public Optional<String> getAnchorPath()
      Returns:
      The index path of the first component path in the selection
    • getAnchorType

      public Optional<String> getAnchorType()
      Returns:
      The component type of the first component in the selection
    • getScope

      public com.inductiveautomation.ignition.common.gson.JsonObject getScope(PropertyType scope)
    • 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

      @Nullable public JsonSchema getPropsSchema()
    • getPositionSchema

      @Nullable public JsonSchema getPositionSchema(DeepSelection deep)
    • getDesignDelegate

      public Optional<ComponentDesignDelegate> getDesignDelegate()