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, boolean createUndoAction)
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
insertProperty(InsertPropertyChange change)
void
removeChildPropertyConfigs(java.lang.String componentIndexPath, PropertyType scope, java.lang.String propertyPath)
void
removeProperty(RemovePropertyChange change, boolean createUndoAction)
void
renameProperty(RenamePropertyChange change, boolean createUndoAction)
void
sendRaw(java.lang.String protocol, java.lang.String payloadJson)
void
writeProperties(WritePropertiesChange change)
void
writeProperty(WritePropertyChange change, boolean createUndoAction)
-
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
-
writeProperty
public void writeProperty(WritePropertyChange change, boolean createUndoAction)
- Specified by:
writeProperty
in interfaceDesignAdapter
-
writeProperties
public void writeProperties(WritePropertiesChange change)
- Specified by:
writeProperties
in interfaceDesignAdapter
-
insertProperty
public void insertProperty(InsertPropertyChange change)
- Specified by:
insertProperty
in interfaceDesignAdapter
-
renameProperty
public void renameProperty(RenamePropertyChange change, boolean createUndoAction)
- Specified by:
renameProperty
in interfaceDesignAdapter
-
removeProperty
public void removeProperty(RemovePropertyChange change, boolean createUndoAction)
- 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, boolean createUndoAction)
- 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
-
-