Class ViewEditorJsBridge
java.lang.Object
com.inductiveautomation.perspective.designer.workspace.JavaJsBridge
com.inductiveautomation.perspective.designer.workspace.ViewEditorJsBridge
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
ConstructorsConstructorDescriptionViewEditorJsBridge
(com.teamdev.jxbrowser.browser.Browser browser, ViewResourceEditor editor) -
Method Summary
Modifier and TypeMethodDescriptionvoid
alterViewPermissions
(PermissionsConfig permissionsConfig) protected String
protected DesignerContext
protected SessionPropsConfig
protected ViewConfig
protected ViewConfig
getViewConfigInternal
(String resourcePath) protected String
protected void
protected void
onContextMenuInternal
(Point point, boolean canConvertToDrawing, boolean isDrawing, boolean isSvg, boolean isView) void
onConvertToDrawing
(String path, String name, String position, String svgSource, boolean pipeMode) protected void
onDeepSelectionChangeInternal
(DeepSelection deepSelection, com.teamdev.jxbrowser.js.JsObject storeObject) protected void
void
onImageDropped
(String imageJson, String dropPointJson) protected void
onPipeModeChangeInternal
(String pipeMode) protected void
onPipeSelectionChangeInternal
(List<PipeSelectionDetail> details, boolean replaceComponentSelection) protected void
onSelectionChangeInternal
(String rootViewPath, List<ComponentDetails> details) protected void
protected void
protected void
onStructureChangeInternal
(ViewStructure structure) void
onSvgDropped
(String name, String svgSource, String dropPointJson) void
onTagsDropped
(String path, String tagJson, String dropPointJson, String modifiers) void
onUndoableAction
(String key, String json) Methods inherited from class com.inductiveautomation.perspective.designer.workspace.JavaJsBridge
activateComponentTool, activateComponentTool, addComponents, addComponents, addComponentsToContainer, alignSelectedComponents, alterEventConfig, alterPropertyConfig, alterScriptConfig, convertComponentToDrawing, convertPipesToDrawing, convertSelectionToDrawing, copyJsonToClipboard, copySelectedPipe, copySelection, cutJsonToClipboard, deleteComponents, deleteSelected, deleteSelectedPipeConnection, deleteSelectedPipes, disableEditorEvents, enableEditorEvents, flattenSelectedSvg, flattenSvg, getChildPositionDefaults, getComponentBaseName, getComponentDetails, getEffectivePipeSelectionAppearance, getForSave, getInitMsg, getOwnViewConfig, getOwnViewPath, getPropertyDefaults, getSessionProps, getStyles, getSymbolicPath, getSymbolStyles, getViewConfig, insertProperty, invokeStoreFunction, notifyViewUpdated, onBindingPreviewValue, onContextMenu, onDeepSelectionChange, onDeepSelectionPropsUpdated, onErrorMessage, onPipeModeChange, onPipeSelectionChange, onSaveComplete, onSaveError, onSelectionChange, onSelectionConfigUpdated, onSelectionPropertyChange, onStructureChange, pasteJsonFromClipboard, pastePipes, reloadSymbolStyles, removeChildPropertyConfigs, removeProperty, renameProperty, reorderSelectedComponents, replaceComponent, replaceComponentFromClipboard, sendRaw, setChildrenIndexes, setDeepSelection, setPipeMode, setPipeSelection, setPreview, setSelection, shutdown, stylesUpdated, wrapComponent, writeProperties, writeProperty
-
Constructor Details
-
ViewEditorJsBridge
-
-
Method Details
-
getContextInternal
- Specified by:
getContextInternal
in classJavaJsBridge
-
getBridgeDesc
- Specified by:
getBridgeDesc
in classJavaJsBridge
-
getViewPathInternal
- Specified by:
getViewPathInternal
in classJavaJsBridge
-
getViewConfigInternal
- Specified by:
getViewConfigInternal
in classJavaJsBridge
-
getSessionPropsInternal
- Specified by:
getSessionPropsInternal
in classJavaJsBridge
-
onStructureChangeInternal
- Specified by:
onStructureChangeInternal
in classJavaJsBridge
-
alterViewPermissions
- Specified by:
alterViewPermissions
in classJavaJsBridge
-
getViewPermissions
- Specified by:
getViewPermissions
in classJavaJsBridge
-
onBindingPreviewValueInternal
- Specified by:
onBindingPreviewValueInternal
in classJavaJsBridge
-
onDeepSelectionChangeInternal
protected void onDeepSelectionChangeInternal(DeepSelection deepSelection, com.teamdev.jxbrowser.js.JsObject storeObject) - Specified by:
onDeepSelectionChangeInternal
in classJavaJsBridge
-
onDeepSelectionPropsUpdatedInternal
- Specified by:
onDeepSelectionPropsUpdatedInternal
in classJavaJsBridge
-
onSelectionChangeInternal
- Specified by:
onSelectionChangeInternal
in classJavaJsBridge
-
onSelectionPropertyChangeInternal
- Specified by:
onSelectionPropertyChangeInternal
in classJavaJsBridge
-
onPipeModeChangeInternal
- Specified by:
onPipeModeChangeInternal
in classJavaJsBridge
-
onPipeSelectionChangeInternal
protected void onPipeSelectionChangeInternal(List<PipeSelectionDetail> details, boolean replaceComponentSelection) - Specified by:
onPipeSelectionChangeInternal
in classJavaJsBridge
-
onSelectionConfigUpdatedInternal
- Specified by:
onSelectionConfigUpdatedInternal
in classJavaJsBridge
-
onContextMenuInternal
protected void onContextMenuInternal(Point point, boolean canConvertToDrawing, boolean isDrawing, boolean isSvg, boolean isView) - Specified by:
onContextMenuInternal
in classJavaJsBridge
-
onImageDropped
- Overrides:
onImageDropped
in classJavaJsBridge
-
onConvertToDrawing
public void onConvertToDrawing(String path, String name, String position, String svgSource, boolean pipeMode) - Overrides:
onConvertToDrawing
in classJavaJsBridge
-
onSvgDropped
- Overrides:
onSvgDropped
in classJavaJsBridge
-
onTagsDropped
- Overrides:
onTagsDropped
in classJavaJsBridge
-
onUndoableAction
- Overrides:
onUndoableAction
in classJavaJsBridge
-
getViewConfigInternal
- Specified by:
getViewConfigInternal
in classJavaJsBridge
-