Class AbstractClientContext
- java.lang.Object
- 
- com.inductiveautomation.ignition.client.model.AbstractClientContext
 
- 
- All Implemented Interfaces:
- ClientContext,- CommonContext
 - Direct Known Subclasses:
- ClientContextImpl,- DesignerContextImpl
 
 public abstract class AbstractClientContext extends java.lang.Object implements ClientContext 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description protected classAbstractClientContext.ClientContextResourceListener
 - 
Field SummaryFields Modifier and Type Field Description protected java.beans.PropertyChangeSupportchangeSupportprotected GlobalPropsglobalPropsprotected LoggerExlogprotected LoggingManagerImplloggingManagerprotected Projectprojectprotected java.lang.StringprojectDescriptionprotected java.lang.StringprojectTitle
 - 
Constructor SummaryConstructors Modifier Constructor Description protectedAbstractClientContext(LaunchContext launchContext, java.lang.String projectName)
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidaddPropertyChangeListener(java.beans.PropertyChangeListener pcl)voidaddPropertyChangeListener(java.lang.String property, java.beans.PropertyChangeListener pcl)protected abstract FunctionFactorycreateExpressionFunctionFactory()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 providerjava.util.List<EdgeEdition>getEdgeEditions()Returns a list of currently available Edge editions (either licensed or in trial).com.google.common.eventbus.EventBusgetEventBus()This is a generic event bus that can be used by any part of Ignition within a single scope (jvm)FunctionFactorygetExpressionFunctionFactory()Returns the core function factory used by expressions.GlobalPropsgetGlobalProps()LaunchContextgetLaunchContext()LogFilterSettingsgetLoggingManager()protected <T> TgetOrDefault(ResourceType type, java.util.function.Supplier<T> defaultSupplier)ClientProgressManagergetProgressManager()Returns the progress manager, which allows the execution of long running or async tasks.java.lang.StringgetProjectDescription()java.lang.StringgetProjectName()The name of the project this client will be / is runningjava.lang.StringgetProjectTitle()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.protected voidinitProject(Project project)protected voidinstallLegacyScriptLibrary(ProjectResource resource)protected ProjectResourceListenernewProjectResourceListener()voidremovePropertyChangeListener(java.beans.PropertyChangeListener pcl)voidremovePropertyChangeListener(java.lang.String property, java.beans.PropertyChangeListener pcl)voidresetExpressionFunctionFactory()Null out theexpressionFunctionFactoryfield, causing the next call togetExpressionFunctionFactory()to first invokecreateExpressionFunctionFactory().protected voidsetGlobalProps(GlobalProps newGp)protected voidshutdown()protected voidstartup()- 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface com.inductiveautomation.ignition.client.model.ClientContextdeserialize, getExecutionManager, getLocalizationManager, getModules, getNamedQueryManager, getProject, getRootPaneContainer, getTagManager
 - 
Methods inherited from interface com.inductiveautomation.ignition.common.model.CommonContextcreateDeserializer, getLicenseState, getModule, getScriptManager
 
- 
 
- 
- 
- 
Field Detail- 
logprotected LoggerEx log 
 - 
changeSupportprotected java.beans.PropertyChangeSupport changeSupport 
 - 
globalPropsprotected GlobalProps globalProps 
 - 
projectprotected Project project 
 - 
loggingManagerprotected LoggingManagerImpl loggingManager 
 - 
projectTitleprotected java.lang.String projectTitle 
 - 
projectDescriptionprotected java.lang.String projectDescription 
 
- 
 - 
Constructor Detail- 
AbstractClientContextprotected AbstractClientContext(LaunchContext launchContext, java.lang.String projectName) 
 
- 
 - 
Method Detail- 
startupprotected void startup() 
 - 
shutdownprotected void shutdown() 
 - 
initProjectprotected void initProject(@Nonnull Project project)
 - 
getOrDefaultprotected <T> T getOrDefault(ResourceType type, java.util.function.Supplier<T> defaultSupplier) 
 - 
newProjectResourceListenerprotected ProjectResourceListener newProjectResourceListener() 
 - 
getProjectName@Nonnull public java.lang.String getProjectName() Description copied from interface:ClientContextThe name of the project this client will be / is running- Specified by:
- getProjectNamein interface- ClientContext
 
 - 
