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 classSessionPropsAdapter.SessionAdapterBridge 
- 
Field Summary
Fields Modifier and Type Field Description SessionPropsAdapter.SessionAdapterBridgebridge- 
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 voidalterPropertyConfig(PropertyConfigChange change, boolean createUndoAction)voidalterViewPermissions(PermissionsConfig config)voidcommit()Called by the workspace right before a save occurs, so we can commit the session props to the local projectJavaJsBridgegetBridge()DeepSelectiongetDeepSelection()com.teamdev.jxbrowser.js.JsObjectgetDesignerComponentStore()Expected to be non-null iff the results ofDesignAdapter.getDeepSelection()are non-null.com.google.common.eventbus.EventBusgetEventBus()Event bus that can be used to listen to the following event types:SelectionChangeEventDeepSelectionChangeEventDeepSelectionUpdateEventSelectionPropertyUpdateEventEditorShutdownEventComponentSelectiongetSelection()java.util.concurrent.CompletableFuture<java.util.List<java.lang.String>>getSymbolicPath(java.lang.String indexPath)ViewStructuregetViewStructure()voidshutdown()- 
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:
 getBridgein classAbstractDesignAdapter
 
- 
shutdown
public void shutdown()
 
- 
getEventBus
public com.google.common.eventbus.EventBus getEventBus()
Description copied from interface:DesignAdapterEvent bus that can be used to listen to the following event types:SelectionChangeEventDeepSelectionChangeEventDeepSelectionUpdateEventSelectionPropertyUpdateEventEditorShutdownEvent 
- 
getSelection
public ComponentSelection getSelection()
 
- 
getSymbolicPath
public java.util.concurrent.CompletableFuture<java.util.List<java.lang.String>> getSymbolicPath(java.lang.String indexPath)
- Specified by:
 getSymbolicPathin interfaceDesignAdapter- Overrides:
 getSymbolicPathin classAbstractDesignAdapter
 
- 
getViewStructure
public ViewStructure getViewStructure()
 
- 
alterViewPermissions
public void alterViewPermissions(PermissionsConfig config)
- Specified by:
 alterViewPermissionsin interfaceDesignAdapter- Overrides:
 alterViewPermissionsin classAbstractDesignAdapter
 
- 
alterPropertyConfig
public void alterPropertyConfig(PropertyConfigChange change, boolean createUndoAction)
- Specified by:
 alterPropertyConfigin interfaceDesignAdapter- Overrides:
 alterPropertyConfigin classAbstractDesignAdapter
 
- 
getDeepSelection
@Nullable public DeepSelection getDeepSelection()
 
- 
getDesignerComponentStore
@Nullable public com.teamdev.jxbrowser.js.JsObject getDesignerComponentStore()
Description copied from interface:DesignAdapterExpected to be non-null iff the results ofDesignAdapter.getDeepSelection()are non-null.- Returns:
 - a reference to the designer component store, or null.
 
 
 - 
 
 -