Class AbstractDesignAdapter
- java.lang.Object
-
- com.inductiveautomation.perspective.designer.workspace.propertyeditor.AbstractDesignAdapter
-
- All Implemented Interfaces:
DesignAdapter
- Direct Known Subclasses:
SessionPropsAdapter
public abstract class AbstractDesignAdapter extends java.lang.Object implements DesignAdapter
-
-
Field Summary
Fields Modifier and Type Field Description protected DesignerContextcontext
-
Constructor Summary
Constructors Constructor Description AbstractDesignAdapter(DesignerContext context)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidalterEventConfig(EventConfigChange change)voidalterPropertyConfig(PropertyConfigChange change)voidalterScriptConfig(ScriptConfigChange change)voidalterViewPermissions(PermissionsConfig config)protected abstract JavaJsBridgegetBridge()java.util.concurrent.CompletableFuture<ComponentDetails>getComponentDetails(java.lang.String componentIndexPath)DesignerContextgetContext()java.util.concurrent.CompletableFuture<java.util.List<java.lang.String>>getSymbolicPath(java.lang.String indexPath)voidremoveChildPropertyConfigs(java.lang.String componentIndexPath, PropertyType scope, java.lang.String propertyPath)voidremoveProperty(java.lang.String componentIndexPath, PropertyType scope, java.lang.String pathToParent, int index)voidremoveProperty(java.lang.String componentIndexPath, PropertyType scope, java.lang.String pathToParent, java.lang.String name)voidrenameProperty(java.lang.String componentIndexPath, PropertyType scope, java.lang.String pathToParent, java.lang.String oldName, java.lang.String newName)voidsendRaw(java.lang.String protocol, java.lang.String payloadJson)voidwrite(java.lang.String componentIndexPath, PropertyType scope, java.lang.String propertyPath, java.lang.String valueAsJson)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.inductiveautomation.perspective.designer.api.DesignAdapter
getDeepSelection, getDesignerComponentStore, getEventBus, getSelection, getViewStructure
-
-
-
-
Field Detail
-
context
protected final DesignerContext context
-
-
Constructor Detail
-
AbstractDesignAdapter
public AbstractDesignAdapter(DesignerContext context)
-
-
Method Detail
-
getContext
public DesignerContext getContext()
- Specified by:
getContextin interfaceDesignAdapter
-
getBridge
protected abstract JavaJsBridge getBridge()
-
getSymbolicPath
public java.util.concurrent.CompletableFuture<java.util.List<java.lang.String>> getSymbolicPath(java.lang.String indexPath)
- Specified by:
getSymbolicPathin interfaceDesignAdapter
-
getComponentDetails
public java.util.concurrent.CompletableFuture<ComponentDetails> getComponentDetails(java.lang.String componentIndexPath)
- Specified by:
getComponentDetailsin interfaceDesignAdapter
-
write
public void write(java.lang.String componentIndexPath, PropertyType scope, java.lang.String propertyPath, java.lang.String valueAsJson)- Specified by:
writein interfaceDesignAdapter
-
renameProperty
public void renameProperty(java.lang.String componentIndexPath, PropertyType scope, java.lang.String pathToParent, java.lang.String oldName, java.lang.String newName)- Specified by:
renamePropertyin interfaceDesignAdapter
-
removeProperty
public void removeProperty(java.lang.String componentIndexPath, PropertyType scope, java.lang.String pathToParent, java.lang.String name)- Specified by:
removePropertyin interfaceDesignAdapter
-
removeProperty
public void removeProperty(java.lang.String componentIndexPath, PropertyType scope, java.lang.String pathToParent, int index)- Specified by:
removePropertyin interfaceDesignAdapter
-
removeChildPropertyConfigs
public void removeChildPropertyConfigs(java.lang.String componentIndexPath, PropertyType scope, java.lang.String propertyPath)- Specified by:
removeChildPropertyConfigsin interfaceDesignAdapter
-
alterPropertyConfig
public void alterPropertyConfig(PropertyConfigChange change)
- Specified by:
alterPropertyConfigin interfaceDesignAdapter
-
alterEventConfig
public void alterEventConfig(EventConfigChange change)
- Specified by:
alterEventConfigin interfaceDesignAdapter
-
alterScriptConfig
public void alterScriptConfig(ScriptConfigChange change)
- Specified by:
alterScriptConfigin interfaceDesignAdapter
-
alterViewPermissions
public void alterViewPermissions(PermissionsConfig config)
- Specified by:
alterViewPermissionsin interfaceDesignAdapter
-
sendRaw
public void sendRaw(java.lang.String protocol, java.lang.String payloadJson)- Specified by:
sendRawin interfaceDesignAdapter
-
-