getProjectTitlepublic java.lang.String getProjectTitle() 
 - 
getProjectDescriptionpublic java.lang.String getProjectDescription() 
 - 
getExpressionFunctionFactorypublic FunctionFactory getExpressionFunctionFactory() Description copied from interface:CommonContextReturns the core function factory used by expressions. Includes extension functions registered by modules.- Specified by:
- getExpressionFunctionFactoryin interface- CommonContext
 
 - 
resetExpressionFunctionFactorypublic void resetExpressionFunctionFactory() Null out theexpressionFunctionFactoryfield, causing the next call togetExpressionFunctionFactory()to first invokecreateExpressionFunctionFactory().
 - 
createExpressionFunctionFactoryprotected abstract FunctionFactory createExpressionFunctionFactory() 
 - 
addPropertyChangeListenerpublic void addPropertyChangeListener(java.beans.PropertyChangeListener pcl) - Specified by:
- addPropertyChangeListenerin interface- ClientContext
 
 - 
addPropertyChangeListenerpublic void addPropertyChangeListener(java.lang.String property, java.beans.PropertyChangeListener pcl)- Specified by:
- addPropertyChangeListenerin interface- ClientContext
 
 - 
removePropertyChangeListenerpublic void removePropertyChangeListener(java.beans.PropertyChangeListener pcl) - Specified by:
- removePropertyChangeListenerin interface- ClientContext
 
 - 
removePropertyChangeListenerpublic void removePropertyChangeListener(java.lang.String property, java.beans.PropertyChangeListener pcl)- Specified by:
- removePropertyChangeListenerin interface- ClientContext
 
 - 
getLoggingManagerpublic LogFilterSettings getLoggingManager() - Specified by:
- getLoggingManagerin interface- CommonContext
 
 - 
getDefaultDatasourceNamepublic java.lang.String getDefaultDatasourceName() Description copied from interface:ClientContextReturns the current project's default datasource name- Specified by:
- getDefaultDatasourceNamein interface- ClientContext
 
 - 
getDefaultTagProviderNamepublic java.lang.String getDefaultTagProviderName() Description copied from interface:ClientContextReturns the current project's default Tag provider- Specified by:
- getDefaultTagProviderNamein interface- ClientContext
 
 - 
getAuthProfileNamepublic java.lang.String getAuthProfileName() Description copied from interface:ClientContextReturns the current project's user source- Specified by:
- getAuthProfileNamein interface- ClientContext
 
 - 
getTagPollRatepublic int getTagPollRate() Description copied from interface:ClientContextReturns the rate at which Tags should be polled for updates- Specified by:
- getTagPollRatein interface- ClientContext
 
 - 
getGlobalPropspublic GlobalProps getGlobalProps() 
 - 
setGlobalPropsprotected void setGlobalProps(@Nullable GlobalProps newGp)
 - 
installLegacyScriptLibraryprotected void installLegacyScriptLibrary(ProjectResource resource) 
 - 
getProgressManagerpublic ClientProgressManager getProgressManager() Description copied from interface:ClientContextReturns the progress manager, which allows the execution of long running or async tasks.- Specified by:
- getProgressManagerin interface- ClientContext
 
 - 
getLaunchContextpublic LaunchContext getLaunchContext() - Specified by:
- getLaunchContextin interface- ClientContext
 
 - 
getEdgeEditionspublic java.util.List<EdgeEdition> getEdgeEditions() Description copied from interface:CommonContextReturns a list of currently available Edge editions (either licensed or in trial). Does not check if any required modules are installed and running.- Specified by:
- getEdgeEditionsin interface- CommonContext
 
 - 
getEventBuspublic com.google.common.eventbus.EventBus getEventBus() Description copied from interface:CommonContextThis is a generic event bus that can be used by any part of Ignition within a single scope (jvm)- Specified by:
- getEventBusin interface- CommonContext
 
 - 
getUIEventBuspublic com.google.common.eventbus.EventBus getUIEventBus() Description copied from interface:ClientContextThis 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.- Specified by:
- getUIEventBusin interface- ClientContext
 
 
- 
 
-