Interface ClientContext
- 
- All Superinterfaces:
- CommonContext
 - All Known Subinterfaces:
- DesignerContext,- VisionClientContext
 - All Known Implementing Classes:
- AbstractClientContext,- ClientContextImpl,- DesignerContextImpl,- DesignerContextProxy
 
 public interface ClientContext extends CommonContext 
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddPropertyChangeListener(java.beans.PropertyChangeListener pcl)voidaddPropertyChangeListener(java.lang.String property, java.beans.PropertyChangeListener pcl)java.lang.Objectdeserialize(byte[] data, org.apache.log4j.Logger log)Convenience function to deserialize a gzipped byte array into a single object.java.lang.StringgetAuthProfileName()Returns the current project's user sourcejava.lang.StringgetDefaultDatasourceName()Returns the current project's default datasource namejava.lang.StringgetDefaultTagProviderName()Returns the current project's default Tag providerExecutionManagergetExecutionManager()Returns the shared task execution manager for this clientLaunchContextgetLaunchContext()ClientLocalizationManagergetLocalizationManager()java.util.List<ModuleInfo>getModules()Retrieve the list of all modules currently loaded in this contextNamedQueryManagergetNamedQueryManager()Returns the appropriate named query rpc for the context.ClientProgressManagergetProgressManager()Returns the progress manager, which allows the execution of long running or async tasks.ProjectgetProject()Returns the project that this client is running.java.lang.StringgetProjectName()The name of the project this client will be / is runningjavax.swing.RootPaneContainergetRootPaneContainer()Returns the RootPaneContainer that is currently the owner of the clientClientTagManagergetTagManager()Returns the manager that provides access to Ignition's tag system.intgetTagPollRate()Returns the rate at which Tags should be polled for updatescom.google.common.eventbus.EventBusgetUIEventBus()This event bus schedules event notification on the swing EDT.voidremovePropertyChangeListener(java.beans.PropertyChangeListener pcl)voidremovePropertyChangeListener(java.lang.String property, java.beans.PropertyChangeListener pcl)- 
Methods inherited from interface com.inductiveautomation.ignition.common.model.CommonContextcreateDeserializer, getEdgeEditions, getEventBus, getExpressionFunctionFactory, getLicenseState, getLoggingManager, getModule, getScriptManager
 
- 
 
- 
- 
- 
Method Detail- 
getTagManagerClientTagManager getTagManager() Description copied from interface:CommonContextReturns the manager that provides access to Ignition's tag system.- Specified by:
- getTagManagerin interface- CommonContext
 
 - 
getExecutionManagerExecutionManager getExecutionManager() Returns the shared task execution manager for this client
 - 
getTagPollRateint getTagPollRate() Returns the rate at which Tags should be polled for updates
 - 
getDefaultDatasourceNamejava.lang.String getDefaultDatasourceName() Returns the current project's default datasource name
 - 
getDefaultTagProviderNamejava.lang.String getDefaultTagProviderName() Returns the current project's default Tag provider
 - 
getAuthProfileNamejava.lang.String getAuthProfileName() Returns the current project's user source
 - 
addPropertyChangeListenervoid addPropertyChangeListener(java.beans.PropertyChangeListener pcl) 
 - 
addPropertyChangeListenervoid addPropertyChangeListener(java.lang.String property, java.beans.PropertyChangeListener pcl)
 - 
removePropertyChangeListenervoid removePropertyChangeListener(java.beans.PropertyChangeListener pcl) 
 - 
removePropertyChangeListenervoid removePropertyChangeListener(java.lang.String property, java.beans.PropertyChangeListener pcl)
 - 
getRootPaneContainerjavax.swing.RootPaneContainer getRootPaneContainer() Returns the RootPaneContainer that is currently the owner of the client
 - 
deserializejava.lang.Object deserialize(byte[] data, org.apache.log4j.Logger log) throws SerializationExceptionConvenience function to deserialize a gzipped byte array into a single object. If multiple objects are found, they will be discarded. Warnings are logged to the given logger. If data is null or empty, null is returned.- Throws:
- SerializationException
 
 - 
getModulesjava.util.List<ModuleInfo> getModules() Retrieve the list of all modules currently loaded in this context
 - 
getProgressManagerClientProgressManager getProgressManager() Returns the progress manager, which allows the execution of long running or async tasks.
 - 
getLocalizationManagerClientLocalizationManager getLocalizationManager() 
 - 
getLaunchContextLaunchContext getLaunchContext() 
 - 
getUIEventBuscom.google.common.eventbus.EventBus getUIEventBus() This event bus schedules event notification on the swing EDT. This is opposed to the event bus found onCommonContext.getEventBus(), which schedules event notification on a background thread.- Since:
- 7.9.2
 
 - 
getNamedQueryManagerNamedQueryManager getNamedQueryManager() Returns the appropriate named query rpc for the context. In the gateway and client, we only want to use named queries that have been saved. In the designer, we want to use the current version so that reports and bindings can be seen and used for testing before the project is saved.- Returns:
- The correct NamedQueryManager implementation for the scope.
- Since:
- 7.9.3
 
 - 
getProjectName@Nonnull java.lang.String getProjectName() The name of the project this client will be / is running
 - 
getProject@Nullable Project getProject() Returns the project that this client is running. Note that this may be null before the client is fully logged in and started, because the context is created before the project is downloaded.
 
- 
 
-