Class SessionPropsAdapter
- java.lang.Object
-
- com.inductiveautomation.perspective.designer.workspace.propertyeditor.AbstractDesignAdapter
-
- com.inductiveautomation.perspective.designer.workspace.pageconfig.SessionPropsAdapter
-
- All Implemented Interfaces:
DesignAdapter
public class SessionPropsAdapter extends AbstractDesignAdapter
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
SessionPropsAdapter.SessionAdapterBridge
-
Field Summary
Fields Modifier and Type Field Description SessionPropsAdapter.SessionAdapterBridge
bridge
-
Fields inherited from class com.inductiveautomation.perspective.designer.workspace.propertyeditor.AbstractDesignAdapter
context
-
-
Constructor Summary
Constructors Constructor Description SessionPropsAdapter(ViewWorkspace workspace)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
alterPropertyConfig(PropertyConfigChange change, boolean createUndoAction)
void
alterViewPermissions(PermissionsConfig config)
void
commit()
Called by the workspace right before a save occurs, so we can commit the session props to the local projectJavaJsBridge
getBridge()
DeepSelection
getDeepSelection()
com.teamdev.jxbrowser.js.JsObject
getDesignerComponentStore()
Expected to be non-null iff the results ofDesignAdapter.getDeepSelection()
are non-null.com.google.common.eventbus.EventBus
getEventBus()
Event bus that can be used to listen to the following event types:SelectionChangeEvent
DeepSelectionChangeEvent
DeepSelectionUpdateEvent
SelectionPropertyUpdateEvent
EditorShutdownEvent
ComponentSelection
getSelection()
java.util.concurrent.CompletableFuture<java.util.List<java.lang.String>>
getSymbolicPath(java.lang.String indexPath)
ViewStructure
getViewStructure()
void
shutdown()
-
Methods inherited from class com.inductiveautomation.perspective.designer.workspace.propertyeditor.AbstractDesignAdapter
alterEventConfig, alterScriptConfig, getComponentDetails, getContext, getEffectivePipeSelectionAppearance, insertProperty, removeChildPropertyConfigs, removeProperty, renameProperty, sendRaw, writeProperties, writeProperty
-
-
-
-
Field Detail
-
bridge
public final SessionPropsAdapter.SessionAdapterBridge bridge
-
-
Constructor Detail
-
SessionPropsAdapter
public SessionPropsAdapter(ViewWorkspace workspace)
-
-
Method Detail
-
commit
public void commit()
Called by the workspace right before a save occurs, so we can commit the session props to the local project
-
getBridge
public JavaJsBridge getBridge()
- Specified by:
getBridge
in classAbstractDesignAdapter
-
shutdown
public void shutdown()
-
getEventBus
public com.google.common.eventbus.EventBus getEventBus()
Description copied from interface:DesignAdapter
Event bus that can be used to listen to the following event types:SelectionChangeEvent
DeepSelectionChangeEvent
DeepSelectionUpdateEvent
SelectionPropertyUpdateEvent
EditorShutdownEvent
-
getSelection
public ComponentSelection getSelection()
-
getSymbolicPath
public java.util.concurrent.CompletableFuture<java.util.List<java.lang.String>> getSymbolicPath(java.lang.String indexPath)
- Specified by:
getSymbolicPath
in interfaceDesignAdapter
- Overrides:
getSymbolicPath
in classAbstractDesignAdapter
-
getViewStructure
public ViewStructure getViewStructure()
-
alterViewPermissions
public void alterViewPermissions(PermissionsConfig config)
- Specified by:
alterViewPermissions
in interfaceDesignAdapter
- Overrides:
alterViewPermissions
in classAbstractDesignAdapter
-
alterPropertyConfig
public void alterPropertyConfig(PropertyConfigChange change, boolean createUndoAction)
- Specified by:
alterPropertyConfig
in interfaceDesignAdapter
- Overrides:
alterPropertyConfig
in classAbstractDesignAdapter
-
getDeepSelection
@Nullable public DeepSelection getDeepSelection()
-
getDesignerComponentStore
@Nullable public com.teamdev.jxbrowser.js.JsObject getDesignerComponentStore()
Description copied from interface:DesignAdapter
Expected to be non-null iff the results ofDesignAdapter.getDeepSelection()
are non-null.- Returns:
- a reference to the designer component store, or null.
-
-