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 DesignerContext
context
-
Constructor Summary
Constructors Constructor Description AbstractDesignAdapter(DesignerContext context)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
alterEventConfig(EventConfigChange change)
void
alterPropertyConfig(PropertyConfigChange change)
void
alterScriptConfig(ScriptConfigChange change)
void
alterViewPermissions(PermissionsConfig config)
protected abstract JavaJsBridge
getBridge()
java.util.concurrent.CompletableFuture<ComponentDetails>
getComponentDetails(java.lang.String componentIndexPath)
DesignerContext
getContext()
java.util.concurrent.CompletableFuture<java.util.List<java.lang.String>>
getSymbolicPath(java.lang.String indexPath)
void
removeChildPropertyConfigs(java.lang.String componentIndexPath, PropertyType scope, java.lang.String propertyPath)
void
removeProperty(java.lang.String componentIndexPath, PropertyType scope, java.lang.String pathToParent, int index)
void
removeProperty(java.lang.String componentIndexPath, PropertyType scope, java.lang.String pathToParent, java.lang.String name)
void
renameProperty(java.lang.String componentIndexPath, PropertyType scope, java.lang.String pathToParent, java.lang.String oldName, java.lang.String newName)
void
sendRaw(java.lang.String protocol, java.lang.String payloadJson)
void
write(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:
getContext
in 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:
getSymbolicPath
in interfaceDesignAdapter
-
getComponentDetails
public java.util.concurrent.CompletableFuture<ComponentDetails> getComponentDetails(java.lang.String componentIndexPath)
- Specified by:
getComponentDetails
in interfaceDesignAdapter
-
write
public void write(java.lang.String componentIndexPath, PropertyType scope, java.lang.String propertyPath, java.lang.String valueAsJson)
- Specified by:
write
in 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:
renameProperty
in interfaceDesignAdapter
-
removeProperty
public void removeProperty(java.lang.String componentIndexPath, PropertyType scope, java.lang.String pathToParent, java.lang.String name)
- Specified by:
removeProperty
in interfaceDesignAdapter
-
removeProperty
public void removeProperty(java.lang.String componentIndexPath, PropertyType scope, java.lang.String pathToParent, int index)
- Specified by:
removeProperty
in interfaceDesignAdapter
-
removeChildPropertyConfigs
public void removeChildPropertyConfigs(java.lang.String componentIndexPath, PropertyType scope, java.lang.String propertyPath)
- Specified by:
removeChildPropertyConfigs
in interfaceDesignAdapter
-
alterPropertyConfig
public void alterPropertyConfig(PropertyConfigChange change)
- Specified by:
alterPropertyConfig
in interfaceDesignAdapter
-
alterEventConfig
public void alterEventConfig(EventConfigChange change)
- Specified by:
alterEventConfig
in interfaceDesignAdapter
-
alterScriptConfig
public void alterScriptConfig(ScriptConfigChange change)
- Specified by:
alterScriptConfig
in interfaceDesignAdapter
-
alterViewPermissions
public void alterViewPermissions(PermissionsConfig config)
- Specified by:
alterViewPermissions
in interfaceDesignAdapter
-
sendRaw
public void sendRaw(java.lang.String protocol, java.lang.String payloadJson)
- Specified by:
sendRaw
in interfaceDesignAdapter
-
-