Class ViewEditorJsBridge
- java.lang.Object
-
- com.inductiveautomation.perspective.designer.workspace.JavaJsBridge
-
- com.inductiveautomation.perspective.designer.workspace.ViewEditorJsBridge
-
public class ViewEditorJsBridge extends JavaJsBridge
Subclass of JavaJsBridge for the view editor, to provide the link between the methods defined in the bridge and the editing of the view.
-
-
Field Summary
-
Fields inherited from class com.inductiveautomation.perspective.designer.workspace.JavaJsBridge
gson, log
-
-
Constructor Summary
Constructors Constructor Description ViewEditorJsBridge(com.teamdev.jxbrowser.browser.Browser browser, ViewResourceEditor editor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
alterViewPermissions(PermissionsConfig permissionsConfig)
protected java.lang.String
getBridgeDesc()
protected DesignerContext
getContextInternal()
protected SessionPropsConfig
getSessionPropsInternal()
protected ViewConfig
getViewConfigInternal()
protected ViewConfig
getViewConfigInternal(java.lang.String resourcePath)
protected java.lang.String
getViewPathInternal()
java.util.concurrent.CompletableFuture<PermissionsConfig>
getViewPermissions()
protected void
onBindingPreviewValueInternal(BindingEditValueUpdate update)
protected void
onContextMenuInternal(java.awt.Point point, boolean isSvg, boolean isView)
protected void
onDeepSelectionChangeInternal(DeepSelection deepSelection, com.teamdev.jxbrowser.js.JsObject storeObject)
protected void
onDeepSelectionPropsUpdatedInternal(DeepSelectionUpdateEvent event)
void
onImageDropped(java.lang.String imageJson, java.lang.String dropPointJson)
protected void
onPipeModeChangeInternal(java.lang.String pipeMode)
protected void
onPipeSelectionChangeInternal(java.util.List<PipeSelectionDetail> details, boolean replaceComponentSelection)
protected void
onSelectionChangeInternal(java.lang.String rootViewPath, java.util.List<ComponentDetails> details)
protected void
onSelectionConfigUpdatedInternal(java.util.List<ComponentDetails> changes)
protected void
onSelectionPropertyChangeInternal(SelectionPropertyUpdateEvent event)
protected void
onStructureChangeInternal(ViewStructure structure)
void
onSvgDropped(java.lang.String name, java.lang.String svgSource, java.lang.String dropPointJson)
void
onTagsDropped(java.lang.String path, java.lang.String tagJson, java.lang.String dropPointJson, java.lang.String modifiers)
void
onUndoableAction(java.lang.String key, java.lang.String json)
-
Methods inherited from class com.inductiveautomation.perspective.designer.workspace.JavaJsBridge
activateComponentTool, activateComponentTool, addComponents, addComponents, addComponentsToContainer, alignSelectedComponents, alterEventConfig, alterPropertyConfig, alterScriptConfig, copyJsonToClipboard, copySelectedPipe, copySelection, cutJsonToClipboard, deleteComponents, deleteSelected, deleteSelectedPipeConnection, deleteSelectedPipes, disableEditorEvents, enableEditorEvents, flattenSelectedSvg, flattenSvg, getChildPositionDefaults, getComponentBaseName, getComponentDetails, getEffectivePipeSelectionAppearance, getForSave, getInitMsg, getOwnViewConfig, getOwnViewPath, getPropertyDefaults, getSessionProps, getStyles, getSymbolicPath, getViewConfig, insertProperty, invokeStoreFunction, notifyViewUpdated, onBindingPreviewValue, onContextMenu, onDeepSelectionChange, onDeepSelectionPropsUpdated, onErrorMessage, onPipeModeChange, onPipeSelectionChange, onSaveComplete, onSaveError, onSelectionChange, onSelectionConfigUpdated, onSelectionPropertyChange, onStructureChange, pasteJsonFromClipboard, pastePipes, removeChildPropertyConfigs, removeProperty, renameProperty, reorderSelectedComponents, replaceComponent, replaceComponent, replaceComponentFromClipboard, sendRaw, setChildrenIndexes, setDeepSelection, setPipeMode, setPipeSelection, setPreview, setSelection, stylesUpdated, wrapComponent, writeProperties, writeProperty
-
-
-
-
Constructor Detail
-
ViewEditorJsBridge
public ViewEditorJsBridge(com.teamdev.jxbrowser.browser.Browser browser, ViewResourceEditor editor)
-
-
Method Detail
-
getContextInternal
protected DesignerContext getContextInternal()
- Specified by:
getContextInternal
in classJavaJsBridge
-
getBridgeDesc
protected java.lang.String getBridgeDesc()
- Specified by:
getBridgeDesc
in classJavaJsBridge
-
getViewPathInternal
protected java.lang.String getViewPathInternal()
- Specified by:
getViewPathInternal
in classJavaJsBridge
-
getViewConfigInternal
protected ViewConfig getViewConfigInternal()
- Specified by:
getViewConfigInternal
in classJavaJsBridge
-
getSessionPropsInternal
protected SessionPropsConfig getSessionPropsInternal()
- Specified by:
getSessionPropsInternal
in classJavaJsBridge
-
onStructureChangeInternal
protected void onStructureChangeInternal(ViewStructure structure)
- Specified by:
onStructureChangeInternal
in classJavaJsBridge
-
alterViewPermissions
public void alterViewPermissions(PermissionsConfig permissionsConfig)
- Specified by:
alterViewPermissions
in classJavaJsBridge
-
getViewPermissions
public java.util.concurrent.CompletableFuture<PermissionsConfig> getViewPermissions()
- Specified by:
getViewPermissions
in classJavaJsBridge
-
onBindingPreviewValueInternal
protected void onBindingPreviewValueInternal(BindingEditValueUpdate update)
- Specified by:
onBindingPreviewValueInternal
in classJavaJsBridge
-
onDeepSelectionChangeInternal
protected void onDeepSelectionChangeInternal(DeepSelection deepSelection, com.teamdev.jxbrowser.js.JsObject storeObject)
- Specified by:
onDeepSelectionChangeInternal
in classJavaJsBridge
-
onDeepSelectionPropsUpdatedInternal
protected void onDeepSelectionPropsUpdatedInternal(DeepSelectionUpdateEvent event)
- Specified by:
onDeepSelectionPropsUpdatedInternal
in classJavaJsBridge
-
onSelectionChangeInternal
protected void onSelectionChangeInternal(java.lang.String rootViewPath, java.util.List<ComponentDetails> details)
- Specified by:
onSelectionChangeInternal
in classJavaJsBridge
-
onSelectionPropertyChangeInternal
protected void onSelectionPropertyChangeInternal(SelectionPropertyUpdateEvent event)
- Specified by:
onSelectionPropertyChangeInternal
in classJavaJsBridge
-
onPipeModeChangeInternal
protected void onPipeModeChangeInternal(java.lang.String pipeMode)
- Specified by:
onPipeModeChangeInternal
in classJavaJsBridge
-
onPipeSelectionChangeInternal
protected void onPipeSelectionChangeInternal(java.util.List<PipeSelectionDetail> details, boolean replaceComponentSelection)
- Specified by:
onPipeSelectionChangeInternal
in classJavaJsBridge
-
onSelectionConfigUpdatedInternal
protected void onSelectionConfigUpdatedInternal(java.util.List<ComponentDetails> changes)
- Specified by:
onSelectionConfigUpdatedInternal
in classJavaJsBridge
-
onContextMenuInternal
protected void onContextMenuInternal(java.awt.Point point, boolean isSvg, boolean isView)
- Specified by:
onContextMenuInternal
in classJavaJsBridge
-
onImageDropped
public void onImageDropped(java.lang.String imageJson, java.lang.String dropPointJson)
- Overrides:
onImageDropped
in classJavaJsBridge
-
onSvgDropped
public void onSvgDropped(java.lang.String name, java.lang.String svgSource, java.lang.String dropPointJson)
- Overrides:
onSvgDropped
in classJavaJsBridge
-
onTagsDropped
public void onTagsDropped(java.lang.String path, java.lang.String tagJson, java.lang.String dropPointJson, java.lang.String modifiers)
- Overrides:
onTagsDropped
in classJavaJsBridge
-
onUndoableAction
public void onUndoableAction(java.lang.String key, java.lang.String json)
- Overrides:
onUndoableAction
in classJavaJsBridge
-
getViewConfigInternal
protected ViewConfig getViewConfigInternal(java.lang.String resourcePath)
- Specified by:
getViewConfigInternal
in classJavaJsBridge
-
-